Data Sheet

Table Of Contents
EMC328x Series Wireless Module Data Manual
Copyright of Shanghai MXCHIP Information Technology Co., Ltd.
19
Flash Programing
The module's Flash can be programmed in a variety of ways to burn firmware for specific functions. The
application scenarios and restrictions of various burning methods are as follows:
Table 7 Flash Programed Method
Methods
Interface
Communication
Pins
Enter
programming
mode
Ready for Work
PA7
Simulation debugger
SWD
PA28PB3
-
Development environment and JTAG
debugger
Serial download mode
UART0/UART1
PA7PA8
0
Image Tool Burning software
BAT Burning system
SWD
PA28PB3
-
BAT
Burning system
注: PA7 Power-on default high
The application scenarios of each burning method are as follows:
Simulation debugger: burns in the development and debugging phase of the module.
Serial port download mode: Batch programming of modules on the production line.
BAT burning system: The module is secondarily burned on the production line of the module or
product, and can be used for the unique ID of the burning device.
In summary, it is recommended to introduce PA7, PA8, PA28, and PB3 as the burning test points on the
user's motherboard to facilitate development and production.
Burning with the emulator debugger
When developing module firmware using the MXOS system, the generated firmware can be directly
burned into the module by the compile command in the development environment MiCoder. Please
refer to the relevant documentation for the MiCoder development environment. The hardware emulator
usually chooses JLink, and the connection method is shown in Figure 5:
Figure 5 JLink Connection Diagram
You can download the currently compiled firmware by adding the download parameter to the compile
command. Due to the need to install the development environment, it is not suitable for module batch
factory burning.
For example, compile the Helloworld application and execute the command:
mxos make helloworld@emc328x download
Command run result: