ESP-IDF semihost example doesn't work under Windows.
Posted: Fri Jan 22, 2021 9:01 pm
Please help, I'm tying to run ESP-IDF example of REST server with semihost file upload through JTAG, but can't make it work.
https://github.com/espressif/esp-idf/tr ... ful_server
In my project I'm using ESP32-WROOM-32, FT2232HL JTAG, Eclipse IDE running under Windows 10. SD variant of that example works fine, but when I set semihost through menuconfig "C:\esp32_semihost" and run OpenOCD like this:
It goes through all initialization without errors, but file upload from PC to ESP32 web server just doesn't work...
Eclipse output during file request:
OpenOCD output (if I run OCD before resetting/flashing ESP32):
OpenOCD output (if I run OCD after resetting/flashing ESP32):
UPD1:
Also tried running openocd inside eclipse using this guide: https://medium.com/@kondal.kolipaka/gdb ... 7a6661f32f but with only these config options in Debugger tab, output still same:
Couldn't find any useful information about semihosting except one paragraph in espressif docs about how to run it and few mentions here and there that it's a thing and you can use it with JTAG, any example from scratch how to configure and use it for retrieving files from PC...
UPD2:
Looks like this guy had same issue: viewtopic.php?p=61230#p61230 still no solution to make it work...
https://github.com/espressif/esp-idf/tr ... ful_server
In my project I'm using ESP32-WROOM-32, FT2232HL JTAG, Eclipse IDE running under Windows 10. SD variant of that example works fine, but when I set semihost through menuconfig "C:\esp32_semihost" and run OpenOCD like this:
Code: Select all
openocd -c "set ESP_SEMIHOST_BASEDIR C:\\esp32_semihost" -f board/esp32-wrover-kit-3.3v.cfg
Eclipse output during file request:
Code: Select all
E (138679) esp-rest: Failed to open file : /www/index.html
W (138679) httpd_txrx: httpd_resp_send_err: 500 Internal Server Error - Failed to read existing file
W (138689) httpd_uri: httpd_uri: uri handler execution failed
Code: Select all
Info : Target halted. CPU0: PC=0x400DEF54 (active)
Info : Target halted. CPU1: PC=0x401557EE
Code: Select all
Info : Target halted. CPU0: PC=0x400DEF54 (active)
Info : Target halted. CPU1: PC=0x401557EE
Error: File name length if greater then the maximum possible value!
Also tried running openocd inside eclipse using this guide: https://medium.com/@kondal.kolipaka/gdb ... 7a6661f32f but with only these config options in Debugger tab, output still same:
Code: Select all
-c "set ESP_SEMIHOST_BASEDIR C:\\semihost"
-f board/esp32-wrover-kit-3.3v.cfg
UPD2:
Looks like this guy had same issue: viewtopic.php?p=61230#p61230 still no solution to make it work...