NINA-B4 series - System integration manual
UBX-19052230 - R06
u-connectXpress software
Page 36 of 45
C1-Public
To set the module in FW download mode use the AT+UFWUPD AT command as shown below:
AT+UFWUPD=0,115200,0,221092,
aCSLNDWWNHVbZNdFaHaocxs2cOeDH4fjfiMrH51mearz3M8lvkx6A0VUv7rxgcOEdQ3qprWkaZ
UBvmO5yM8HbUStaZ8QBT/KbkuJSzfT3AQgN7q/HwhZA5haVH4GufkACisGzoTHKhpkzNSR1O8ezf0dltuNeIC4Q/MR
GQcAqNHxoV/o3YcTMC1EbcO3G/OzGr0eiC3txAtFIjfwjvnWTHVMYYAqj6WqosPO5G3g9XYFl5
RWjSgxjV7noaMmt8qtb8wBlphBv/D5zk5EzqRigzDy02KY9Es6Crk6/Hnq1xA3dQ==,NINA-B4-
APPLICATION,rwx
2.
When a ‘C’ character is received from the module, XMODEM download is ready to begin from the
host.
CCCCC
3.
Send the application bin file using XMODEM protocol.
4.
After a successful file transfer, the module will automatically start the application.
+STARTUP
4.1.2.1.1
Example commands executed when flashing both the SoftDevice and
application
In this section we describe a flashing scenario where both the application file and the SoftDevice are
updated.
1.
Start the boot loader mode using either:
The AT command -
AT+UFWUPD=1,115200
Press the SW1 and SW2 buttons during a module reset
2.
The “
s <imageid> <signature>
” command stores the SoftDevice signature. The image id of the
SoftDevice is 1. The signature is available in the
NINA-S140-SI-x.x.x.txt
file.
> s 1
eLUzv7gYL5fDJ8H1VH7B1JWZjK2W3mMWWVYdY0IxKATg6LrIo9++nTPxB++FDzI
h+3hpP8GZe5h2SvE/JGLJScnu5+7+qKB11Fz2kEZCwigPfoYHjbslnfKLzvuVvwJekly/DW
YQHVgEHmTRczvyc5psK73UPYKKSgTM87ZFWIBHFa4vQMlWsMl75UqmgpaKGtCCbQy6LsAtQ
oXENTda7efD3Irs2p0pWEq48Tjaym1HiAgUoGc7AnuMPl78qRUGLA6Z/m2f7En0B9ldC67VZw==
3.
The “
x <imageaddress> <imagesize> <imagename> <permissions> <imageid>
” command triggers
the boot loader to accept a file transfer using XMODEM protocol. The image address and image
size can be found in the NINA-B41X-CF-X.Y.json file. Set permission to read/write, rw.
{
"Label"
: "SoftDevice",
"Description"
: "S140 softdevice from Nordic for NINA-NRF",
"File"
: "NINA-S140-SD-7.2.0.bin",
"Version"
: "NINA-S140-SD-7.2.0",
"Address":
"0x0"
,
"Size"
: "0x26634",
"Id"
:
"0x1"
,
"Permissions":
"rw"
,
"SignatureFile"
: "NINA-S140-SI-7.2.0.txt"
}
Use the ‘x’ boot loader command to download the SoftDevice file:
> x 0 0x26634 NINA-B4-SOFTDEVICE rw 1