Is it possible to write user application code to make change in secondary bootloader flash data?

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

Is it possible to write user application code to make change in secondary bootloader flash data?

1,603 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dhanapal on Fri Mar 27 06:46:22 MST 2015
Hi All,

My LPC1765 has secondary bootloader. that is running at 0x00 address. User application runs at 0x00010000 - Sector 16(0x10).

Is it possible to change secondary bootloader flash data from user application?
Is there any flash lock for SBL when user application runs?

In my testing
User application can reset the SBL flash value,User application unable to set the flash value. Eg if SBL area flash value is 0xFF, then user can reset that flash value to 0x00. But if the SBL flash value is 0x00 then user application unable to set the flash value even to 0x01.

What is the reason?

Regards
R.Dhanapal
标签 (1)
0 项奖励
回复
7 回复数

1,586 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dhanapal on Sun Mar 29 22:05:02 MST 2015
Hi,

My system frequency is 100MHZ.

-Dhanapal
0 项奖励
回复

1,586 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Fri Mar 27 09:14:00 MST 2015
Hi dhanapal,
It should be SystemFrequency/1000.
What is the SystemFrequency?
0 项奖励
回复

1,586 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dhanapal on Fri Mar 27 08:12:42 MST 2015
Hi,

For IAP functions i am passing 100KHZ.
0 项奖励
回复

1,586 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dhanapal on Fri Mar 27 08:07:14 MST 2015
Greetings,

Already my IAP functions are reading and writing the flash value. So i am using the same function.
0 项奖励
回复

1,586 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Fri Mar 27 08:03:25 MST 2015
Hi Dhanapal,
You also need to pass correct CPU Clock Frequency (CCLK) in kHz to IAP functions.
0 项奖励
回复

1,586 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by dhanapal on Fri Mar 27 07:14:23 MST 2015
Thank you very much for your reply,

Yes, I am erasing.
0 项奖励
回复

1,586 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Fri Mar 27 07:07:12 MST 2015
Hi Dhanapal,
You will have to erase flash before programming.
Do you erase flash before programming flash?
0 项奖励
回复