lpcware

Debug works on EA Baseboard, but not on final PCB

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by TKoe on Mon Dec 17 02:55:45 MST 2012
Hello!

I have programmed a piece of firmware on the Embedded Artists LPC1788 Baseboard (with the OEM board in the SODIMM socket) which works fine. Now we have recently produced our prototype PCB which also uses a fresh OEM board of the same type.

Now, if I use the fresh OEM board in my Baseboard everything works fine and as expected. However, when I insert it into my prototype PCB some funny stuff happens. First of all, programming with the LPCXpresso programmer seems to work just fine (the log file is at the end of this post), as it says that the programming was successful. What already worries me at that part is the line with "assumed clock: 12.0MHz", because on the EA Baseboard it says "assumed clock: 120.0MHz".
Also when I try to debug it through LPCXpresso it successfully starts, but it doesn't execute my code but rather starts off in some part at address 0x1fff.... which, according to the linker file, is somewhere at the end of the RAM section.
Needless to say that it doesn't do a thing, regardless of whether I am debugging it or just letting it run normally.

Any ideas?



Best regards!
Tim




<code>
Pc: (  0) Reading remote configuration
Ni: LPCXpresso Debug Driver v4.0 (Sep 19 2012 09:03:19)
Nc: Looked for chip XML file in C:/nxp/LPCXpresso_4.3.0_1023/lpcxpresso/bin/LPC1788.xml

Nc: Looked for vendor directory XML file in C:/nxp/LPCXpresso_4.3.0_1023/lpcxpresso/bin/nxp_directory.xml

Nc: Found generic directory XML file in C:/nxp/LPCXpresso_4.3.0_1023/lpcxpresso/bin/crt_directory.xml

Pc: (  5) Remote configuration complete
Pc: ( 30) Emulator Connected
Pc: ( 40) Debug Halt
Pc: ( 50) CPU ID
Nc: Emu(0): Conn&Reset. DpID: 2BA01477. Info: WIN32HS12
Nc: SWD Frequency: 250 KHz. RTCK: False. Vector catch: False.
Nc: Packet delay: 0  Poll delay: 0.
Nc: NXP: LPC1788  Part ID: 0x281D3F47
Pc: ( 65) Chip Setup Complete
Nt: Connected: was_reset=false. was_stopped=false
Cr:v Registered license, download limit of 128K
Pc: ( 70) License Check Complete
Nt: Loading ELF file 'MY_Cool_Firmware.axf' at location 00006000
Nt: Writing 34760 bytes to 6000 in Flash (assumed clock: 12.0MHz)
Pb: 1 of 2 (  0) Writing pages 6-13 at 0x00006000 with 32768 bytes
Ps: (  0) Page  6 at 00006000
Ps: ( 12) Page  6 at 00006000: 4096 bytes
Ps: ( 25) Page  7 at 00007000: 4096 bytes
Ps: ( 37) Page  8 at 00008000: 4096 bytes
Ps: ( 50) Page  9 at 00009000: 4096 bytes
Ps: ( 62) Page 10 at 0000A000: 4096 bytes
Ps: ( 75) Page 11 at 0000B000: 4096 bytes
Ps: ( 87) Page 12 at 0000C000: 4096 bytes
Ps: (100) Page 13 at 0000D000: 4096 bytes
Nt: Verified-same page 6-13 with 32768 bytes in 2460msec
Pb: 2 of 2 ( 94) Writing pages 14-14 at 0x0000E000 with 1992 bytes
Ps: (  0) Page 14 at 0000E000
Ps: (100) Page 14 at 0000E000: 1992 bytes
Nt: Verified-same page 14-14 with 1992 bytes in 427msec
Pb: (100) Finished writing Flash successfully.
Nt: Flash write Done
Nc: nSRST assert (if available)
Nc: Executing in bootloader.
Wc: SWD Frequency (Final): 250 KHz.
</code>

Outcomes