February 22, 2026, 03:11:28 PM

Recent posts

#1
ST / Re: BB-STM32WL and Platformio/...
Last post by winfried - February 20, 2026, 01:02:06 PM
ok, I overlooked it, anyway thanks for the schematics.

BTW fyi:
I found you are using XTAL so, in radiolib we need to set TCXO_VOLTAGE to 0V, so it runs.
#2
ST / Re: BB-STM32WL and Platformio/...
Last post by LubOlimex - February 20, 2026, 08:28:31 AM
Nice progress.

About the schematic - from what I can see it seems that BB-STM32WL is not an open-hardware design. For boards that are not OSHW we only share the PDF export of the schematic.
#3
ST / Re: BB-STM32WL and Platformio/...
Last post by winfried - February 20, 2026, 01:58:21 AM
FYI,

Quote from: winfried on February 19, 2026, 11:02:19 AMBut I found the RadioLib which supports STM32WLx. I will try to make P2P example working and post it here.

RadioLib is great,
so I got a working LoRa P2P example see
- https://git.iem.at/ritsch/pfb-bees.git -> experiments/05-p2p-radiolib

Thanks for help will be the firmware.

PS.: Is there a git repo for the BB-STM32WL KiCAD file, I can only find the PDF schematic and the KICAD for the LoRa-STM32WL-DevKit.
#4
ST / Re: BB-STM32WL and Platformio/...
Last post by winfried - February 20, 2026, 01:50:00 AM
FYI:

Quote from: winfried on February 19, 2026, 10:52:50 AMad serial monitor for debugging:

Now got a working setup for a LoRa_STM32WL_DevKit using USB for powering, programming and monitor and parallel a BB-STM32WL over serial port on PA_9 and PA_10,
the
-DSERIAL_UART_INSTANCE=1 did not help.

First Since Serial Monitor of "cmsis-dap" programmer on board is connected on PB_6 and PB_7 to the programmer on the devkit I have to set the pins.

For the Serial connection  I had to set the Pins to PA_9 and PA_10.

Hints:
There is an issue if the 5V of the USB is weak like below 4.95V, programming fails.
and the new naming of the pins need are PA_9 not PA9, also the STM32flash programm of
actual platformio was too old.

; PlatformIO Project Configuration File for LoRa P2P (Peer-to-Peer) Test
; OLIMEX LoRa-STM32WL-DevKit - Direct LoRa communication without LoRaWAN
[platformio]
description = "LoRa P2P Test - Direct device-to-device communication"

[env]
platform = ststm32
framework = arduino

lib_deps =
    jgromes/RadioLib @ ^7.3.0
board = olimex_wle5
build_flags =
    -DUSB_MANUFACTURER="Olimex"
    -DUSB_PRODUCT="BB-STM32WL"
    -DBLINK_PIN=PC_15

; LoRa-STM32WL-DevKit: with built-in USB-to-serial converter for monitoring
; using CMSIS-DAP for programming/Debug.
[env:LoRa_STM32WL_DevKit]
upload_protocol = cmsis-dap
monitor_speed = 115200
build_flags = ${env.build_flags}
              -D PIN_SERIAL_TX=PB_6
              -D PIN_SERIAL_RX=PB_7

[debug]
debug_tool = cmsis-dap
debug_init_break = tbreak setup
build_flags = ${env.build_flags}
              -D PIN_SERIAL_TX=PB_6
              -D PIN_SERIAL_RX=PB_7

; BB-STM32WL program and monitor
; Upload over serial using USART1
;    USART1_RX : PA10
;    USART1_TX : PA9
; set uC to boot mode with nboot=low on reset
[env:BB-STM32WL_serial]
build_flags = ${env.build_flags}
              -DNODE_ID=0x2
              -D PIN_SERIAL_RX=PA_10
              -D PIN_SERIAL_TX=PA_9

upload_protocol = serial
upload_port = /dev/ttyUSB0
upload_speed = 115200
monitor_port = /dev/ttyUSB0
monitor_speed = 115200

The So I can switch between the two devices for testing.
#5
ESP32 / Re: What board should I use?
Last post by LubOlimex - February 19, 2026, 01:00:47 PM
The relays of either MOD-IO and MOD-IO2 won't work if you power them from the UEXT. These are 5V relays and the UEXT can provide around 3.3V. So if you need the extra relays you'd have to split the power between the ESP32 board and the MOD-IO/MOD-IO2 power. Maybe consider these:

https://www.olimex.com/Products/Components/Cables/PWR-CABLE/
https://www.olimex.com/Products/Components/Cables/PWR-CABLE-HC-0-5M/

