Are you using circle_mgr.exe to program the application?
If you are using RIDE, the FLASH will be erased, and the OS will reprogrammed at each debug session. In this case, you should ipdate the CircleOS in your "Program Files\Raisonance\Ride\Lib\ARM\CircleOS" directory.