LPC1830 Xplorer faults immediately on boot

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

LPC1830 Xplorer faults immediately on boot

238 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gorzelic on Thu Nov 13 22:18:42 MST 2014
Hi,

I recently purchased an 1830 Xplorer and an LPC-Link 2.  I am using the latest version (2.12) of the demo's with latest LPCXpresso (7.5.0).  Demo's build fine and load to SPIFI (switches on board are set to boot from SPIFI), but as soon the reset script runs a hard fault is encountered (listing below). The program always ends up suspended at 0x1a00012e.

I have tried multiple versions of your IDE, multiple versions of the demo's, and several projects from the FreeRTOS site - always starting with a "clean" import into the IDE. The results are always the same.  I have also tried several different SPIFI scripts, and reset scripts.   I can reflash the peripheral test bin that I downloaded and it does boot successfully, but any time I try to debug a project the results are always the same.  From all the manuals I have read over the past few days it seems pretty mindless to get the demos to run, but I have not been successful.  Please suggest next steps - including purchasing a different development board - at this point I need (quickly) anything I can use that has MAC/PHY, preferably with a proven FreeRTOS demo using UDP (which is why I picked the 1830 Xplorer).

Thx,
Stan


LPCXpresso RedlinkMulti Driver v7.5 (Oct 24 2014 22:17:31 - crt_emu_cm_redlink build 172)
(  0) Reading remote configuration
Found chip XML file in C:/Users/Admin/Documents/LPCXpresso_7.5.0_254/workspace/freertos_blinky/Debug/LPC1830.xml
(  5) Remote configuration complete
( 30) Emulator Connected
( 40) Debug Halt
( 50) CPU ID
Emu(0): Conn&Reset. DpID: 2BA01477. CpuID: 410FC230. Info: (null)
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Loaded LPC18_43_S25FL032P.cfx: LPC18/43 S25FL032P 4MB(64KB) SPIFI @0x14000000 (Oct 13 2014 15:52:07)  External Flash Device on SPI
( 65) Chip Setup Complete
Connected: was_reset=false. was_stopped=true
v LPCXpresso Free License - Download limit is 256K
( 70) License Check Complete
( 85) Registered Semihost Handler
(100) Target Ready
Writing 19656 bytes to address 0x14000000 in Flash
(  0) Writing page 0 at 0x14000000 with 19656 bytes
(  0) Page  0 at 14000000
(  0) Page  0 at 14000000: 16384 bytes
( 83) Page  0 at 14004000: 3272 bytes
Erased/Wrote page  0-0 with 19656 bytes in 1732msec
(100) Finished writing Flash successfully.
Flash Write Done
Flash Program Summary: 19656 bytes in 1.73 seconds (11.08 KB/sec)
============= SCRIPT: LPC18LPC43ExternalFLASHBootResetscript.scp =============
Boot from FLASH image pc/sp reset script
PC = 0x1400107D
SP = 0x10018000
XPSR = 0x21000000
VTOR = 0x00000000
============= END SCRIPT =====================================================

Stopped: VectorCatch:HardF (PC unknown: stack=0x10017FE0) (VectorCatch)
0 Kudos
2 Replies

213 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gorzelic on Fri Nov 14 22:33:37 MST 2014
I do in fact have a board with the LPC1837 - free upgrade I guess.  Everything makes sense now (and is working).  Thanks for the help/quick response.

Besides the MCU setting, are there any other tweaks to the demo projects that need to be done for the part change?  For example, when building blinky with the 1830 MCU config an "LPC1830_part.xml" was generated with the 1830 memory map.  After changing to the 1837, it seems an equivalent file is not generated.

Thanks,
Stan
0 Kudos

213 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Fri Nov 14 01:15:33 MST 2014
Quite a few of these Xplorer boards actually seemed to have been sold which have LPC1837 (i.e. a part with internal flash) rather than LPC1830 (i.e a part with no internal flash). The amount and location of RAM on these also differ - which can definitely cause hard faults if you try to run on the wrong MCU. The fact that you end up at address 0x1a00012e also would indicate that you have a part with internal flash.

Thus in the first place, please check the markings on the MCU board and see which you have. If you have a board fitted with an LPC1837, you will need to reconfigure the MCU setting for your project in order to download and debug it successfully (via Project -> Properties).

For future reference, please also see:

http://www.lpcware.com/content/faq/lpcxpresso/lpc18-lpc43-support

Regards,
LPCXpresso Support
0 Kudos