Dhananjay Joshi

MKL17Z boot issue after Flash programming

Discussion created by Dhananjay Joshi on May 20, 2016


I am using MKL17Z128VLH4 device. We have written the test code to verify our target board functionality. The test code contains 1 timer interrupt and one external interrupt. We need the Flash boot after reset hence the flash config area  0x00000400 to 0x0000040F is programmed with following data :

const unsigned char config_region[16] @ ".FlashConfig" = {0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFE,0x3B,0xFF,0xFF};


I ensured that the config data is written properly in the flash config area The code (.out file) runs even after the debug session exits. When I power cycle the device quickly (say within 15Secs) still the system boots up and runs. But if I turn off the power and keep it off for around 20Secs or more and then turn back on then the device fails to start. Is this something related to power-on reset or brown-out condition ?