Need some help with the ULP
Posted: Wed Aug 28, 2019 11:12 pm
I'm having a lot of trouble figuring out how to do what I want to do, which is bit-banging a clock out and data in to read an external device through GPIOs. This was fairly easy to get working on the CPU(s), but I also need to be able to do this from the ULP. Then, on meeting a trigger condition based on the data read during deep sleep, I need to wake the CPU, read again from the CPU. I need to be able to bit-bang the same GPIOs from both CPU and ULP. My requirements are is that I need to read and write a couple of GPIOs from both the CPU and ULP. Do I need to initialize those two GPIO’s from both the ULP and the CPU, or will initialization from the CPU make initializing from the ULP unnecessary? Firstly, are there any good example of reading and writing arbitrary GPIOs from the ULP? Do I have to init from both the CPU and ULP, or will initializing on the CPU make initializing from the ULP unnecessary? And if that, do I need to re-initialize with every switch between CPU and ULP. Are there any examples out there from which I can learn?
Lastly, is there a good dev environment that allows debugging the ULP?
Thanks for any help.
wevets
Lastly, is there a good dev environment that allows debugging the ULP?
Thanks for any help.
wevets