Skip to content

Commit 0518b68

Browse files
committed
Added Target.md documentation
1 parent 78847dc commit 0518b68

1 file changed

Lines changed: 33 additions & 8 deletions

File tree

docs/Targets.md

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -413,18 +413,43 @@ If the accepted candidate image resides on BANK B (like in this case), wolfBoot
413413
booting.
414414

415415

416-
### Debugging
416+
## LPC54606
417417

418-
Debugging with OpenOCD:
418+
### Build Options
419419

420-
Use the OpenOCD configuration from the previous section to run OpenOCD.
420+
The LPC54xxx build can be obtained by specifying the CPU type and the MCUXpresso SDK path at compile time.
421421

422-
From another console, connect using gdb, e.g.:
422+
The following configuration has been tested against LPC54606J512BD208:
423423

424-
Add wolfboot.elf to the make.
424+
```
425+
make TARGET=lpc SIGN=ECC256 MCUXPRESSO?=/path/to/LPC54606J512/SDK
426+
MCUXPRESSO_CPU?=LPC54606J512BD208 \
427+
MCUXPRESSO_DRIVERS?=$(MCUXPRESSO)/devices/LPC54606 \
428+
MCUXPRESSO_CMSIS?=$(MCUXPRESSO)/CMSIS
429+
```
430+
431+
### Loading the firmware
432+
433+
Loading with JLink (example: LPC54606J512)
425434

426435
```
427-
arm-none-eabi-gdb wolfboot.elf -ex "set remotetimeout 240" -ex "target extended-remote localhost:3333"
428-
(gdb) add-symbol-file test-app/image.elf 0x08020000
429-
(gdb) add-symbol-file wolfboot.elf 0x08000000
436+
JLinkExe -device LPC606J512 -if SWD -speed 4000
437+
erase
438+
loadbin factory.bin 0
439+
r
440+
h
441+
```
442+
443+
### Debugging
444+
445+
Debugging with JLink:
446+
```
447+
JLinkGDBServer -device LPC606J512 -if SWD -speed 4000 -port 3333
448+
```
449+
450+
Then, from another console:
451+
452+
```
453+
arm-none-eabi-gdb wolfboot.elf -ex "target remote localhost:3333"
454+
(gdb) add-symbol-file test-app/image.elf 0x0000a100
430455
```

0 commit comments

Comments
 (0)