This tool is used for compilation, and code writing and compilation are based on this IDE.
(1)Download path of Keil :https://www.keil.com/download/product/
(2)keil user guids:https://www.keil.com/support/man_arm.htm
The tool is placed in the provided sdk file package. The path to the file is in....\BLE_APIS(nRF52)\doc\Nordic tool.
(1)nrfgostudio :
(2)nRF Command Line Tools:....\BLE_APIS(nRF52)\doc\Nordic tool (https://www.nordicsemi.com/Products/Development-tools/nRF-Command-Line-Tools/Download?lang=en#infotabs)
(3)JLink_Windows_V680e
(1)...\BLE_APIS(nRF52)\components: Nordic provide a much components file
(2)...\BLE_APIS(nRF52)\external: Nordic file
(3)...\BLE_APIS(nRF52)\merge_hex: Moko Synthetic firmware required
(4)...\BLE_APIS(nRF52)\moko_src: Moko user code
(5)...\BLE_APIS(nRF52)\Mprojct: The directory where the compiled project is located
(6)...\BLE_APIS(nRF52)\doc: Put installation files and Mokor files
- boot.hex : This is the file generated by the compilation of the boot project
- ibeacon.hex : This is the file generated by the compilation of the user project
- s112_nrf52810_5.1.0_softdevice.hex : This is the file of the protocol stack
This is the script file file.bat. Double-clicking the file will generate the three-in-one file ibeacon_2.0.4.hex, which supports re-modifying the file name.
There is corresponding lis3dh function code in lis3dh_driver.c
- void lis3dh_init(void): Initializes lis3dh sensor drivers
- void task_read_3dh(void) : Read lis3dh sensor data
There is corresponding STK8232 function code in STK823x_app.c
- void STK832x_Init(void): Initializes STK832x sensor drivers
- void STK832x_read_data(void) : Read STK832x sensor data
There is corresponding sht30 temperature and humidity sensor function code in sht3x_driver.c
- void sht3x_Init(void) : Initialize sht30 temperature and humidity sensor
- void task_read_sht3x(void) : Read temperature and humidity sensor data
This function in simple_uart.c and uart_commd.c file.
The protocol Documentation path: ...BLE_APIS(nRF52)\doc\Uart Protocol
- simple_uart.c : The initialization part of the uart driver function
- uart_commd.c : handle Production test commands
Description of special functions:
-
void task_uart_manage(void) This is equivalent to the uart's enable and disable management functions. The specific operation is to disable the uart function after 30s, then turn on the RX io interrupt, wait data for the enable uart function of the data, and execute the corresponding cmd.
-
void task_process_uart_data(void) Uart's function to receive data. in the while function.
-
void analyze_uart_data(uint8_t cmd,uint8_t*datas,uint8_t len) Serial port data parsing function, parsing corresponding commands and function settings
-
Note: UART must be closed after the test is completed, otherwise it will cause abnormal power consumption of the device