Search found 1 match
- Mon Dec 04, 2023 1:43 am
- Forum: ESP-IDF
- Topic: Some ULP Variable are not being generated in ulp_main.h
- Replies: 6
- Views: 5483
Re: Some ULP Variable are not being generated in ulp_main.h
I know this thread is a bit old, but I came across this and found a solution. If you put the volatile keyword in front of the variable definition, the compiler won't optimize it out. For example, if you have this variable defined in ULP code: bool gpio_level_previous = false; you can change the line...