cederom commented on PR #17340:
URL: https://github.com/apache/nuttx/pull/17340#issuecomment-3583496334
Okay first steps working :-) Can flash with OpenOCD over the built-in Atmel
debug probe (luckily its generic `cmsis-dap.cfg` compatible), `nsh` builds and
works :-)
```
% uname -a
FreeBSD hexagon 14.3-RELEASE-p5 FreeBSD 14.3-RELEASE-p5 GENERIC amd64
% ./tools/configure.sh -B samv71-xult:nsh
(..)
% gmake -j24
(..)
LD: nuttx
Memory region Used Size Region Size %age Used
flash: 127608 B 2 MB 6.08%
sram: 10560 B 384 KB 2.69%
CP: nuttx.bin
% openocd -f interface/cmsis-dap.cfg -c 'transport select swd' -c 'set
CHIPNAME atsamv71q21' -f target/atsamv.cfg -c 'reset_config srst_only' -c init
-c targets -c 'reset halt' -c 'program nuttx.bin 0x400000' -c 'reset halt' -c
'atsamv gpnvm set 1' -c 'reset run' -c shutdown
Open On-Chip Debugger 0.12.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
swd
atsamv71q21
Info : flash bank command
srst_only separate srst_gates_jtag srst_open_drain connect_deassert_srst
Info : CMSIS-DAP: SWD supported
Info : CMSIS-DAP: FW Version = 03.25.01B6
Info : CMSIS-DAP: Serial# = ATML2407121800000086
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 1800 kHz
Info : SWD DPIDR 0x0bd11477
Info : [atsamv71q21.cpu] Cortex-M7 r1p1 processor detected
Info : [atsamv71q21.cpu] target has 8 breakpoints, 4 watchpoints
Info : starting gdb server for atsamv71q21.cpu on 3333
Info : Listening on port 3333 for gdb connections
TargetName Type Endian TapName State
-- ------------------ ---------- ------ ------------------ ------------
0* atsamv71q21.cpu cortex_m little atsamv71q21.cpu running
[atsamv71q21.cpu] halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0040097e msp: 0x20402d40
[atsamv71q21.cpu] halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0040097e msp: 0x20402d40
** Programming Started **
Info : device id = 0xa1220e01
Info : erasing lock regions 0-7...
Info : erasing lock region 0
Info : erasing lock region 1
Info : erasing lock region 2
Info : erasing lock region 3
Info : erasing lock region 4
Info : erasing lock region 5
Info : erasing lock region 6
Info : erasing lock region 7
** Programming Finished **
[atsamv71q21.cpu] halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0040097e msp: 0x20402d40
shutdown command invoked
% cu -l /dev/cuaU0 -s 115200
Connected
nsh> uname -a
NuttX 12.11.0 8f91054b1d Nov 27 2025 00:00:24 arm samv71-xult
nsh> help
help usage: help [-v] [<cmd>]
. cp expr mkdir rm uname
[ cmp false mkfatfs rmdir umount
? dirname fdinfo mkrd set unset
alias df free mount sleep uptime
unalias dmesg help mv source usleep
basename echo hexdump pidof test watch
break env kill printf time xd
cat exec pkill ps true wait
cd exit ls pwd truncate
Builtin Apps:
dd i2c nsh ramtest sh
```
So far so good :-)
Now into this mcuboot stuff :-)
https://nuttx.apache.org/docs/latest/platforms/arm/samv7/boards/samv71-xult/index.html#mcuboot-loader
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]