Récupérer une carte XIAO nrf52840

Utilisation d’une interface STLink et de openOCD :

Commande powershell :

OpenOCD-20250710-0.12.0\bin> ./openocd -f ../nrf52-dk.cfg -f ..\BurnBootloader.cfg

Script de programmation : j’ai renommé <Seeed_XIAO_nRF52840_Sense_bootloader061_s140_730.hex> en <BootLoader.hex>.

# Copyright 2024 Google LLC.
# SPDX-License-Identifier: Apache-2.0

# Program softdevice. After that, normal programming won’t override it IF the linker script (.ld) has the main
# application’s flash start address correct. For `s140`, the flash should start at 0x27000.
program ../BootLoader1.hex 0x27000
# The big red button if the MCU’s code is badly screwed. Provided by `target/nrf52.cfg`.
nrf52_recover

 

Script openOCD : nrf52-dk.cfg

 

# SPDX-License-Identifier: GPL-2.0-or-later

#
# Nordic Semiconductor NRF52 Development Kit (nRF52832)
#

source [find interface/stlink.cfg]

transport select swd

source [find target/nordic/nrf52.cfg]