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,604件の閲覧回数
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,587件の閲覧回数
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,587件の閲覧回数
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,587件の閲覧回数
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,587件の閲覧回数
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,587件の閲覧回数
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,587件の閲覧回数
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,587件の閲覧回数
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 件の賞賛
返信