Open bzeeman opened 4 years ago
Right you have to load the binary then initialize your global ulp variables then run your ulp code. I believe this is the same if you use the esp32 IDF instead of Arduino.
I guess al I am saying is that in the read me and comments in examples it seems to indicate it in the wrong order.
if you initialize ulp variables as shown, accessing those initial values does not seem to work from ULP side of things.
Example:
with the following assembly code:
Will print out: "Whats My Value: 0"
However if you instead change the order in init_run_ulp to:
Will print: "Whats My Value: 42"
This only affects 1 direction, if I instead make the assembly:
it will print: "Whats My Value: 42"
Also changing the order allows errors when the corresponding variables are not set up correctly in the assembly to be thrown on compile.