lpcopen 2.09 do not work in LPCXpresso without HardFault error

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

lpcopen 2.09 do not work in LPCXpresso without HardFault error

1,022 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Robermeyer on Fri Mar 14 13:06:31 MST 2014
I have LPCXpresso 7.0.0
Am I the only one that can't load any LPCopen examples and make them run on my working hardware?
I open some Keil examples and they work OK with some constant changes.

I have an NGX 4357 Xplorer++ board.
I load the NGX xplorer 4330 example periph_blinky.
It compiles fine but when I try to run it, it goes to HardFault pretty much right away.
Something in the INIT before it even gets to main.

I noticed thats the case for all the LPCOpen examples.
Is this firmware already working on real hardware or am I missing something important?
Labels (1)
0 Kudos
Reply
3 Replies

1,013 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bavarian on Mon Mar 17 07:03:28 MST 2014
Yes, please check the memory map of your linker configuration. Or simpler: select the LPC4357 as target controller.
Even if the execution memory can remain the same (SPIFI) on both chip types, the amount of internal SRAM is different. The flash type has less SRAM than the flashless type.
If the compiler allocates R/W code to a memory region where there is no memory, then it will not work.
All examples in LPCOpen are designed for the LPCXplorer board with the LPC4330.

Regards,
NXP Support Team.
0 Kudos
Reply

1,013 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Sun Mar 16 06:21:29 MST 2014
You are using a 4330 library on an 4357? For a start they have different memory map. The 4357 has flash and the 4330 does not. So, check the link map and linker memory configuration.
0 Kudos
Reply

1,013 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Sun Mar 16 04:40:52 MST 2014
In the first place, update to LPCXpresso 7.0.2, and see if you still see the same problems.

Regards,
LPCXpresso Support
0 Kudos
Reply