make monitor equivalent using jtag with ESP32
Posted: Thu Feb 07, 2019 8:49 am
by salomonreinach
Hi, I would like to know if there is an other way than using make monitor to print messages from the code (for example the "Hello world")
Because as I understood I can't use make monitor using JTAG but only using serial interface with TXD and RXD pin.
Thank you if you have an answer or if you know a way to print the messages from my code
Re: make monitor equivalent using jtag with ESP32
Posted: Thu Feb 07, 2019 11:09 am
by ESP_krzychb
Hi salomonreinach,
Hello again
I like you managed to load ESP32 with JTAG without even touching a much simpler way to load it over a serial port.
As you prefer to stick to JTAG, there is also a method for ESP32 monitoring without a serial.
To go straight to it check documentation under
https://docs.espressif.com/projects/esp ... ng-to-host and example under
https://github.com/espressif/esp-idf/tr ... ce_to_host.
I think you may find interesting also the rest of documentation under
https://docs.espressif.com/projects/esp ... ng-library
Re: make monitor equivalent using jtag with ESP32
Posted: Thu Feb 07, 2019 11:28 am
by ESP_igrr
Also to note, we are working on semihosting support in IDF and OpenOCD, which will eventually allow redirecting console and file I/O to the host in a way mostly transparent to the application. This feature is expected to be merged into IDF and OpenOCD in February.
Something that is not possible yet (and will not be possible using semihosting) is sending bootloader output to the host over JTAG. We are tracking this feature as well. Some approaches which will allow intercepting bootloader output are being investigated, but there is no timeline for the full implementation at the moment.
Re: make monitor equivalent using jtag with ESP32
Posted: Fri Feb 08, 2019 4:25 pm
by salomonreinach
Ok, thank you for your different answers and advice