I’m trying to add the ULP functionality to my project in order to read the Hall Sensor integrated in the ESP32 but VS is not able to find the ulp_main.h library needed.
By looking in to the web, I found recommendations about how to add ULP toolchain but I don’t know if Platformio does it already in some way when adding the ESP32 library.
I did some experiments, like removing the ulp_main.h and see what happens but what I get now is that VisualStudio can’t recognize assembly code… so seems like I really need to install the ULP toolchain somehow. I’m block on this, hope someone have time to take a look.
BTW, I’m not using Arduino, I’m using espidf framework.
All the magic happens in the python script called esp32ulp_build_recipe.py. This along with espressif’s esp32ulp_mapgen.py in which both are located in the ulp directory from this repository.
Done, took a look into the video which is not very useful as is for Arduino in Arduino IDE. About the files needed to program the esp32 ulp, well is a tutorial for MAC and again for Arduino IDE… not useful for the reason of this purpose. I’m using Windows.
Also, took a look into the issue in espressif32 and the last comment basically says it all:
I have never used platformIO so I’m really not sure whats going on for you. The .s files are unique to how I differentiate between the ulp and xtensa assembly files for Arduino. Xtensa assembly is not the same as ulp assembly so I you need the binutils compiler files but again I have no idea how platformIO compiles it’s files so you will have to drill down on that first, maybe they have a verbose mode you can glean on how they compile and build your programs and go from there.
If you have a working example using PlatformIO using ESPIDF framework, then that will be useful.
@ivankravets will sure prioritize feature implementations according to their community votes / importances, so the best thing we can do is upvote the issue or start writing code ourselves for a pull request
Ok! I will make sure it gets the appreciation needed from other engineers from our team who are also blocked in SPI and power management regarding this issue. @ivankravets will really appreciate to consider it in your priorities soon as it has been almost a year that the issue was opened in github
Implementing this feature might seem easy at first sight, but in fact, porting all that peculiar compilation logic to PlatformIO build system is going to be a challenging task. So, unfortunately, there is no ETA for this feature. Anyway, it’s in our todo list. so it’ll be added eventually.