Sending commands via JTAG to the esp32.
Posted: Thu Mar 16, 2023 4:04 pm
Hello everyone!
For my project I am currently using the ESP32-WROOM-32UE device and a jlink adapter for JTAG flashing and debugging. Is there a way to send a command through a command window via JTAG that is similar to UART? For example, to read information received via UART, we can use the function:
Is there a similar function like this via JTAG? I would like to do some logic in my firmware like:
This type of logic can be perfectly done via UART, but is it possible via JTAG? I have tried using the esp_apptrace_read command to no avail, and documentation for this type of application is pretty spotty.
For my project I am currently using the ESP32-WROOM-32UE device and a jlink adapter for JTAG flashing and debugging. Is there a way to send a command through a command window via JTAG that is similar to UART? For example, to read information received via UART, we can use the function:
- uart_read_bytes(uart_num, buf, length, ticks_to_wait);
- while(receivingJtagCommand){
- jtagCommand = jtag_read_bytes(ECHO_JTAG_PORT, data, (BUF_SIZE - 1), 20 / portTICK_PERIOD_MS);
- if(jtagCommand == "Hello"){
- runSpecialTask();
- break;
- }
- }