DocID024383 Rev 1
29/56
UM1619
Firmware description
6.3 Firmware
download
In the setup directory there are different workspaces stored in different directories. In order
to implement the remote firmware update feature it is necessary to download the project
located in the workspace “Firmware - Application and Bootloader”. This workspace contains
two different projects, one is the bootloader and the other one is the application itself. If the
module has never been programmed, this workspace must be downloaded before.
Open the IAR Embedded Workbench® IDE for STM32 microcontrollers Rel. 6.3 (or a more
recent release). Click File\Open\Workspace and load the following workspace placed in the
directory selected during the setup file installation: “Firmware - Application and
Bootloader\EWARM\Project.eww”. Verify that the Application project is the active project
(the project name must be in bold), otherwise select the active project in the list below the
workspace (
Figure 23. Active project selection
Click “Project - Batch Build” or press the key F8 in order to compile at the mean time the
bootloader and the application.
After compiling is completed, press “Project - Download and Debug” or press CTRL+D keys.
Both firmware downloads start. As soon as the download is completed, press F5 in order to
run the application (or exit from the debug mode pressing the keys CTRL+SHIFT+D and
unplug the programmer).
If the procedure is done correctly, the orange LED should be on, indicating the module has
never been set up before. If it is not the case, try first to erase the memory by clicking
Project\Download\Erase Memory and download the firmware again as described previously.
Use the GUI interface in order to set up the module and connect it to the power line as
described in the dedicated paragraph.
As soon a bootloader has been installed in the module it is possible to remotely (via power
line) update the firmware using the RFU feature. Each new firmware version has to be
programmed using the workspace “Firmware - Application
standalone\EWARM\Project.eww”. The bin file produced by this workspace that is located in
the folder “Firmware - Application standalone\ EWARM\PLM_HID_STANDALONE.bin” can
be directly loaded using the GUI interface. The difference of this application with the one
contained in the workspace with the bootloader is mainly in the stm32f10x_flash.icf linker file
and some workspace parameters that are not used in the application without the bootloader
(as multiple build, simultaneous debug mode, etc.).