Internal Flash load and run

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Internal Flash load and run

856 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by carleenchen on Tue Nov 27 16:43:55 MST 2012
We use lpc1857.
We can download code to internal flash successfully but it is stopped after download. We set "reset and run", but why it can't start the code?
Labels (1)
0 Kudos
8 Replies

667 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by drs on Thu Dec 20 10:59:22 MST 2012
Are you sure you have the boot mode jumpers set correctly?

http://www.nxp.com/documents/application_note/AN11239.pdf
0 Kudos

667 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lalitshah233 on Wed Dec 12 23:41:37 MST 2012
Hi all,

I am new to NXP. I am using LPC Xpresso and MCB1800 development board.

I have compiled sample project for LPC1857 by changing the MCU settings under LPC xpresso.

I have change the GPIO setting as per MCB1800 board schemtic.

I am trying to run program from internal flash memory, but i am not able to achieve the same.

Regards,
Lalit Shah
0 Kudos

667 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Cusko on Fri Dec 07 05:42:04 MST 2012
Before CGU_Init() try to insert this in your code.

LPC_CGU->BASE_M3_CLK = (0x01 << 11) | (CLK_SRC_IRC << 24) ;

0 Kudos

667 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by carleenchen on Thu Nov 29 11:53:26 MST 2012
We designed our develop board. this code is running in RAM mode.If we start from debug mode, it is normal to start to run at 0x1A000000.

The problem is that we can't let it do "reset&run", after reset, it does nothing.

Carleen
0 Kudos

667 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nxp21346 on Wed Nov 28 17:47:09 MST 2012
Which board are you using? BOOTFAST in the PDL blinks an LED on the Hitex board. If you are usin g the Keil board you might have to change the LED port pin settings.

-Dave @ NXP
0 Kudos

667 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by carleenchen on Wed Nov 28 16:05:57 MST 2012
We set Vectreset.

Carleen
0 Kudos

667 Views
lpcware
NXP Employee
NXP Employee
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.
0 Kudos

667 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by nxp21346 on Wed Nov 28 15:51:56 MST 2012
What type of reset are you using? Typically a Vectreset or Core reset works best.

-Dave @ NXP
0 Kudos