Once the CYBLE device is programmed, the flash region cannot be protected from being cleared because the device flash is first erased before programming. This process is preset and fixed in software tool.
But, PSoC 4 BLE and PRoC BLE devices have 512 bytes of user configurable supervisory flash (SFlash) that is retained across normal programming cycle. You can refer to the example code linked here - PSoC-4-BLE/100_Projects_in_100_Days/Day029_BLE_SFlash_Write at master · cypresssemiconductorco/PSoC-4-BLE · GitHub .
Thanks for your replay, I will look at that. But I have a more important issue. I would appreciate if you could have a look at this thread :) https://community.cypress.com/thread/44780 regards, Pascal