SW-Revision | v0.7.0-0-gcc04784 |
Archive | Link
( older ) |
Changelog | Link |
Date | 20240112 |
Target MCU | candis_rev01 |
“CANDis” small touch panel acting as an light switch.
To be able to flash the device via USB following prerequisite are needed:
Power on the device. Hold the “B”-Button on the backside with an toothpick and hold it pressed. Press the “R”-Button and hold it pressed for c.a. one second. Relese the “R”-button, then release the “B”-Botton. The Display must remain dark. The amber LED must not glow.
The command line tool of STM32CubeProgrammer can be use to flash the firmware:
$HOME/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32_Programmer_CLI -c port=usb1 -w candis_eval.bin 0x08000000 -s
The device will automatically start.
Caution: When the firmware was not already installed before, the device will automatically start the media bootloader. See next chapter.
The device contains an SPI-Flash for media data like images and icons. The version of the catalog must match to the firmware. If versions do not match or media catalog is corrupt, the device will automatically start the media bootloader.
The command line tool of STM32CubeProgrammer can be use to flash the firmware. The file “media.bin” that is shipped with the firmware has to be flashed. Because data is stored to SPI-Flash and not the STM32-Flash, the target address is 0x0. The automatic erasing does not work so an chip-erase has to be set via “-e all”.
Warning: Unlike flashing firmware, an serial port has to be committed to the programmer tool instead of usb directly.
e.g.:
$HOME/STMicroelectronics/STM32Cube/STM32CubeProgrammer/bin/STM32_Programmer_CLI -c port=/dev/ttyACM0 -e all -d media.bin 0x0
Warning: The progress bar on the screen shows the overall usage of the flash. It does not match the progress bar of the flashing tool.
Warning: If the flashing fails, start the process again.
|
|
|
|
|
|
|
|
|
|
|