Program the device firmware
First, make sure you have Segger JLink installed in your path.
Note
Programming the firmware through CLI is currently not supported on WSL 2 because it lacks support for serial devices. For more information, see the issue on WSL 2.
To program the configured and built firmware using the CLI, run the following command:
./cli.sh flash-firmware -f /path/to/firmware.hex
# default board is the Thingy:91, use --dk to program a DK
# pass --help to see the additional options
After the programming of the firmware, the device reboots and connects to the Azure IoT Hub, and eventually reports its state to the cloud:
[00:00:35.591,644] <inf> event_manager: CLOUD_EVT_CONNECTED