Flashing LPC1114 microcontroller manually

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Flashing LPC1114 microcontroller manually

1,405 Views
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 Kudos
Reply
5 Replies

1,384 Views
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 Kudos
Reply

1,382 Views
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 Kudos
Reply

1,377 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

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

 

0 Kudos
Reply

1,375 Views
thili_maha
Contributor I

Hi ,

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

0 Kudos
Reply

1,363 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

It doesn't affect.

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

0 Kudos
Reply