This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

PStorage handler only called when compiled under DEBUG (eclipse gcc)

I have a pstorage Clear and Store that I use just before calling bootloader_app_start() in my DFU bootloader code. Everything was working great testing/compiling (GCC) under debug. But when I compile a release, the pstorage_raw_clear() and pstorage_raw_store() calls never prompt the handler callback function. I've tested over and over to verify.

I used a while loop to wait until the callback handler clears a variable: while (pstorage_wait_flag) { sd_app_evt_wait(); }

But this seems to never return under a release compile. I've never had an issue like this before so I've very confused as to how to go about solving.

I am using SDK 6.1 S110 7.1. I am using raw mode and clearing One pg of Flash (1024b) and Storing One pg of Flash (1024b). I also have a One pg global static Ram buffer. Thank in advance for the assistance guys.

DC

Related