Bootloader Commands - atmel-maxtouch/mxt-app GitHub Wiki
Bootloader Commands
The following commands are used to access the bootloader for information and flashing.
--bootloader-version : Query and print ID and version of bootloader.
--flash *FIRMWARE* : Flash *FIRMWARE* to device. The firmware file should be in .enc format.
In bootloader mode the device will cease normal operation until firmware is sent. The I2C address or USB PID will change. The only valid command in this mode is --flash.
A hard power cycle will return the device to normal Object Protocol mode, unless the firmware image is corrupted.
Note that the i2c-dev interface is used on any I2C maXTouch device when using the --flash argument.
--reset-bootloader : Reset device in bootloader mode.
If the SPI interface is used, the -d [--device] option is required along with a valid DEVICESTRING.
EXAMPLE: Firmware program device on SPI interface using bus #1, chip select #3
./mxt-app –d sysfs_spi:1-3 –flash filename.enc
--firmware-version *VERSION* : mxt-app is unaware of the firmware version in the .enc file. This switch argument can be
used to check firmware VERSION before and after flashing. It will skip the flash process
if the firmware version is already matches. It will also check for a successful flash on
completion. Format of *VERSION* must match the format 1.0.AA