The ConnectCore 8X system-on-module contains an ultra-low power ARM Cortex-M0+ (NXP Kinetis KL17: MKL17Z64VDA4) Micro Controller Assist chip.
Firmware update application
You can use the mca_fw_updater
command line application to update the firmware that runs on the Micro Controller Assist (MCA) of the ConnectCore 8X.
The flash memory of the MCA is divided into two regions: program flash and NVRAM. Before writing the new firmware, this application completely erases the contents of the program flash through the MCA bootloader. By default, the NVRAM is also erased.
The MCA firmware is a critical part of the system. If you are not sure of the origin of your new firmware image or the benefits of updating it, do not proceed. |
The bootloader must restart the MCA to re-run the application stored in flash, and this involves restarting the complete system. |
Check the latest MCA firmware version available
Your ConnectCore 8X system-on-module ships from factory with a pre-programmed firmware on the MCA. Digi, however, ships fixes and updates of the MCA firmware on the support web site.
Digi recommends you verify the current firmware version of the MCA and check for a more recent version on the Digi support site.
Go to the ConnectCore 8X product support page to check for the latest available MCA firmware version.
Check the current MCA firmware version
Verify the current MCA firmware on your SOM by reading it on the U-Boot banner:
U-Boot SPL dub-2020.04-r2.2 (Jan 18 2021 - 15:54:04 +0000)
Normal Boot
Trying to boot from MMC1
Primary set selected
Load image from MMC/SD 0x5f400
U-Boot dub-2020.04-r2.2 (Jan 18 2021 - 15:54:04 +0000)
CPU: NXP i.MX8QXP RevB A35 at 1200 MHz at 25C
DRAM: 2 GiB
MCA: HW_VER=1 FW_VER=1.01
MMC: FSL_SDHC: 0, FSL_SDHC: 1
In: serial
Out: serial
Err: serial
Model: Digi International ConnectCore 8X SBC Pro Board.
ConnectCore 8X SOM variant 0x02: 2 GiB LPDDR4, Wi-Fi, Bluetooth, MCA, Crypto-auth
Board version 3, ID 135
Boot: MMC0
BuildInfo:
- SCFW 56682d58, SECO-FW 0e4b9cee, IMX-MKIMAGE 8da5cd23, ATF c949a88
- U-Boot dub-2020.04-r2.2
flash target is MMC:0
Net: eth0: ethernet@5b040000 [PRIME], eth1: ethernet@5b050000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
=>
On a running system, you can check the MCA firmware version by running the sysinfo
command.
Compatibility with MCA firmware
MCA firmware v0.11 or higher required. Previous versions are not supported and should be updated using a debugger.
Command line options
Command line option | Action |
---|---|
|
Show the current version of the tool |
|
Show the available options |
|
Erase the flash completely and update firmware with file FILE |
|
Update firmware but keep current NVRAM contents |
Option -f
erases both program and NVRAM flash sectors before installing the new firmware.
If this option is used together with -k
, the NVRAM will not be erased.
Option -k
alone is not valid; it performs no action.
Update MCA firmware
The firmware must be contained in a binary file, with read permissions for the user.
When the program is invoked with option -f
, it starts the update process:
# mca_fw_updater -f mca_cc8x_vX.XX.bin
The update process may take 20 seconds or more
During this process the chip drivers become unresponsive and you may
see I2C communication error messages on the console.
These error messages are expected and don’t interfere with the
firmware update process.
DO NOT POWER OFF OR RESET the device.
DO NOT CTRL+C OR ABORT this operation.
The program sends a message to the MCA firmware with the byte sequence for calling the bootloader and then checks that the bootloader is running. Then it performs the selected operations (update firmware, erase NVRAM). The process may take longer than 20 seconds, and the console displays a spinning bar. During this time, the system must be kept powered to successfully complete the update. Once the new firmware is written, resetting the MCA takes five seconds. Note that during the MCA reset process, the program appears to perform no action. The {cpu-family} CPU then reboots together with the MCA.
Do not abort the firmware update process. If the process is interrupted during the write phase, the MCA could be left in an inconsistent state. If the process fails you can retry manually, but success is not guaranteed. In this case, you can only recover the MCA by flashing the firmware with a debugger probe. |
For more information about the mca_fw_updater
application, see MCA management application.
Program firmware with JTAG debugger
Digi recommends you use the mca_fw_updater application to update the MCA firmware, but you can also use a debugger.
|
To program the MCA firmware using a JTAG debugger, you need:
-
A hardware debugger such as a P&E USB multilink debugger or a standalone Cyclone programmer.
-
An accessible Serial Wire Debug (SWD) port on your carrier board.
-
An adapter cable between the hardware debugger and the SWD port.
MCA SWD port
The Digi ConnectCore 8X SBC Pro board has a tag connect footprint to access the SWD port of the MCA. Locate the SWD tag connect footprint on the labeled board image on the ConnectCore 8X SBC Pro Hardware Resource Manual.
Use the following pinout as reference to create a custom cable between your debugger and the tag-connect footprint on the carrier board.
Pin | Line |
---|---|
1 |
VCC_MCA |
2 |
MCA_SWD_DIO |
3 |
GND |
4 |
MCA_SWD_CLK |
5 |
MCA_VCC |
6 |
- |
7 |
- |
8 |
- |
9 |
- |
10 |
MCA_RESET |
Use the pinout as reference to create a custom cable between your debugger and the tag-connect footprint on the carrier board.
Program firmware with USB multilink debugger
The P&E USB Multilink debugger is a hardware debugger that you can drive from a host computer via USB.
To program firmware using this debugger:
-
You need a GDB server running on the debugger. Download and install NXP Kinetis Design Studio, which contains a GDB server for the P&E multilink debugger.
-
Download the ELF image from the ConnectCore 8X product support page.
-
Connect the debugger to the PC via USB, and to the designated SWD port on the carrier board with the adapter cable. See SWD port for more information. You must hold the cable to keep it connected during the programming process. (The following image is included for general reference and may not match your board.)
-
Power on the board. Both LEDs on the debugger light up.
-
Run the Linux command line version of Kinetis Design Studio on your host computer with two parameters:
-
-startserver
to start the P&E GDB server and -
-device=<model>
to specify the Kinetis model you are connecting to (NXP_KL1x_KL14Z32M4
for the I/O Expander,KL17: MKL17Z64VDA4
for the MCA).$ /opt/KDS_v3/eclipse/plugins/com.pemicro.debug.gdbjtag.pne_2.4.1.201603202153/lin/pegdbserver_console -startserver -device=<model>
The server runs, detects the hardware, and lists the ports it is running on.
-
-
In another shell, source the Digi Embedded for Android SDK environment:
$ source {toolchain-path}/environment-setup-
-
Run the GDB client:
$ {toolchain-prefix}-gdb
-
At the GDB prompt, connect to the GDB server on the debugger (using one of the ports reported above):
(gdb) target remote localhost:7224
The server reports "Connection from "127.0.0.1" via 127.0.0.1"
-
Load the ELF file you want to debug/program with:
(gdb) load filename.elf
This erases and programs the flash and loads it with the file.
-
Continue execution of the loaded file with:
(gdb) continue
-
Quit the GDB server by pressing CTRL+C.
-
The ELF file contains only the bootloader, not the full firmware. Once you install the bootloader, you can program the firmware using the application. See Update firmware.
-
When finished programming, restart to load the new firmware. Use the command
sysinfo
to print the firmware version and verify correct programming.
Program firmware with standalone Cyclone programmer
The P&E stand-alone Cyclone programmer is designed for programming in a production environment.
The following instructions assume you have installed and configured your Cyclone programmer according to the manufacturer setup instructions. |
-
Download the desired SAP (Stand-Alone Programming) image from the ConnectCore 8X product support page.
-
Transfer the image to the Cyclone programmer. After this step is done, you no longer need the host PC and you can program the firmware with a button press.
-
On the Cyclone programmer, use the screen menus to select the image to program.
-
Connect the Cyclone programmer to the designated SWD port on the carrier board with the adapter cable. See SWD port for more information. You must hold the cable to keep it connected during the programming process. (The following image is included for general reference and may not match your board.)
-
Power on the board.
-
Press the Start button on the Cyclone programmer and wait for the Success LED to light up.
-
When finished programming, restart the device to load the new firmware. Use the command
sysinfo
to print the firmware version and verify correct programming.