Daplink & LPC11U35

Hi,

I made a custom board with the LPC11U35 and I tried to program my board with the firmware I’ve built in: DAPlink/projectfiles/make_gcc_arm/lpc11u35_if/build/lpc11u35_if.elf

I am flashing using J-Link and that seems to work. However there seems to be something wrong with the vectortable / image. See output below.

I also tried to copy the lpc11u35_if.bin > firmware.bin to the CRP DISABLD USB disc in bootloader mode. Without succes (Daplink doesn’t seem to start).

Can anyone give pointers? It’s the first time I try to program the LPC11U35.


S: JLinkARM.dll V8.12b (DLL compiled Jan 15 2025 13:43:45)
S: 
S: Command line: -singlerun -nogui -if swd -port 50000 -swoport 50001 -telnetport 50002 -device lpc11u35/401
S: -----GDB Server start settings-----
S: GDBInit file:                  none
S: GDB Server Listening port:     50000
S: SWO raw output listening port: 50001
S: Terminal I/O port:             50002
S: Accept remote connection:      yes
S: Generate logfile:              off
S: Verify download:               off
S: Init regs on start:            off
S: Silent mode:                   off
S: Single run mode:               on
S: Target connection timeout:     0 ms
S: ------J-Link related settings------
S: J-Link Host interface:         USB
S: J-Link script:                 none
S: J-Link settings file:          none
S: ------Target related settings------
S: Target device:                 lpc11u35/401
S: Target device parameters:      none
S: Target interface:              SWD
S: Target interface speed:        4000kHz
S: Target endian:                 little
S: 
S: Connecting to J-Link...
S: J-Link is connected.
S: Firmware: J-Link V10 compiled Jan 30 2023 11:28:07
S: Hardware: V10.10
S: S/N: 260115400
S: OEM: SEGGER-EDU
S: Feature(s): FlashBP, GDB
S: Checking target voltage...
S: Target voltage: 4.01 V
S: Listening on TCP/IP port 50000
S: Connecting to target...
S: Connected to target
S: Waiting for GDB connection...Connected to 0000:0000:0000:0000:0000:0000:0000:0001
S: GDB client (conn. 9) requested target.xml from GDB Server
S: Reading common registers: Read register 'r0' (4 bytes) from hardware: 0x00000000
S: Read register 'r1' (4 bytes) from hardware: 0xB2000000
S: Read register 'r2' (4 bytes) from hardware: 0xE01E0010
S: Read register 'r3' (4 bytes) from hardware: 0xF9FFFFFF
S: Read register 'r4' (4 bytes) from hardware: 0xB6AECD51
S: Read register 'r5' (4 bytes) from hardware: 0xF4070020
S: Read register 'r6' (4 bytes) from hardware: 0x21E6FFDF
S: Read register 'r7' (4 bytes) from hardware: 0xC0830440
S: Read register 'r8' (4 bytes) from hardware: 0x0300FC28
S: Read register 'r9' (4 bytes) from hardware: 0xDDD50A09
S: Read register 'r10' (4 bytes) from hardware: 0x12CF13A1
S: Read register 'r11' (4 bytes) from hardware: 0xF07AA028
S: Read register 'r12' (4 bytes) from hardware: 0x02648929
S: Read register 'sp' (4 bytes) from hardware: 0xD0070020
S: Read register 'lr' (4 bytes) from hardware: 0xB1070000
S: Read register 'pc' (4 bytes) from hardware: 0xFEFFFFFF
S: Read register 'xpsr' (4 bytes) from hardware: 0x03000021
S: WARNING: Failed to read memory @ address 0xFFFFFFFE
S: Received monitor command: halt
S: Halting target CPU...
S: ...Target halted (PC = 0xFFFFFFFE)
S: Received monitor command: reset
S: Resetting target
S: Downloading 1024 bytes @ address 0x00000000
S: Downloading 16000 bytes @ address 0x00000400
S: Downloading 16016 bytes @ address 0x00004280
S: Downloading 15984 bytes @ address 0x00008110
S: Downloading 6872 bytes @ address 0x0000BF80
S: Downloading 8 bytes @ address 0x0000DA58
S: Downloading 4 bytes @ address 0x0000DA60
S: Downloading 4 bytes @ address 0x0000DA64
S: Downloading 1312 bytes @ address 0x0000DA68
S: Writing register 'pc' = 0x000004C8
S: Comparing flash   [....................] Done.
S: Erasing flash     [....................] Done.
S: Programming flash [....................] Done.
S: Received monitor command: reset
S: Resetting target
G: 
Program
G:  received signal SIGTRAP, Trace/breakpoint trap.
G: 0xfffffffe in ?? ()

Hi,

As far as I know, LPC11U35 interface chip should be LPC11U35/501 (not 401 variant), because extra RAM is needed for USB stack.

Also, you can find some more information from here:

Regards,

Toyo

Yes I already found out. The 401 doesn’t have the additional 2KB SRAM1. I was able to move the stack to the main SRAM0 and bss2 to the upper part of the USB RAM. It all barely fits but I got it all running at least.

Thanks! :nerd_face:

1 Like