AnsweredAssumed Answered

How to program a code of the size of 512KB into LPC1853 using LPCScrypt

Question asked by Yasushi Hasegawa on Sep 1, 2016
Latest reply on Sep 2, 2016 by Yasushi Hasegawa

I will use LPCScrypt version 1.8.0 or later to program in LPC1853. I think that the program size exceeds 300KB.

Please tell me the method to make two consecutive .bin files from .axf file. The .axf file is built by LPCXpresso.

 

Two .bin files divided from all codes is necessary for LPCScrypt. LPCScrypt programs these two files in "BankA", "BankB".

I'd like to program more than 300KB code into LPC1853 using LPCScrypt. 

 

Present status:

Because I am still inspecting it, I made the .axf file which placed main function in BankB using "__TEXT(Flash2) macro ", but one .bin file is output by the following command practice.

------

arm-none-eabi-objcopy -v -O binary "${BuildArtifactFileName}" "${BuildArtifactFileBaseName}.bin"
checksum -p ${TargetChip} -d "${BuildArtifactFileBaseName}.bin"

------

 

By the way, programing one .bin file not to divide using LPCScrypt, but was the following error.

------

C:\NXP\LPCScrypt\bin>lpcscrypt program ..\images\20160901\periph_blinky.bin BankA
Error: <Command line>:1: Binary image ..\images\20160901\periph_blinky.bin (size16777316) is too large for memory BankA (0x1a000000, size 524288)
Script cmd: program ..\images\20160901\periph_blinky.bin BankA
Last target cmd: =queryFlash
Terminated with errors

Outcomes