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?
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
Hi ZhangJennie ,
Thanks for the reply. By doing that wouldn't the original characteristics/model of the program alter?
Thanks- Thili
What "original characteristics/model of the program" do you refer to? Could you please be more specific?
Hi ,
The way that the firmware runs and executes? , would that be changed by doing that?
It doesn't affect.
If any specific problem you encounter, please contact us again.