duff2013 / ulptool

Program the esp32 ULP coprocessor in Arduino
275 stars 69 forks source link

RTC_DATA_ATTR error #89

Open JellevanKraaij opened 2 years ago

JellevanKraaij commented 2 years ago

I want to store some values besides the ulp binary in the rtc memory. It seems that my program crashes if i use RTC_DATA_ATTR. I suspect it conflicts with the binary of my ulp.

Does anyone know how i can save some extra variables besides the ulp binary?

iharshadec commented 2 years ago

I was trying for the same but looks like they are sharing the same that's why it's not working.

jvbroek commented 2 years ago

Might be related to the calculation of the program to run in ULP, it shouldn't actually be divided by 4 (the size of a uint32_t):

https://github.com/duff2013/ulptool/pull/55/commits/5bfd169e03fd4b030d62cd8439e150c7bbdc4301