MOD-ENC28J60 should work but will require some software effort. If you have problems with throughput or configuration consider searching for an Ethernet module with a chip that is supported by espressif, like IP101, RTL8201, LAN87xx, DP83848, KSZ80xx. From the ESP32-C6 page:

https://docs.espressif.com/projects/esp-idf/en/stable/esp32c6/api-reference/network/esp_eth.html

Overall adding LAN is trickier than adding relays. My advice is to get a board with LAN and Ethernet connector and then add relays.
#6
ESP32 / Re: What board should I use?
Last post by fredy - February 19, 2026, 11:52:46 AM
Thanks for the response :)

I have discarded boards and finally I think that I could use ESP32-POE-ISO or  ESP32-C6-EVB. I think that it could be better for me use (and in this case) EVB because its have 4 relays and if I need more, I could adds Mod-IO. I would like control all, lights and the switches now and more in the future...

So, I have 2 questions:

  • Can I give power to Mod-IO from EVB board directly if I have a power supply of 12v or 24v conected to EVB? It is for to know if I can simplify the power supply for both boards with one unit power
  • Can I add an ethernet module easy to EVB? I see that there is modules like this https://www.olimex.com/Products/Modules/Ethernet/MOD-ENC28J60/

Thanks in advanced!
Best regards.
#7
ST / Re: BB-STM32WL and Platformio/...
Last post by winfried - February 19, 2026, 11:02:19 AM
ad LoRa versus LoRaWAN

Yes you are right, thanks.

I misread the help at the "modem.joinABP(...)", where it states is does not need for data exchange the connection with the gateway, but it seems it needs a gateway for join process, so it does not configure the device same channels etc...

I hoped I can use the middleware interface of STM32LoRaWan lib from STM for P2P, but this is not documented enough without a ton of read and the AI pointed me in the wrong direction confusing LoRa and LoRaWan libs ;-).

But I found the RadioLib which supports STM32WLx. I will try to make P2P example working and post it here.
#8
ST / Re: BB-STM32WL and Platformio/...
Last post by winfried - February 19, 2026, 10:52:50 AM
Thank you for the hints,

ad serial monitor for debugging:

; -DSERIAL_UART_INSTANCE=1
This was used to get get the Serial output to cmis-dap using Devkit, since it registers also a /dev/ttyACM0 and didn't work, but maybe it switches to PA9 and PA10.

I want to avoid the approach in Code, since I want the same source code for "cmis-dap" and "serial programming", but it is a solution if others fails.

Also for "STM32flash" there are options to handle boot and reset, with "dtr" and "dtc" pins with your ESP-PROG, (so I can make a dev connector on my board):

  ...
 -i GPIO_string  GPIO sequence to enter/exit bootloader mode
            GPIO_string=[entry_seq][:[exit_seq]]
            sequence=[-]n[,sequence]
 -R      Reset device at exit.
 ...

I will try this and report back here on this post.
#9
ST / Re: BB-STM32WL and Platformio/...
Last post by LubOlimex - February 19, 2026, 09:03:39 AM
Oh.

About getting the serial over PA9/PA10 instead of PA2/PA3 it should be purely software effort to also use them as output. In PlatformIO it should be as simple as switching from Serial to Serial1 I guess. Looking into your platformio.ini first make sure to comment out line 30 (it forces the usage of the CDC pins):

-DUSBD_USE_CDC

and uncomment this line 34:

;-DSERIAL_UART_INSTANCE=1

Maybe do some minimal test:

void setup()
{
    Serial1.begin(115200);
}

void loop()
{
    Serial1.println("USART1 on PA9/PA10 working");
    delay(1000);
}

if that doesn't work, maybe Serial1 is not defined at all, add it and force it:

HardwareSerial SerialPort(PA10, PA9); // RX, TX

void setup()
{
    SerialPort.begin(115200);
}

void loop()
{
    SerialPort.println("Forced USART1 mapping");
    delay(1000);
}

It should be possible to connect devices peer-to-peer but it won't be LoRaWan, just LoRa peer-to-peer... After manufacturing we test these devices in a similar way - we connect two devices that send some PING-PONG data between each other.

The json was provided by a customer, who struggled to find PlatformIO config, he also wrote "Bear in mind that I tested it only with the arduino framework (see frameworks section, not cmsis nor stm32cube)".
#10
FPGA / Re: Problem getting simplest o...
Last post by LubOlimex - February 19, 2026, 08:16:30 AM
Thank you both for reporting this issue and helping in debugging and fixing it!