NRF Firmware
Posted: Tue Sep 22, 2020 5:29 am
After I tried to flash the NRF chip, I can't connect to the drone anymore.
Here is what I get when trying to flash the NRF.
Here is what I get when trying to flash the STM32.
Here is what I get when trying to flash the NRF.
Code: Select all
make flash
openocd -d2 -f interface/stlink-v2-1.cfg -f target/nrf51.cfg -c init -c targets -c "reset halt" \
-c "flash write_image erase cf2_nrf.hex" -c "verify_image cf2_nrf.hex" \
-c "reset run" -c shutdown
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1000 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Info : STLINK v2 JTAG v33 API v2 SWIM v25 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 2.889334
Info : nrf51.cpu: hardware has 4 breakpoints, 2 watchpoints
TargetName Type Endian TapName State
-- ------------------ ---------- ------ ------------------ ------------
0* nrf51.cpu hla_target little nrf51.cpu running
target halted due to debug-request, current mode: Thread
xPSR: 0xc1000000 pc: 0x000006d0 msp: 0x000007c0
auto erase enabled
Warn : Unknown device (HWID 0x00000138)
Warn : using fast async flash loader. This is currently supported
Warn : only with ST-Link and CMSIS-DAP. If you have issues, add
Warn : "set WORKAREASIZE 0" before sourcing nrf51.cfg to disable it
wrote 65536 bytes from file cf2_nrf.hex in 5.972767s (10.715 KiB/s)
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x000007c0
verified 64528 bytes in 0.534844s (117.821 KiB/s)
shutdown command invoked
Code: Select all
leonana69@ubuntu:~/Desktop/crazyflie-firmware-leo$ make cload
python3 -m cfloader -w radio://0/80/2M/E7E7E7E7E7 flash cf2.bin stm32-fw
Reset to bootloader mode ...
Traceback (most recent call last):
File "/home/leonana69/Desktop/crazyflie-clients-python/src/cfloader/__init__.py", line 139, in main
if bl.start_bootloader(warm_boot=True):
File "/home/leonana69/Desktop/crazyflie-lib-python/cflib/bootloader/__init__.py", line 112, in start_bootloader
self._cload.request_info_update(TargetTypes.NRF51)
File "/home/leonana69/Desktop/crazyflie-lib-python/cflib/bootloader/cloader.py", line 247, in request_info_update
return self.targets[target_id]
KeyError: 254
254