lpcware

Custom lpc1517 board SWD failure

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by omegahacker on Wed Aug 20 09:52:26 MST 2014
I've got a custom LPC1517 board that's currently populated with *just* the chip, crystal, and SWD connector.  I'm trying to get it to bootstrap in LPCxpresso 7.2.0 (upgrade pending, just downloaded 7.3.0) on Ubuntu 14.04, using an LPC-Link2 board.

What I get is this:


LPCXpresso RedlinkMulti Driver v7.2 (May 13 2014 18:16:20 - crt_emu_cm_redlink build 103)
============= SCRIPT: LPC15RunBootRomConnect.scp =============
DpID = 2BA01477
AP_ID = 0x24770011
Halt on reset vector catch
Halt on watchpoint write of ROMWSCTRL register
============= END SCRIPT =====================================
Emu(0): Conn&Reset. DpID: 2BA01477. CpuID: 410FC230. Info: (null)
Debug protocol: SWD. RTCK: Disabled. Vector catch: Enabled.
Loaded LPC15xx_64K.cfx: LPC15 (64K Flash) Jul 31 2013 14:19:51  On-chip Flash Memory
Connected: was_reset=true. was_stopped=true
v LPCXpresso Free License - Download limit is 256K
Writing 4804 bytes to address 0x00000000 in Flash
RAM failed verify 02001000 at Flash 00000000
RAM failed verify 02001000 at Flash 00000000
Flash Program Summary: 4804 bytes in 0.55 seconds (8.61 KB/sec)
============= SCRIPT: LPC15RunBootRomReset.scp =============
Halt on reset vector catch
Halt on watchpoint write of ROMWSCTRL register
============= END SCRIPT ===================================
Target error from Commit Flash write: Ep(08). Cannot access core regs when target running.
terminating on communication loss: Pipe has been closed by GDB.


When I connect the same cable to a stock LPC1549 Xpresso board it works fine, so the problem is definitely on my board.

I didn't have anything other than decoupling caps (2x 0.1uF, 2x 10nF) on the board initially because it was an early turn.  I hotwired into SWDIO, SWCLK, RESET, ISP0, and ISP1, and have them set up with pulls:

SWDIO - 10K up
SWCLK - 10K down
RESET - 10K up
ISP0 - 10K up
ISP1 - 10K up

There's *literally* nothing else on the board, so it seems like I have a rather fundamental problem here.

The actual code I'm trying to flash is the LPCopen 2.08c package for lpc1549, with the periph_sct_pwm demo retargeted for the 1517, no other changes.

Outcomes