AnsweredAssumed Answered

Bytes to upload for reprogramming flash with a custom bootloader

Question asked by Greta Sasso on Aug 21, 2019
Latest reply on Aug 27, 2019 by ZhangJennie

Hi everyone,

I am writing one secondary bootloader for lpc11u6x and i can't find any documentation that can help me.. 

I am trying to write an "hello world bootloader" wich is located at 0x0 address. this app will erase and prepare sectors and it will copied one array containing the new firmware ( in hex) to the flash, from address 0x00003000.

With "Chip_IAP_CopyRamToFlash(APP_VECTOR_TABLE, bin , size);" i continue obtained error 6 ( COUNT_ERROR Byte count is not multiple of 4 or is not a permitted value ) .. 

 

I don't understand from with kind of file I have to take the bytes for the new application. 

I am currently using the .bin file generated from the lpcxpresso ide with the post-build-step, including checksum...

 

 

thanks a lot..

Outcomes