|
From: Jānis Š. <jan...@hw...> - 2019-11-25 13:04:04
|
Hello guys, I thought LPC1226 was supported, but when I try debugging the target with GDB or use 'program' command it crashes with saying: Error: BUG: unknown Part ID encountered: 0x3660002b However it does work with basic functionality: I can halt, access memory, write to RAM and peripheral registers. The board is custom-made, but at this point I don't think this is anything board-specific. Now, the details from my last attempt: I'm running the OpenOCD on Debian 9 (x86_64) with: /usr/bin/openocd -f jlink.tcl where contents of 'jlink.tcl' are: # Use J-Link over SWD transport source [find interface/jlink.cfg] transport select swd # Load LPC12xx configuration source [find target/lpc12xx.cfg] # Configure to drive nRESET/SRST (not default) reset_config srst_only # Select 10MHz debug clock in accordance to # Keil default configuration adapter_khz 10000 then, issuing commands over telnet interface I get such output (telnet interactive input intermixed): Open On-Chip Debugger 0.10.0 Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html adapter speed: 10 kHz adapter_nsrst_delay: 200 cortex_m reset_config sysresetreq srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst adapter speed: 10000 kHz Info : No device selected, using first device. Info : J-Link V10 compiled Dec 7 2017 11:13:46 Info : Hardware version: 10.10 Info : VTarget = 3.386 V Info : clock speed 10000 kHz Info : SWD DPIDR 0x0bb11477 Info : lpc12xx.cpu: hardware has 4 breakpoints, 2 watchpoints Info : accepting 'telnet' connection on tcp/4444 > halt target halted due to debug-request, current mode: Handler HardFault xPSR: 0x61000003 pc: 0x00000184 msp: 0x100011f8 > dump_image /tmp/test.bin 0x0 0x4b40 dumped 19264 bytes in 0.045983s (409.119 KiB/s) > load_image test_blink.hex SWD DPIDR 0x0bb11477 Failed to write memory at 0x00000000 > program test_blink.hex target halted due to debug-request, current mode: Handler HardFault xPSR: 0x61000003 pc: 0x00000184 msp: 0x100011f8 ** Programming Started ** auto erase enabled BUG: unknown Part ID encountered: 0x3660002b Connection closed by foreign host. So, uhmm, it's a bug, isn't it? Sincerely, Jānis |