Hi, my code will sleep if I disable INTR_GLOBAL but will not wake from following code.
uP is DSPIC33FJ16GS502
I've tried every combination I can think of. Data sheet says:
"The device will wak ...
I think the problem might be due to the strtok function in string.h using a static char to save the pointer.
I suspect this gets overwritten by the nested call to strtok in my execute_command functio ...
The protocol doesn't always arrive in the same order or with all fields present.
I can parse the ; easy but I cannot seem to successfully make a copy of the semi parsed string (r=100) within the strt ...