Hello,
I am trying to program an LPC802M001JDH20 mounted on a TSSOP20 breakout board using ST-Link V2 and OpenOCD (0.12.0) on Linux, but I cannot connect to the target.
Hardware Setup
LPC802 Pin Connection
| Pin 15 (VDD) | 3.3 V |
| Pin 16 (VSS) | GND |
| Pin 18 (VREFP) | 3.3 V |
| Pin 7 (SWCLK) | ST-Link SWCLK |
| Pin 8 (SWDIO) | ST-Link SWDIO |
| Pin 5 (RESET) | 10k pull-up to 3.3 V |
Target voltage detected by ST-Link: ~3.26 V
OpenOCD Command
openocd -f interface/stlink.cfg -f target/lpc8xx.cfg
Initial Output
Previously I received:
Warn : UNEXPECTED idcode: 0x0bc11477
Error: expected 1 of 1: 0x0bb11477
After setting the TAP ID:
openocd -f interface/stlink.cfg -c "set CPUTAPID 0x0bc11477" -f target/lpc8xx.cfg
I now get:
Error: init mode failed (unable to connect to the target)
Observations
When OpenOCD runs, an LED connected to a GPIO (pin 4 on tssop-20) briefly lights and then turns off.
RESET pin measures about ~1.3 V instead of 3.3 V.
Voltage between VDD (pin 15) and RESET (pin 5) is about 2 V.
The MCU has never been programmed before (new chip).
Questions
Should the RESET pin normally sit at VDD internally, or is an external pull-up mandatory?
Could the abnormal RESET voltage indicate the chip is stuck in reset?
Is there anything else required for minimal LPC802 SWD debugging (boot pins, ISP mode, etc.)?
Any help would be appreciated. Thank you.