Debug App on Linux Host
Posted: Tue Aug 06, 2024 12:41 am
Good, I am getting more and more in my platform transition to ESP-IDF to take advantage of those unique characteristics that only this framework offers (from the Linux side).
Recently I stop with https://docs.espressif.com/projects/esp ... -apps.html which seemed very striking (mainly to do simple code debug without the need to have to wait 2 mins to compile and flash the code to my ESP32 board).
I successfully execute an ESP32 application on my computer with these simple commands (which also gives the link):
Everything is very good here. The problem is that I do not know how to take advantage of this characteristic, I speak of debugging the application. I used this https://docs.espressif.com/projects/esp ... th-idf-py to test if the GDB worked (and https://docs.espressif.com/projects/esp ... nd-line-01 section to try if GDB found something), but many of the mistakes and warnings are that the Linux target does not exist.
The only place where talk about the ability to run applications in the machine host is in the first link, I didn't find anything else in my internet search. There is also no clue to say if this is so even possible.
Otherwise it will be another application that I will have to debug with "printf()" that compiles faster and without having to use more hardware at hand.
Recently I stop with https://docs.espressif.com/projects/esp ... -apps.html which seemed very striking (mainly to do simple code debug without the need to have to wait 2 mins to compile and flash the code to my ESP32 board).
I successfully execute an ESP32 application on my computer with these simple commands (which also gives the link):
Code: Select all
idf.py --preview set-target linux
idf.py build
idf.py monitor
The only place where talk about the ability to run applications in the machine host is in the first link, I didn't find anything else in my internet search. There is also no clue to say if this is so even possible.
Otherwise it will be another application that I will have to debug with "printf()" that compiles faster and without having to use more hardware at hand.