8.3 Programming your Application on the EM35x
Programming EM35x flash is accomplished with the em3xx_load.exe utility, either via the Windows Command Prompt or via the Upload
Application action in Simplicity Studio’s Adapters view. The em3xx_load utility is included as part of the Debug Adapter (ISA3) Utilities
Installer, in the “bin” subdirectory. For information on all the ISA3 utilities, see
UG107: ISA3 Utilities Guide
.
A complete summary of em3xx_load functionality with brief descriptions of each option can be found in em3xx_load's own help menu.
Invoking "em3xx_load.exe" without options or invoking "em3xx_load.exe --help" will print this help menu. More information about using
Simplicity Studio to upload applications can be found in the online help for Simplicity Studio.
The most common usage of em3xx_load is to simply program flash. em3xx_load takes the S37 specific version of Motorola S-record
file formats, and these files use the .s37 extension. If you are using a bootloader, em3xx_load can also load a .ebl file, which is a propri-
etary, binary file format designed for applications that use an Ember Bootloader.
Given an S37 file called "file.s37", the most basic command for programming flash is simply:
em3xx_load.exe file.s37
Em3xx_load will then print out the versions it is using, the devices it is connected to, the steps it is performing, and programming pro-
gress. By default, the last step em3xx_load performs is to run the chip by toggling the nRESET pin.
By default, em3xx_load.exe assumes the Debug Adapter (ISA3) is connected via USB when no other options are given. If the Debug
Adapter (ISA3) is connected via Ethernet, use the --ip option to specify the IP address or hostname of the Debug Adapter (ISA3) to be
used. Given a Debug Adapter (ISA3) with an IP address of 123.123.123.123, programming can be accomplished with the command:
em3XX_load.exe --ip 123.123.123.123 file.s37
8.4 Programming Manufacturing Tokens
The em3xx_load utility has the ability to program manufacturing tokens much like the em2xx_patch tool did. In the case of the EM357,
these tokens are contained in the Customer Information Block (CIB). For more information on using the em3xx_load utility, refer to
document
UG107: ISA3 Utilities Guide
. For more information about CIB tokens and how to program them, refer to document
AN710:
Bringing up Custom Devices for the Ember® EM35x SoC or NCP Platform.
Certificates and installation codes can be programmed using the same em3xx_load tool that is used to program other tokens. There is
a separate application note which describes the process in detail. For more information, see document
AN708: Setting Manufacturing
Certificates and Installation Codes
.
8.5 Using the Debugger in IAR Embedded Workbench with a Debug Adapter (ISA3)
1. Start IAR Embedded Workbench. Open the workspace (*.eww).
2. Select Project > Options. Select the Debugger > J-Link/J-Trace category. Select the Connection tab.
3. Select TCP/IP Communication and enter the IP address of the Debug Adapter (ISA3). Click OK.
4. Embedded Workbench is not able to program the flash on the EM35x. Every time the project is re-built, you must manually load it
onto the EM35x (using em3xx_load.exe) before starting a debug session.
5. Once the correct image has been loaded onto the EM35x, select Project > Debug without Downloading to start the debug session.
UG110: Ember
®
EM35x Development Kit User Guide
Software Tools Overview
silabs.com
| Building a more connected world.
Rev. 1.2 | 30