32-bit MCU Current Sensing Board Design Guide
5. Quick Start Guide: Setup and Use
19
5.2
Example Firmware Project Compiling and Downloading
In this section, users can learn a method to compile, debug, and download an example firmware project.
Figure 14. Example Project Folder Directory
Figure 15. Example Project Configuration (main.c, main_conf.h)
Following is the description of the folder directory and project menus of the example project shown in
Figure 14 and Figure 15:
1.
Go to the location shown in Figure 14:
A31L12x_Current_Sensing_Example\Examples\CURRENT_SENSING\
Current_Sensing_Example\KEIL\
①
Open the Current_Sensing.uvprojx file in the location.
②
Execute Keil uVision.
2.
Before starting the project compilation shown in Figure 15, set the UNIT_MODE on the 47
th
line of the main_conf.h file according to the measurement unit.
—
If the UNIT_MODE is set to 0, the measurement unit is uA while if the UNIT_MODE is set
to 1, the measurement unit is mA.