LPC11U67 secondary bootloader

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

LPC11U67 secondary bootloader

605 次查看
Guy_mego
Contributor II

Hi,

I wrote a secondary bootloader that will upgrade the FW via BLE communication (FOTA).
I'm trying to update the serial number in the last sector which is located address 0x18000. 
I checked and see that I got the correct buffer of data (the serial number) exact 6 bytes. I clear all the 24th sector, and write the buffer to the 0x18000 address, however when I checked the memory I see that the serial number was written in the address 0x18030 and  have no idea why.
I'm using the same function that I use for the FOTA and they work.

Please someone can explain me why, the serial was written in the same sector but with an offset, and how to make it to be written to the correct address which is 0x18000.

Thanks in advance.

0 项奖励
回复
3 回复数

562 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Guy_mego,

The problem is that, when you  programmed data to  0x18000 address,the data were acctually written in the address 0x18030.

If so, I couldn't reproduce the issue for the moment. Could you please test how the programming works if you bypass BLE boot ? 

Did you check the destination pointer value when programming with step over the code?

There is secondary bootloader demo code. We can refer it as design reference

https://www.nxp.com/docs/en/application-note/AN12037_LPC11U6x.zip

https://www.nxp.com/docs/en/application-note/AN11732.zip

 

Have a nice day,

Jun Zhang

 

0 项奖励
回复

540 次查看
Guy_mego
Contributor II
Hi,
I found the issue instead of sending the pointer to the buffer due to a type i send a pointer to pointer and that cause the problem
0 项奖励
回复

532 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Guy_mego 

Good to know. Thanks.

Have a nice day,

Jun Zhang

0 项奖励
回复