Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 88 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ Table of Contents
* [Usage](#usage)
* [STM32F1](#stm32f1)
* [BLUEPILL](#bluepill)
* [STM32WL](#stm32wl)
* [SeeedStudio LoRa E5](#seeed-studio-lora-e5)
* [SeeedStudio LoRa E5 Mini](#seeed-studio-lora-e5-mini)
* [SeeedStudio LoRa E5 Dev Board](#seeed-studio-lora-e5-dev-board)
* [Charles's LoRa-E5 breakout board](#charless-lora-e5-breakout-board)
* [RAK Wrirelesss RAK3172](#rak-wireless-rak3172)
* [Charles's RAK3172 breakout board](#charless-rak3172-breakout-board)
* [STM32L0](#stm32l0)
* [MURATA LPWAN Wireless Module](#murata-lpwan-wireless-module)
* [STM32L4](#stm32l4)
Expand Down Expand Up @@ -130,12 +137,52 @@ https://www.st.com/en/evaluation-tools/steval-stwinkt1.html

## Seeed Studio LoRa E5

<img src="https://files.seeedstudio.com/products/317990687/image/lora-e5_Preview-07.png" width="50%" height="50%">

MCU: STM32WLE5JC

TARGET: LORA_E5

https://www.seeedstudio.com/LoRa-E5-Wireless-Module-p-4745.html

LoRa-E5 use only RFO_HP for TX power, so for all boards using this module you need to add this to your `mbed_app.json` on section `target_overrides`

```json

"LORA_E5": {
"stm32wl-lora-driver.rf_switch_config": 2
}
```

## Seeed Studio LoRa E5 Mini

TARGET: LORA_E5_MINI

Use LoRa E5 modulen basic board with USB/Serial and headers

https://www.seeedstudio.com/LoRa-E5-mini-STM32WLE5JC-p-4869.html


## Seeed Studio LoRa E5 Dev Board

<img src="https://files.seeedstudio.com/wiki/LoRa-E5_Development_Kit/202003261_preview-07.png">

TARGET: LORA_E5_DEV_BOARD

Use LoRa E5 module

https://www.seeedstudio.com/LoRa-E5-Dev-Kit-p-4868.html

- RS485 Modbus
- all LoRa-E5 pins exposed
- temperature sensor
- buttons
- Led
- GPIO to enable 3.3V and 5V for sensors
- some grove sonnectors (I2C, Serial, ..)
- Arduino form factor to plug shield


## Charles's LoRa-E5 breakout board

TARGET: LORA_E5_BREAKOUT
Expand All @@ -151,28 +198,65 @@ Use LoRa E5 module and added
- Green Led on PB10 (LED1) reversed (1=OFF, 0=ON)
- Red Led on PB5 (LED2) reversed (1=OFF, 0=ON)

for debug LEDs of breakout so you need to add this to your `mbed_app.json` on section `target_overrides` and don't forget also the `rf_switch_config` seen above


```json
"LORA_E5_BREAKOUT": {
"stm32wl-lora-driver.rf_switch_config": 2,
"stm32wl-lora-driver.debug_tx": "PB_5",
"stm32wl-lora-driver.debug_rx": "PB_10",
"stm32wl-lora-driver.debug_invert": 1
}
```


## RAK Wireless RAK3172

<img src="https://docs.rakwireless.com/assets/images/wisduo/rak3172-module/overview/RAK3172_Module_buy.png" width="50%" height="50%">

MCU: STM32WLE5CC

TARGET: RAK3172

https://docs.rakwireless.com/Product-Categories/WisDuo/RAK3172-Module/Datasheet/#description
RAK3172 use only RFO_HP for TX power and no TXCO so for all boards using this module you need to add this to your `mbed_app.json` on section `target_overrides`

```json

"RAK3172": {
"stm32wl-lora-driver.rf_switch_config": 2,
"stm32wl-lora-driver.crystal_select" : 0
}
```

## Charles's RAK3172 breakout board

TARGET: RAK3172_BREAKOUT

TBD
<img src="https://github.com/hallard/RAK3172-Breakout/blob/main/pictures/RAK3172-Breakout-top.png">

https://github.com/hallard/RAK3172-Breakout

Use RAK3172 and added

- FTDI 6 pins connector (use 3.3V FTDI One, not 5V)
- Exposed JTAG pins needed to flash module (PA13-SWDIO / PA14-SWCLK / RESET)
- Red Led on PA9 (LED1) reversed (1=OFF, 0=ON)
- Green Led on PA10 (LED2) reversed (1=OFF, 0=ON)
- Green Led on PA10 (LED1) reversed (1=OFF, 0=ON)
- Red Led on PA9 (LED2) reversed (1=OFF, 0=ON)
- SMD CR2450 battery holder

For debug LEDs of breakout so you need to add this to your `mbed_app.json` on section `target_overrides` and don't forget also the `rf_switch_config` and `crystal_select` seen above

```json
"RAK3172_BREAKOUT": {
"stm32wl-lora-driver.rf_switch_config": 2,
"stm32wl-lora-driver.crystal_select" : 0,
"stm32wl-lora-driver.debug_tx": "PA_10",
"stm32wl-lora-driver.debug_rx": "PA_9",
"stm32wl-lora-driver.debug_invert": 1
}
```


# License

Expand Down
2 changes: 2 additions & 0 deletions TARGET_STM32WL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@

add_subdirectory(TARGET_LORA_E5 EXCLUDE_FROM_ALL)
add_subdirectory(TARGET_LORA_E5_BREAKOUT EXCLUDE_FROM_ALL)
add_subdirectory(TARGET_LORA_E5_MINI EXCLUDE_FROM_ALL)
add_subdirectory(TARGET_LORA_E5_DEV_BOARD EXCLUDE_FROM_ALL)
add_subdirectory(TARGET_RAK3172 EXCLUDE_FROM_ALL)
add_subdirectory(TARGET_RAK3172_BREAKOUT EXCLUDE_FROM_ALL)
14 changes: 14 additions & 0 deletions TARGET_STM32WL/TARGET_LORA_E5_DEV_BOARD/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

add_library(mbed-lora-e5-dev-board INTERFACE)

target_include_directories(mbed-lora-e5-dev-board
INTERFACE
.
)

target_link_libraries(mbed-lora-e5-dev-board INTERFACE
mbed-stm32wle5xc
mbed-lora-e5
)
14 changes: 14 additions & 0 deletions TARGET_STM32WL/TARGET_LORA_E5_MINI/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

add_library(mbed-lora-e5-mini INTERFACE)

target_include_directories(mbed-lora-e5-mini
INTERFACE
.
)

target_link_libraries(mbed-lora-e5-mini INTERFACE
mbed-stm32wle5xc
mbed-lora-e5
)
2 changes: 1 addition & 1 deletion TARGET_STM32WL/TARGET_RAK3172/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ add_library(mbed-rak3172 INTERFACE)
target_sources(mbed-rak3172
INTERFACE
PeripheralPins.c
RAK7231_radio_driver.cpp
RAK3172_radio_driver.cpp
)

target_include_directories(mbed-rak3172
Expand Down
4 changes: 2 additions & 2 deletions TARGET_STM32WL/TARGET_RAK3172/PinNames.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ typedef enum {
#ifdef MBED_CONF_TARGET_STDIO_UART_TX
CONSOLE_TX = MBED_CONF_TARGET_STDIO_UART_TX,
#else
CONSOLE_TX = PB_6,
CONSOLE_TX = PA_2,
#endif
#ifdef MBED_CONF_TARGET_STDIO_UART_RX
CONSOLE_RX = MBED_CONF_TARGET_STDIO_UART_RX,
#else
CONSOLE_RX = PB_7,
CONSOLE_RX = PA_3,
#endif

/**** OSCILLATOR pins ****/
Expand Down
24 changes: 23 additions & 1 deletion custom_targets.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,29 @@
"macros_add": [
"LED1=PB_5",
"LED2=PB_10",
"BUTTON1=PA_0"
"BUTTON1=PB_13"
]
},
"LORA_E5_MINI": {
"inherits": [
"LORA_E5"
],
"macros_add": [
"LED1=PB_5",
"BUTTON1=PB_13"
]
},
"LORA_E5_DEV_BOARD": {
"inherits": [
"LORA_E5"
],
"macros_add": [
"LED1=PB_5",
"EN_3V3=PA_9",
"EN_5V=PB_10",
"BUTTON1=PB_13",
"BUTTON2=PA_0",
"RS485_REDE=PB_4"
]
},
"RAK3172": {
Expand Down