On my bootloader efforts i now have two applications: A bootloader app located (using Target Options) at address 0x00000000 and the main app located at 0x00003000. The bin file for the bootloader is created correctly as a .BIN file. For the main app, fromelf creates a directory(!) instead of a file. Directory contains two files: ER$$.ARM.__at_0x02FC ER_IROM1 both without file extension. I use this user command for the main app fromelf --bin --output .\Debug\SAP-2L-JUM.bin .\Debug\SAP-2L-JUM.axf and this user command for the loader app fromelf --bin --output .\Debug\SAP-2L-UPDL.bin .\Debug\SAP-2L-UPDL.axf How to get a bin file created for the main app? Best regards, Juergen.
Forgot to mention: Using Keil MDK V4.23.
Partially solved. Forgot to deactivate the CRP_Key code lines (absolute address 0x000002FC) in startup_LPC13xx.s for the main app (located at 0x00003000). Now get a normal bin file instead of a directory.
But there is another question: Should (or must) i use this user command fromelf --bincombined --bincombined_base=0x00003000 --output .\Debug\SAP-2L-JUM.bin .\Debug\SAP-2L-JUM.axf instead of fromelf --bin --output .\Debug\SAP-2L-JUM.bin .\Debug\SAP-2L-JUM.axf ? Best regards, Juergen
'fromelf' create a bin file per load region. If you have more than one (for example, if you program uses a NOR flash) you need to merge the two generated files into one, and have your bootloader program the right data at the right place. I've done this myself.