Question about esp32 Flash download through JTAG

justinmreina
Posts: 26
Joined: Tue Jul 18, 2017 10:39 pm

Re: Question about esp32 Flash download through JTAG

Postby justinmreina » Thu Aug 17, 2017 2:43 pm

what is the current status on Flash download through JTAG? We are eager, let us know! :)

ESP_igrr
Posts: 1057
Joined: Tue Dec 01, 2015 8:37 am

Re: Question about esp32 Flash download through JTAG

Postby ESP_igrr » Thu Aug 17, 2017 4:49 pm

It is implemented and in our tests it works pretty reliably with FT2232-based adaptors. Documentation is here:
http://esp-idf.readthedocs.io/en/latest/api-guides/jtag-debugging/index.html#upload-application-for-debugging

There is an issue with JLink which is mentioned one post above in this topic.

The other known issue is that if the application crashes very rapidly (e.g. early in bootloader), then openocd can not reliably start flashing it, getting confused about DSR errors. This is also in the queue to be fixed. But for most usual cases, flashing over JTAG seems to be okay.

vateriim
Posts: 4
Joined: Thu Jan 25, 2018 6:11 pm

Re: Question about esp32 Flash download through JTAG

Postby vateriim » Thu Apr 19, 2018 5:10 pm

@ESP_igrr, would you recommend using JTAG for production programming, with considerations to flash encryption, secure boot and panel programming (programming of multiple device at the same time) ?

ESP_igrr
Posts: 1057
Joined: Tue Dec 01, 2015 8:37 am

Re: Question about esp32 Flash download through JTAG

Postby ESP_igrr » Fri Apr 20, 2018 4:07 am

No, there is no support for flash encryption and secure boot flows over JTAG. Besides, JTAG should normally be disabled when enabling secure boot, which makes running further steps over JTAG impossible, and still makes UART required as a fallback.

vateriim
Posts: 4
Joined: Thu Jan 25, 2018 6:11 pm

Re: Question about esp32 Flash download through JTAG

Postby vateriim » Fri Apr 20, 2018 2:28 pm

Thank you for your clear answer

Who is online

Users browsing this forum: No registered users and 7 guests