Data Sheet

Table Of Contents
EMC3380 Series Wireless Module Data Manual
Copyright of Shanghai MXCHIP Information Technology Co., Ltd.
28
Flash Programming
There are several ways to program the module's Flash to burn specific function firmware. The application
scenarios and restrictions of various burning methods are as follows:
Table 8 Flash programming methods
Method
Interface
COMM Pin
Burn
Mode
Preparation
PA7
Simulation debugger
SWD
PA27PB3
-
development environment
and JTAG debugger
Serial Port download mode
UART0/UA
RT1
PA7PA8
0
Image Tool Burning Software
BAT Burn System
SWD
PA27PB3
-
BAT Burn System
Note PA7 powers up high level by default.
The application scenarios of each burning method are as follows:
Simulation debugger: Burn during module development and debugging.
Serial port download mode: Batch programming of modules on the production line.
BAT programming system: The module is reprogrammed on the module or product production line and can
be used for the unique ID of the programming device.
In summary, it is recommended to lead PA7, PA8, PA27 and PB3 on the user's mainboard as the burning test
points for programming, which is convenient for development and production.
Burning with the emulator debugger
When using the MXOS system to develop module firmware, burn the generated firmware into the module
through the compile command in the development environment MiCoder. About MiCoder development
environment build, please refer to related documents. The hardware emulator usually selects JLink, and the
connection method is shown in Figure 5.
Figure 5 JLink Connection schematic diagram
Add the download parameter to the compile command to download the currently compiled
firmware. Because the development environment needs to be installed, it is not suitable for module batch
factory programming.
For example, to compile the Helloworld application, execute the command.