LPC1850 fault startup at reset with external flash (Hitex board LPC1850 Rev-A4)

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

LPC1850 fault startup at reset with external flash (Hitex board LPC1850 Rev-A4)

439 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by fcarlo on Wed Jun 27 02:27:39 MST 2012
We are using the LPC1850 Rev-A4 board and IAR EWARM 6.30.

We used the latest LCD_Demo project included in the last snapshot (06/11/2012) of the LPC18xx CMSIS-Compliant Standard Peripheral Firmware Driver Library.
The example, compiled for external Flash memory, runs fine, but we notice a trouble when the code exceeds a certain size.
The trouble appear when the reset button of the board is pressed (SW1) during the code execution.
The original project works fine in external flash code, but to reproduce the problem we add in main (see tag //NOP CODE ) a noop(); function included in the defs.c file that contains a series of nop instructions.

In normal conditions at reset, the code restart executing the main function as expected, while in our case (with noop funtion) at reset, the code doesn't start correctly (it seems hang).
We can't understand why the code works well only when Jtag jlink emulator is used with the c-spy.

All settings and jumpers (EMC boot mode) of the board has been configured correctly!!!!

Please find the project in attachment.


Thanks in advance.

Carlo

Original Attachment has been moved to: Lcd_Demo_NOP_NOK.zip

Labels (1)
0 Kudos
2 Replies

335 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by fcarlo on Mon Jul 16 03:36:12 MST 2012
You are right, thank you!
0 Kudos

335 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by mc on Thu Jul 12 08:01:44 MST 2012
Hi Carlo,
Please place all EMC initialization routines in the RAM. This can be done by modifying your linker config file(*.icf). Please also flash these routine in the fist 16KB area of the external flash. In IAR you can use #pragama location directive.Please go through section 4.3.5.2 EMC boot modes of the LPC18xx user manual UM10430 Rev. 1.4 — 7 June 2012 for detail explanation.

Thanks,
0 Kudos