[LoRaWAN] Ra-09 secondary development environment construction and firmware burning description
Ai-Thinker
Ai-Thinker focuses on IoT module, antenna, RF test, cloud and PCBA service, to provide customers with one-stop solution
Article catalog
I. Construction of Keil development environment 1.1 Obtaining the SDK 1.2 Installing the STM32CubeMX 1.3 Installing the Keil MDK Development Environment 1.4 Obtaining the SDK 1.5 Importing the Tool Package 1.6 Modified Engineering Chip Parameter Configuration 1.7 Compiling
II. Burning instructions 2.1 Installation of burning tool 2.2 Hardware Cable Connections: 2.3 Firmware Verification
III. Contact us
Introduction
Ra-09 module is a LoRaWAN node module developed by Ai-Thinker.
Product Introduction
LoRaWAN module with power consumption of 0.1uA is coming!!
The module core processor chip is a highly integrated low-power LoRa radio frequency chip (SoC) that supports LoRa and LoRaWAN. Supports adding chirpstack and TTN servers.
Keil development environment construction
Get SDK
Please contact Ai-Thinker?sales
Install the STM32CubeMX
STM32CubeMX?tools Get links:
[Recommended] Tool installation documentation link:
Install the Keil MDK development environment
Keil MDK development Tools Get links:
[Recommended] Tool installation documentation link:
?
Get SDK
Ra-09 module Open source SDK link:
Note: The source code will be updated in real time, it is recommended to download the source code directly using the git tool.
?
Toolkit import
The toolkit required for Ra-09 module compilation is Keil.STM32WLxx_DFP.1.0.7.pack.
First, open the GPIO routine in the source code
(STM32Cube_FW_WL_V1.3.0\Projects\NUCLEO-WL55JC\Examples\GPIO\GPIO_EXTI\MDK-ARM)
After opening, keil5 MDK will automatically download and compile related tools, if there is a problem with the network, you need to manually install tools:
1) Cancel the download
2)Click file --> import. The path is to the folder where the tool is located
领英推荐
3) After the import succeeds, open the project again.
4) After the project is successfully opened, click the Rebuild button, the tool is installed successfully, and the compilation will be completed.
The engineering chip parameter configuration is modified
The official only provides STM32WL55JC and STM32WL55JC1 related application demo, due to the packaging is not possible, we can not directly use the relevant programs, need to transplant to use.
Reference documentation:
Compile
After parameter configuration, re-open the project with keil MDK and click the Rebuild button to complete the compilation. After compiling, the path will be:
STM32Cube_FW_WL_V1. 3.0 \ Projects \ NUCLEO - WL55JC \ Applications \ LoRaWAN \ LoRaWAN_AT_Slave \ MDK - ARM \ LoRaWAN_AT_Slave The firmware LoRaWAN_AT_Slave.hex is generated.
Burning instruction
Burn tool installation
Burn tool Get link:?STM32CubeProgrammer
Run the application to complete the software installation:
Open the burning software, click open file, select the file we just compiled;
Hardware cable description
After connecting the PH3 pin of the module to the high level, pull down the NRST pin and configure the module to enter the burn mode. In the software part, click connect and then click Download. When the progress bar is full, the module is burned successfully.
Firmware verification
After the firmware is successfully burned, suspend the PH3 pin of the module, click to disconnect the connection between the module and the burning software, open the serial port assistant, connect the module, set the serial port baud rate to 9600, reset the module, the startup information will be obtained, and the ID reading command will be sent as follows:
● Ai-Thinker?official website docs:?https://docs.ai-thinker.com/cam
● AiPi?GitHub open source warehouse address:?https://github.com/Ai-Thinker-Open/AiPi-Open-Kits
Sample purchase:https://ai-thinker.en.alibaba.com/
Business cooperation:?[email protected]
Official website: https://en.ai-thinker.com
Official Forum:?https://bbs.ai-thinker.com
?