Seeed-LoRa-E5

所属分类:自然语言处理
开发工具:C
文件大小:1654KB
下载次数:0
上传日期:2023-05-09 17:09:13
上 传 者sh-1993
说明:  LoRaWAN端节点使用LoRa-E5中WLE5x的CubeMX从头开始构建
(LoRaWAN end node built from scratch using CubeMX for WLE5x in the LoRa-E5)

文件列表:
.cproject (29424, 2023-05-10)
.mxproject (28147, 2023-05-10)
.project (1219, 2023-05-10)
.settings (0, 2023-05-10)
.settings\language.settings.xml (2173, 2023-05-10)
.settings\stm32cubeide.project.prefs (201, 2023-05-10)
Core (0, 2023-05-10)
Core\Inc (0, 2023-05-10)
Core\Inc\adc.h (1343, 2023-05-10)
Core\Inc\adc_if.h (2593, 2023-05-10)
Core\Inc\dma.h (1393, 2023-05-10)
Core\Inc\flash_if.h (3785, 2023-05-10)
Core\Inc\gpio.h (1313, 2023-05-10)
Core\Inc\main.h (2792, 2023-05-10)
Core\Inc\platform.h (2313, 2023-05-10)
Core\Inc\rtc.h (1343, 2023-05-10)
Core\Inc\stm32_lpm_if.h (2537, 2023-05-10)
Core\Inc\stm32wlxx_hal_conf.h (11960, 2023-05-10)
Core\Inc\stm32wlxx_it.h (2147, 2023-05-10)
Core\Inc\stm32wlxx_nucleo_conf.h (2426, 2023-05-10)
Core\Inc\subghz.h (1367, 2023-05-10)
Core\Inc\sys_app.h (3535, 2023-05-10)
Core\Inc\sys_conf.h (3123, 2023-05-10)
Core\Inc\sys_debug.h (4853, 2023-05-10)
Core\Inc\sys_sensors.h (2721, 2023-05-10)
Core\Inc\timer_if.h (4760, 2023-05-10)
Core\Inc\usart.h (1364, 2023-05-10)
Core\Inc\usart_if.h (3277, 2023-05-10)
Core\Inc\utilities_conf.h (6658, 2023-05-10)
Core\Inc\utilities_def.h (3356, 2023-05-10)
Core\Src (0, 2023-05-10)
Core\Src\adc.c (3014, 2023-05-10)
Core\Src\adc_if.c (6868, 2023-05-10)
Core\Src\dma.c (1639, 2023-05-10)
Core\Src\flash_if.c (9211, 2023-05-10)
Core\Src\gpio.c (2842, 2023-05-10)
Core\Src\main.c (5315, 2023-05-10)
Core\Src\rtc.c (3767, 2023-05-10)
Core\Src\stm32_lpm_if.c (4192, 2023-05-10)
... ...

# Seeed-LoRa-E5 LoRaWAN end node built from scratch using STM32CubeIDE/CubeMX for the LoRa-E5 WLE5x UPDATE 9 May 2023: you are invited to test the FW1.3 branch, which is the result of letting STM32CubeIDE update to V1.3 FW. I haven't tested it yet but I expect it will work. If you do test it, please let me know and I'll merge it to master. UPDATE 14 July 2022: I reviewed the V1.2FM merge, enabled LoRaWAN 1.0.4 support (including NV storage of devNonce) and tested in Class A, turning the red LED on and off. I apologize for the flurry of updates in master; future updates will be done properly in a branch. NOTE: I did a quick merge of STM32WLxx V1.2 firmware support. Basic testing shows it works correctly but please let me know if you encounter any issues. If you're looking for an RAK3172 version of this, have a look at https://github.com/danak6jq/RAK3172 Note: the project defaults to disabling SWD/probe pins and enabling low-power mode. For development with an ST/Link, I recommend enabling the debugger and disabling low-power mode. image ## This assumes a general familiarity with STM32CubeIDE and LoRaWAN concepts. If you haven't used STM32CubeIDE before, I suggest doing a couple of smaller projects using ST Nucleo boards to familiarize yourself. ## From the Seeed-Studio repo: Before starting - Please read [Erase Factory AT Firmware](https://wiki.seeedstudio.com/LoRa_E5_mini/#21-erase-factory-at-firmware) section first, you need to retrieve and save the Device EUI, then erase the Factory AT Firmware before we program with SDK - Install V1.7.0 or later [STM32CubeIDE(to compilation and debug)](https://my.st.com/content/my_st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-ides/stm32cubeide.html) and [STM32CubeProgrammer(to program STM32 devices)](https://my.st.com/content/my_st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/stm32cubeprog.license=1614563305396.product=STM32CubePrg-W***.version=2.6.0.html). Launch STM32CubeIDE and install V1.1.0 of [STM32Cube MCU Package for STM32WL series(SDK)](https://my.st.com/content/my_st_com/en/products/embedded-software/mcu-mpu-embedded-software/stm32-embedded-software/stm32cube-mcu-mpu-packages/stm32cubewl.license=16086935955***.product=STM32CubeWL.version=1.0.0.html#overview) - LoRaWAN Gateway connected to LoRaWAN Network Server(e.g. TTN; I am using a local gateway and local ChirpStack server) - Prepare an USB TypeC cable and a ST-LINK. Connect the TypeC cable to the TypeC port for power and serial communication, connect the ST-LINK to the SWD pins like this (recommend connecting Vcc and nRST as well): ![image](https://user-images.githubusercontent.com/942815/145846356-6c3d4828-18b1-40a3-a6d0-25d979629093.png) - Before erasing the Seeed factory AT firmware, get the Device EUI. Connect a USB-C cable to the LoRa-E5, and send AT command AT+ID=DevEui to get your Device EUI: image - Do not lose this Device EUI; it is unique for each LoRaWAN device. If you manage to lose the Device EUI, you are able to retrieve it by scanning the QR code on the LoRa-E5 chip using a generic QR code scanner. # Building the repo - Clone this repo onto a system with STM32CubeIDE, v1.7.0 or later. Using "Open Projects From Filesystem" image - Locate and open the top-level directory of the cloned repo: image - Modify your Device EUI, Application EUI, Application KEY and your LoRawan Region - Use Cube to reconfigure the project to your LoRaWAN commissioning parameters: ![image](https://user-images.githubusercontent.com/942815/145844142-675eb76c-7bb3-4991-9df4-8e86999afb3b.png) and ![image](https://user-images.githubusercontent.com/942815/145844024-5a685612-e9ca-46f8-a8a8-25919aa81b03.png) - Save the IOC file and generate code when prompted: image image - Note that generating code overwrites many files; in particular, if you've selected Hybrid Mode to operate a in a sub-band, you need to check and correct the channel mask after generating code - example here is for US915 Sub-band 2: ![image](https://user-images.githubusercontent.com/942815/145849008-5042b29e-5772-4bd6-a7d0-ca22ff51df11.png) - Build project and program it into the LoRa-E5 image image ## Starting a new project - Use "Start a new project from an existing configuration file" and select "Seeed-LoRa-E5.ioc" in the repo image - This creates a new "End client framework" project with no user code (such as contained in the repo code) included. You'll want to refer to the repo code and ST documentation for using their LoRaWAN stack.

近期下载者

相关文件


收藏者