Difference between revisions of "radino40 software"
(Created page with "===Setup toolchain (Windows PC)=== ====Cygwin setup==== On Windows PC the use of cygwin console is recommended. The following steps describe how to setup cygwin for radino40...") |
(→Devices with CP210x USB: clarify update procedure using the uploader tool) |
||
| Line 70: | Line 70: | ||
* update | * update | ||
# follow the steps above up to step 3 | # follow the steps above up to step 3 | ||
| − | # unpack the .zip file and start the updater tool | + | # unpack the ''dfu_container.zip'' file and start the updater tool |
| − | # set the update files in the tool to the unpacked ones | + | # set the update files in the tool to the unpacked ones: |
| − | #* | + | #* ''nrf52840_xxaa.dat'' |
| − | #*# | + | #* ''nrf52840_xxaa.bin'' |
| − | #*# | + | # Target |
| − | #*# | + | #* ''all devices'' |
| − | #*# new software version | + | # Hardware |
| − | # tool: connect | + | #* leave field empty |
| − | # tool: prepate | + | # Software from: |
| − | # press RST-button on the device | + | #* ''any'' |
| − | # tool: start update process | + | # Software to: |
| + | #* this can any arbitrary software version string which is also written onto the device by the bootloader | ||
| + | #** e.g. ''sw-1'' | ||
| + | #* on subsequent uploads the software string must be different | ||
| + | #** e.g. ''sw-2'' | ||
| + | #* the bootloader only accepts new firmware uploads with a different software version string than the currently installed firmware | ||
| + | # tool: click ''connect device'' | ||
| + | # tool: click ''prepate packets'' | ||
| + | # press ''RST-button'' on the device | ||
| + | # tool: click ''start update process'' within 5 seconds | ||
---- | ---- | ||
Revision as of 13:25, 7 January 2026
Contents |
Setup toolchain (Windows PC)
Cygwin setup
On Windows PC the use of cygwin console is recommended. The following steps describe how to setup cygwin for radino40 DW1000 projects.
- Download latest cygwin
- https://cygwin.com/install.html -> setup-x86_64.exe
- Install cygwin
- Enable the following additional packages within cygwin installation:
- make (located at devel->make)
- bash-completion (located at shells->bash-completion)
- Optional recommended packages:
- chere (located at shells)
- Configure chere to get context menu option Bash Prompt Here
- Run cygwin as Administrator
- Run the following command to configure chere:
$ chere -i -t mintty -s bash
- Enable the following additional packages within cygwin installation:
Driver setup
- Download radino40 DW1000 Bootloader driver
- https://ic42.de/Download/nrfconnect-driver-installer.zip (sha256sum: 8570dc48cd0c4a5c6de259340d54fb820c773d5b9e6855615be5b81ca5fa702e)
- Run nrfconnect-driver-installer.exe to install driver
radino40 DW1000 SDK
Installation
- Download latest radino40 DW1000 SDK
- extract radino40 DW1000 SDK
- it is recommended to extract the radino40 DW1000 SDK in a short path
Compile & Upload Examples
- software examples are located within the directory ic-bootloadable-examples, e.g.:
- blinky_delay
- dw1000_ping_pong_distcalc
- ...
- each software example contains hardware specific subfolders, e.g.:
- hardware_breakout
- for 901.550 radino40 Breakout Board
- hardware_quad_tag
- hardware_usb_stick
- ...
- hardware_breakout
- example: compile example blinky_delay for specific hardware hardware_breakout
- open cygwin
- navigate to radino40DW1000SDK\ic-bootloadables-examples\blinky_delay\hardware_breakout
$ cd radino40DW1000SDK\ic-bootloadables-examples\blinky_delay\hardware_breakout
- compile firmware
$ make clean && make -j 16
- generate dfu image for bootloader upload
$ make dfu_generate
- determine bootloader COM port
- connect radino40 DW1000 breakout board via USB to PC
- open device manager
- e.g. Windows 10: press Windows+X and select device manager
- press RST-button on radino40 Breakout Board to start bootloader
- the bootloader should be listed in the device manager as
nRF52 SDFU USB (COM3)
- (the COM port number can be different)
- upload firmware using the COM port number
$ make dfu_load NRF_UTIL_COM=COM3
- wait 3-4 seconds
- press RST-button on radino40 Breakout Board to start bootloader
- if upload was successfull the following message will appear:
Device programmed.
Devices with CP210x USB
- not all hardware have the USB line connected to the USB plug. For these you need a different tool to update the firmware.
- latest version of the updater tool
- update
- follow the steps above up to step 3
- unpack the dfu_container.zip file and start the updater tool
- set the update files in the tool to the unpacked ones:
- nrf52840_xxaa.dat
- nrf52840_xxaa.bin
- Target
- all devices
- Hardware
- leave field empty
- Software from:
- any
- Software to:
- this can any arbitrary software version string which is also written onto the device by the bootloader
- e.g. sw-1
- on subsequent uploads the software string must be different
- e.g. sw-2
- the bootloader only accepts new firmware uploads with a different software version string than the currently installed firmware
- this can any arbitrary software version string which is also written onto the device by the bootloader
- tool: click connect device
- tool: click prepate packets
- press RST-button on the device
- tool: click start update process within 5 seconds
Firmware-Update via USB Bootloader
NOTE: The following section is NOT relevant when using the radino40 DW1000 SDK.
Required Software
The radino40 DW1000 is shipped programmed with a usb bootloader which can be used to upload new firmware.
The USB driver needs to be installed, it can be downloaded here
Also the nrf_util tool has to be downloaded from here (additional information regarding this tool can be found on nordicsemi.com or github.com)
The compiled firmware binaries are delivered within a compressed zip file dfu_container.zip.
Starting the bootloader
Enable the bootloader on the radino40 software via low on the reset pin, e.g. by pressing the RESET-Button. The radino40 software stays in bootloader mode for 2 seconds. After that the Firmware is running.
The bootloader will be recognized as a serial COM-Port, e.g. COM4.
Upload firmware with nrfutil
On a windows PC open a Command window (cmd.exe) and navigate to the folder that contains the firmware file dfu_container.zip.
Replace COM4 with the COM-Port that your PC assigned to your device.
command to flash:
nrfutil dfu usb-serial -pkg <dfu_container.zip> -p <COM Port: COM4> -b 115200
example:
nrfutil dfu usb-serial -pkg dfu_container.zip -p COM4 -b 115200
Start the nrfutil.
The nrfutil now waits up to 10 seconds for the radino40 software to enter the bootloader.
If the nrfutil exits successful the radino40 software is programmed.