Flashing LPC1114 microcontroller manually

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

Flashing LPC1114 microcontroller manually

1,407 次查看
thili_maha
Contributor I

I am trying to flash a controller manually, using write, copy to flash and read commands. While doing that is it acceptable to have a gap between the addresses ( not consecutive) which I write the program on to? 

The write to flash accept only multiples of 256 byte at a time, but the data I can copy is 225 bytes, so because of that there will be a gap of 31 bytes to the next 256 boundary which I am allowed to write my data in. 

will this be an issue to the run of the firmware? 

0 项奖励
回复
5 回复数

1,386 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi thili_maha 

For LPC1114, the minimal Flash programming/erasing unit is page which is 256 Byte. the minimal Flash reading unit is byte.

I suggest you filling the left 31byte with a defined value for example 0xFF then write totally 256 byte to a page.

if 225 byte is already written to Flash and you want to write the left 31byte, read out the 225 byte content out, then write 225+31 data to a page together.

Thanks,

Jun Zhang

 

 

0 项奖励
回复

1,384 次查看
thili_maha
Contributor I

Hi ZhangJennie ,

Thanks for the reply. By doing that wouldn't the original characteristics/model of the program alter? 

Thanks- Thili

0 项奖励
回复

1,379 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

What "original characteristics/model of the program" do you refer to? Could you please be more specific?

 

0 项奖励
回复

1,377 次查看
thili_maha
Contributor I

Hi ,

The way that the firmware runs and executes? , would that be changed by doing that?   

0 项奖励
回复

1,365 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

It doesn't affect.

If any specific problem you encounter, please contact us again.

0 项奖励
回复