Content originally posted in LPCWare by carleenchen on Wed Nov 28 16:04:43 MST 2012
We are waiting for solutions now. I may give so little information about this case. Here is more details.
...
linking...
Program Size: Code=5844 RO-data=1580 RW-data=92 ZI-data=2052
FromELF: creating hex file...
User command #1: fromelf --bin -o "C:\mPassword\NXP\lpc18xx\Examples\BOOTFAST\Fast_Gpio_LedBlinky\Keil\example.bin" "C:\mPassword\NXP\lpc18xx\Examples\BOOTFAST\Fast_Gpio_LedBlinky\Keil\example.axf"
User command #2: C:\Keil_MDK460\\ARM\BIN\ELFDWT.EXE .\example.axf BASEADDRESS(0x1A000000)
ELFDWT - Signature Creator V1.1
COPYRIGHT Keil - An ARM Company, Copyright (C) 2012
*** Updated Signature over Range[32] (0x1A000000 - 0x1A000018): @0x1A00001C = 0x43FFF082
*** Processing completed, no Errors.
"example.axf" - 0 Error(s), 0 Warning(s).
Load "C:\\mPassword\\NXP\\lpc18xx\\Examples\\BOOTFAST\\Fast_Gpio_LedBlinky\\Keil\\example.AXF"
Include "C:\\mPassword\\NXP\\lpc18xx\\Examples\\BOOTFAST\\Fast_Gpio_LedBlinky\\Keil\\Internal Flash.ini"
FUNC void Setup (unsigned int region) {
region &= 0xFFFF0000;
SP = _RDWORD(region); // Setup Stack Pointer
PC = _RDWORD(region + 4); // Setup Program Counter
_WDWORD(0xE000ED08, region); // Setup Vector Table Offset Register
}
LOAD "InternalFlash\\example.hex" INCREMENTAL
Setup(0x1A000000); // Get ready to execute image in SRAM or whatever region it is in
Full Chip Erase Done.
Programming Done.
Verify OK.
Application running ...
Even it displays "Application running...", but nothing happens.
We can make it work in ULINK2 mode (code is starting at 0x1A000000).
Someone may experienced with this internal flash.