LoRaWAN Modem over J-Link
This article will describe how to flash the LoRaWAN modem firmware in CHESTER using SEGGER J-Link.
Requirements
You will need the following hardware and software tools:
One of these operating systems:
- Ubuntu 20.04 and Ubuntu 22.04
- macOS 11 and macOS 12
- Windows 10 and Windows 11
HARDWARIO CHESTER device (you will need to open the enclosure top cover with six screws)
USB debugger/programmer SEGGER J-Link (including a 10-pin SWD adapter + flat cable)
tipHARDWARIO provides SEGGER J-Link + all the required accessories on demand.
Micro-USB cable with appropriate plug type to your computer
dangerSome Micro-USB cables provide only power and no data signals. If the connection between SEGGER J-Link, and your system does not work, check the cable type in the first place.
Installation
You can install SEGGER J-Link Software and Documentation Pack with these steps:
- Ubuntu
- macOS
- Windows
Download the 64-bit DEB package from this link.
Open the Terminal application.
Go to the folder with the downloaded package, for example:
cd Downloads
Install the package using this command:
sudo dpkg -i JLink_Linux_<VERSION>_x86_64.deb
cautionDon't forget to replace the
<VERSION>
placeholder with the real version in the file name.
Download the universal PKG installer from this link.
Launch the downloaded installer and finish the installation.
Download the 64-bit Intel installer from this link.
Launch the downloaded installer and finish the installation.
Flashing Procedure
Follow these steps to flash the LoRaWAN modem firmware in the CHESTER device:
Open the CHESTER enclosure (6 screws from the bottom side).
Connect the 10-pin flat cable to the connector labeled
LRW
.cautionOne of the wires on the flat cable between J-Link and CHESTER has red color. This red color denotes signal number 1. This red-colored signal has to be oriented toward the black dot located next to the SWD connector on the CHESTER mainboard. The same rule with the cable applies at the side of SEGGER J-Link.
Connect the other side of the 10-pin flat cable to the SEGGER J-Link adapter board (and plug the adapter board into the SEGGER J-Link device).
Connect the Micro-USB cable to SEGGER J-Link and your computer.
Connect the Micro-USB cable to your computer and SEGGER J-Link.
Download the LoRaWAN Modem firmware package v1.4.1.
Unzip the downloaded package.
Open the Terminal application and switch to the directory with the unzipped package.
Start the flash procedure:
- Ubuntu
- macOS
- Windows
./flash.sh
./flash.sh
flash.bat
You should get a message about the successful operation.
Disconnect SEGGER J-Link from the SWD connector.
Power-cycle the CHESTER device.
dangerSkipping the power-cycling step may result in an undefined LoRaWAN modem operation.