ulptool
ulptool copied to clipboard
Fix address calculation in ulp_run() call in all examples
FAQ
But all the examples work without this change?
When entry is the first record in the code, &ulp_entry - RTC_SLOW_MEM == 0
, so any multiplication or division is still 0. However if you add code before ulp_entry you end up at the wrong address.
What do the official docs say?
ESP_ERROR_CHECK( ulp_run(&ulp_entry - RTC_SLOW_MEM) );
See here
Thanks, I'll take a look at this in a few days.
Ping ping. I have double-triple-verified this one before opening this PR.
Thanks again I'm just in the middle of another project that I need to finish, hopefully soon and I will get back to ulp stuff then. Hold tight I'll be looking at this first.
Agree - this fixes the i2c example