LTE Modem over J-Link
This article describes how to flash the LTE modem firmware in CHESTER using SEGGER J-Link.
Requirements
You will need the following hardware and software tools:
One of these operating systems:
- Ubuntu version 20.04 / 22.04
- macOS version 11 / 12 (with Homebrew installed)
- Windows version 10 / 11
Python 3 distribution installed on your system:
- Ubuntu
- macOS
- Windows
Run this command in the Terminal app:
sudo apt install python3
Run this command in the Terminal app:
brew install python3
Download the latest stable installer from this link.
cautionEnsure the Windows installer can modify the
PATH
variable so the Python executable is available from any location.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 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 J-Link, and your system does not work, check the cable type in the first place.
Python application bundle HARDWARIO Command Line Tools
Installation
You can install HARDWARIO Command Line Tools with these steps:
On Windows only - Install the SEGGER J-Link drivers:
- Download 64-bit Intel/AMD installer
- Download 32-bit Intel/AMD installer
- Download 64-bit ARM installer
Open the Terminal (Ubuntu or macOS) or Command Prompt (Windows) application.
Initialize the Python virtual environment:
python3 -m venv hardwario-venv
Activate the Python virtual environment:
- Ubuntu
- macOS
- Windows
source hardwario-venv/bin/activate
source hardwario-venv/bin/activate
hardwario-venv\Scripts\activate.bat
cautionWhen you close the Terminal or Command Prompt, you must reactivate the Python virtual environment. Simply repeat the appropriate command for the given platform above.
Install HARDWARIO Command Line Tools:
pip install hardwario
You can verify the installation with the following command:
hardwario --version
It should provide output similar to this:
hardwario.chester v1.19.0
hardwario.cloud v1.4.1
hardwario.common v1.7.1
hardwario.hardwario v1.2.0
Flashing Procedure
Follow these steps to flash the LTE 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
APP
(orBLE
on hardware revision R3.2 and earlier).cautionOne of the wires on the flat cable between SEGGER 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 your computer and SEGGER J-Link.
Open the Terminal (Ubuntu or macOS) or Command Prompt (Windows) application.
Activate the Python virtual environment where you have installed the HARDWARIO Command Line Tools (see the previous chapter).
Run this command to erase the application firmware:
hardwario chester app erase
tipThe application firmware erase is required in order to prevent the reset signal collision between SEGGER J-Link and the application firmware.
Connect the 10-pin flat cable to the connector labeled
LTE
.cautionOne of the wires on the flat cable between SEGGER 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.Download the LTE modem firmware package v1.3.0.
infoIf you are upgrading your CHESTER to the LTEv2 communication stack, you need to download and flash v1.7.0 or higher.
This newer LTE firmware is not backward compatible with LTEv1 catalog apps and you have to flash to the APP/BLE MCU only the LTEv2 application like Demo or CHESTER Control.
Run this command to flash the LTE modem firmware:
hardwario chester lte flash hio-chester-lte-v1.3.0.zip
Connect the 10-pin flat cable to the connector labeled
APP
(orBLE
on hardware revision R3.2 and earlier).cautionOne of the wires on the flat cable between SEGGER 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.Flash the application firmware.
Disconnect the SEGGER J-Link adapter.