Hi Paul, 

Correct, I am able to connect using the FLASH API table at  0x13001100 => 
0x130011A8.

I will check what the autodetection does.

For now, this is my output (it connects, programs and debugs)

Open On-Chip Debugger 0.12.0+dev-00461-g6c7521591-dirty (2025-04-28-23:17)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
0x130011A8
CDLiveWatchSetup
Info : auto-selecting first available session transport "swd". To override use 
'transport select <transport>'.
adapter speed: 1000 kHz
Info : Listening on port 50002 for tcl connections
Info : Listening on port 50004 for telnet connections
Info : CMSIS-DAP: SWD supported
Info : CMSIS-DAP: Atomic commands supported
Info : CMSIS-DAP: FW Version = 1.10
Info : CMSIS-DAP: Serial# = 1402B011
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 0 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 1000 kHz
Info : SWD DPIDR 0x6ba02477
Info : [lpc55xx.cpu] Cortex-M33 r0p3 processor detected
Info : [lpc55xx.cpu] target has 8 breakpoints, 4 watchpoints
Info : [lpc55xx.cpu] Examination succeed
Info : starting gdb server for lpc55xx.cpu on 50000
Info : Listening on port 50000 for gdb connections
Info : accepting 'gdb' connection on tcp/50000
Error: [lpc55xx.cpu] DP initialisation failed
Info : SWD DPIDR 0x6ba02477
[lpc55xx.cpu] halted due to debug-request, current mode: Thread 
xPSR: 0x09000000 pc: 0x130085ec msp: 0x30005f30
Error: [lpc55xx.cpu] DP initialisation failed
Info : SWD DPIDR 0x6ba02477
[lpc55xx.cpu] halted due to debug-request, current mode: Thread 
xPSR: 0x09000000 pc: 0x130085ec msp: 0x30005f30
Warn : keep_alive() was not invoked in the 1000 ms timelimit. GDB alive packet 
not sent! (9703 ms). Workaround: increase "set remotetimeout" in GDB
Error: [lpc55xx.cpu] DP initialisation failed


> Op 6 mei 2025, om 13:22 heeft Paul Fertser <fercer...@gmail.com> het volgende 
> geschreven:
> 
> On Tue, May 06, 2025 at 11:13:24AM +0300, Paul Fertser wrote:
>> On Mon, May 05, 2025 at 09:21:39PM +0000, Rolf | Onethinx wrote:
>>> I get a flash_init() failed trying to program an LPC55S69. Any Ideas?
>> ...
>>> I: Launching gdb-server: openocd -c "gdb_port 50000" -c "tcl_port 50002" -c
>>> "telnet_port 50004" -s /usr/local/share/openocd/scripts -c "set
>>> FLASH_API_ADDRESS 0x030010f0" -f
>> 
>> I wonder if this address is correct. It needs to be not the generic
>> "ROM API" address but the "Flash API" part of it. What I found in some
>> document was 0x130010f0 for the _ROM API_ table but I didn't have a
>> chance to test it on hardware and the documention wasn't really
>> complete. The pointer to the Flash API table is supposed to be at
>> offset 0x10 in the ROM API table.
> 
> https://github.com/Xilinxx/lpc55s69/blob/main/vendor/drivers/fsl_iap.c#L32
> suggests the address I found is correct, please just try enabling
> auto-detecting Flash API address by uncommenting the code for your
> device id.
> 
> -- 
> Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
> mailto:fercer...@gmail.com


Reply via email to