MKL17Z boot issue after Flash programming

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MKL17Z boot issue after Flash programming

544 次查看
dhananjayjoshi
Contributor I

Hi,

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 ? 

0 项奖励
回复
0 回复数