April 23, 2026, 06:05:51 PM

Recent posts

#51
ESP32 / Re: determine available (unuse...
Last post by LubOlimex - February 24, 2026, 09:36:09 AM
Make sure the PSRAM is enabled and set to OPI (if it is set to QSPI it will not be read).

I also made this Arduino demo that shows the chip info (revision, SPI size, RAM size) for the chip, make sure Arduino IDE settings are the same:

https://github.com/OLIMEX/ESP32-S3-DevKit-LiPo/tree/main/SOFTWARE/Arduino/ESP32-S3-chip-info-demo
#52
ESP32 / Re: determine available (unuse...
Last post by LubOlimex - February 23, 2026, 08:24:09 AM
Something wrong with the software setup and installation. Better search for similar problem in ESP-IDF or VScode forums.

Maybe try Arduino IDE with these settings: https://github.com/OLIMEX/ESP32-S3-DevKit-LiPo/blob/main/SOFTWARE/Arduino/ESP32-S3-DevKit-Lipo-bat-sense/Arduino-Settings.jpg
#53
ESP32 / determine available (unused) f...
Last post by Timbopoise - February 21, 2026, 12:32:12 AM
I've searched for an answer and reviewed espressif's documentation but no clear answer.  I'm sure I missed something.

when I run idf.py size I get an interesting table of information but the Flash usage is blank.

I'm on Ubuntu 24.04, VScode, ESP32-S3 8R8

Thanks
#54
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.
#55
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.
#56
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.
#57
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.
#58
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.
#59
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.
#60
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.