This example uses the SE Manager API to upgrade the SE firmware on the supported Series 2 device.
The start address of SE firmware image (SE_FIRMWARE_ADDR
) is defined in app_se_firmware_image.h
and the default value is 0x00040000
.
The SE upgrade firmware image must be stored to the device’s internal flash in .seu
format. The latest SE firmware image (.sec
and .hex
) can be found in the Windows folders below (v3.1
or above).
C:\SiliconLabs\SimplicityStudio\v5\developer\sdks\gecko_sdk_suite\v3.1\util\se_release\public
The SE firmware image (.sec
) can be converted to a C source file by SEGGER free utility Bin2C.exe. Copy the SE firmware image data array (discard the last NULL-0x00
character) in converted C file to se_firmware_image[]
array in app_se_firmware_image.c
.
The SE firmware image validation will fail if the image version is equal to or less than the current SE firmware version.
The example redirects standard I/O to the virtual serial port (VCOM) of the kit. By default, the serial port setting is 115200 bps and 8-N-1 configuration.
The example has been instrumented with code to count the number of clock cycles spent in different operations. The results are printed on the VCOM serial port console. This feature can be disabled by defining SE_MANAGER_PRINT=0
(default is 1) in the IDE setting (Preprocessor->Defined symbols
).
The following SE Manager APIs are used in this example:
sl_se_init
sl_se_deinit
sl_se_init_command_context
sl_se_deinit_command_context
sl_se_get_se_version
sl_se_get_upgrade_status_se_image
sl_se_check_se_image
sl_se_apply_se_image
sl_se_read_executed_command
(VSE only)sl_se_ack_command
(VSE only)Adapter Firmware
under General Device Information in Simplicity Studio 5 Users Guide).Secure Firmware
under General Device Information in Simplicity Studio 5 Users Guide).Device Console
in Simplicity Studio 5, Line terminator:
must be set to None
).Platform()
checkbox to browse the platform examples).app_se_firmware_image.c
is v1.2.6
.Optimize for debugging (-Og)
on Simplicity IDE and None
on IAR Embedded Workbench.