Ask questions and discuss STM32 wireless solutions and their implementation for running Bluetooth LE, Zigbee, LoRaWAN applications.
Most recent activity
Hi, my name is Jorge.I'm currently working with an STM32WB5MMG, which has Bluetooth LE 5.2 connectivity. In the current version of the project, it's working with two Bosch sensors. The BMI088 with accelerometer and gyroscope, and the BMM150 with a magnetometer.I've been working with the sensors through SPI communication in the same SPI2 port of the MCU. The operation mode works obtaining data by a data ready interrupt. Each sensor works at a different data acquisition frequency, so it can measure data at different frequencies. The BMM150 sensor has a forced mode that allows to work at higher frequencies, so it's currently configured so it can obtain the measured data from the 3 sensors at 400Hz.The problems started when I enabled BLE on the MCU. The project works fine for a while, until it suddenly disconnects from the device connected via Bluetooth. The MCU doesn't seem to notice that it has been disconnected for a moment, so if the mobile device requests reconnection, it reconnects.
Hi,I have a wb55 nucleo and a wb55 usb dongle. The usb dongle is running zigbee onOff Server example code. However, it is using install code instead of preconfigured link key as shown below./* Using the default HA preconfigured Link Key */ //memcpy(config.security.preconfiguredLinkKey, sec_key_ha, ZB_SEC_KEYSIZE); static uint8_t installCode[ZB_SEC_INSTALL_CODE_MAX_LENGTH] = {0x83,0xFE,0xD3,0x40,0x7A,0x93,0x97,0x23,0xA5,0xC6,0x39,0xB2,0x69,0x16,0xD5,0x05,0xC3,0xB5}; static uint64_t macID = 0x0080e125000095c6; ZbSecAddDeviceLinkKeyByInstallCode(zigbee_app_info.zb, macID, installCode, ZB_SEC_INSTALL_CODE_MAX_LENGTH);I have also configured the wb55 nucleo with the right link key as follows :* Using the default HA preconfigured Link Key */ // 66B6900981E1EE3CA4206B6B861C02BB uint8_t sec_key_ha_installCode[ZB_SEC_KEYSIZE] = {0x66,0xB6,0x90,0x09,0x81,0xE1,0xEE,0x3C,0xA4,0x20,0x6B,0x6B,0x86,0x1C,0x02,0xBB}; memcpy(config.security.preconfiguredLinkKey, sec_key_ha_installCode, ZB_SEC_KEYSIZE);Ho
My purpose is to be able to send and receive serial communications using USART in asynchronous mode.When I try to adapt these kind of examples using UART_DMA in FreeRTOS, are not working. I copied the configuration regarding IRQs, DMA and USART inicializations, but it is not working. Could you please let me know if anyone else have the same problem, or could you provide me any kind of example using UART_DMA and FreeRTOS?Many thanks,
Hi! I started testing sound transmission to a smartphone using BlueVoice and noticed sound distortion.When recording speech, there are distortions, but they are not very noticeable. To check, I placed a speaker near the microphone and connected it to a signal generator at a frequency of 1.2kHz (sine).Distortions have become clearly visible.For comparison, I recorded on a computer microphone, there is no distortion. All audio files are attached.I checked it on the standard firmware ST BlueNRG-LP_LPS DK 1.2.0 - BLE_SensorDemo_BlueMSapp.OS: Android 10, App: ST BLE Sensor v. 4.14.7Please tell me how to solve this problem?Problem with audio processing or BlueVoice transmission?Thank you.P.S.A problem has been noticed that when sound is output through smartphone speakers or headphones, severe distortion occurs.There are no such distortions on the sound recording.Voice test BlueVoice: BlueVoice 1.2 kHz: PC_Mic 1.2 kHz (Normal):
Hi,Currently looking into having multiple multicast groups on an STM32WLE5, using the LoRaWAN middleware included with STM32Cube_FW_WL_V1.2.0 package. When looking at "LoRaMacTypes.h" (in Middlewares/Third_Party/LoRaWAN/Mac), I came across the constant "LORAMAC_MAX_MC_CTX" which should control this, and it is currently set to "1". Right next to it, there's a comment saying: "ST_WORKAROUND: reduced LORAMAC_MAX_MC_CTX", and therefore I wonder: is it possible to increase this value, or has it been set to 1 deliberately due to some kind of issue with the STM32WLE5 chip?I tried looking at the git logs of the STM32WLE repository (can't add the link to the repository due to being a new member) but since it seems like only complete releases are uploaded there, there were no commit logs which could point me to why that comment is there in the first place.
Hello guys,I want connect to a bluetooth device/beacon from STM32WB.I've used this function to setup the connection with the device found when scanning but it won't connect to it it always print out "[BLE] Successfully Connected to Slave" and then directly"[BLE] Connection To Slave Failed"static void vConnectionRequest(eAppBleConnectionStatus __e_NewStatus) { tBleStatus result; vCNSLCTRL_SendDataToOuput(true,"[BLE] Successfully Connected to Slave\r\n"); if (_t_BleApplicationContext.e_DeviceConnectionStatus != APP_BLE_CONNECTED_CLIENT) { result = aci_gap_create_connection(0x4000, 0x4000, PUBLIC_ADDR, _au8_ScannedMacAddress, PUBLIC_ADDR, 40, 40, 0, 60, 2000 , 2000); if (result == BLE_STATUS_SUCCESS) { _t_BleApplicationContext.e_DeviceConnectionStatus = APP_BLE_LP_CONNECTING; } else { vCNSLCTRL_SendDataToOuput(true,"[BLE] Connection To Slave Failed \r\n"); } }Did i do something wrong here?
this error showed when i build the project ```c:\st\stm32cubeide_1.8.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_2.0.0.202105311346\tools\arm-none-eabi\bin\ld.exe: C:\Users\gjallouli\STM32CubeIDE\ETO\ETO_FW_Production_Pack\Core\Src\dwt_uwb_driver\lib\libdwt_uwb_driver-hfp-5.8.0.a(deca_compat.c.obj): in function `dwt_probe':deca_compat.c:(.text.dwt_probe+0x94): undefined reference to `__dw_drivers_start'c:\st\stm32cubeide_1.8.0\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.9-2020-q2-update.win32_2.0.0.202105311346\tools\arm-none-eabi\bin\ld.exe: deca_compat.c:(.text.dwt_probe+0x98): undefined reference to `__dw_drivers_end'```when i searched the '__dw_drivers_start' only exists in the flash of F4 .can i modify the flash of WB and create other sections
Hi.I trying to find out which BLE stack FW is installed on CPU2 at runtime. Is there any command or buffer that I can read to find out if BLE_stack_full, BLE_stack_basic or BLE_stack_light is installed?Thanks.Yair.
I want to increase the gain of my Thread device. I am trying a simple loop as follows inside a sequenced task but it never exits. The seq have the lowest prio of all.int pwr = 0; while(pwr != 4) { otPlatRadioSetTransmitPower(NULL, 4); otPlatRadioGetTransmitPower(NULL, pwr); HAL_Delay(1)}
..
Hello, I'm using a STM32WL55JC in dual core configuration to communicate with LoRa protocol.I'm also working on an OLED display interface using I2C communication on the same MCU.I have a working application using LoRa communication without OLED interface.The OLED interface work well also without the LoRa application.But when I join the two project, the radio init function drive me into errorhandler...After investigating I find some weird happening...First, the radio init bug occured only when I'm calling ssd1306_WriteString. But it doesn't matter what is in this function, in fact if I comment everythings in it, its still bugging... So just the fact that I'm calling it make my programm bug... May it come from parameters of the fonction ? Secondly, If I call ssd1306_WriteString before the radio init, it print what I want on the screen and when radio init happen it's bugging... But also, if I'm calling ssd1306_WriteString after radio init, it's bugging on radio init... How it can be possi
Nucleo-L073RZ board and I-Nucleo-LRWAN1 (USI module) shield - as supplied as the "Sensor" part of the P-NUCLEO-LRWAN2 kit: The documentation refers to I-CUBE-LRWAN at v1.2.2; in v2.0.0 (March 2021), the directory structure has changed somewhat.I assume the correct path for the "Sensor" node project is now:Projects\NUCLEO-L073RZ\Applications\LoRaWAN\LoRaWAN_AT_Master\STM32CubeIDE\I_NUCLEO_LRWAN1Can anyone confirm if this actually works?At the moment, mine doesn't seem to be sending any AT commands from the Nucleo board to the USI shield...
Does STM have a recommended test setup for LoraWan Class B support testing/development? I understand that the STM32WL should support Class B, but it is very difficult to find much documentation on *Gateways* that currently support Class B (beaconing, etc).Thanks!Jon
I have a network consisting of a Amazon Alexa coordinator and couple of end devices. And I need to communicate somehow between end devices directly, without coordinator. So I am trying to use APS functionality. But when I try to use the broadcast address I get an error in the terminal. Is there any example of how to do this?Also when I try to use group addressing I receive invalid argument in response (of course I made group address init as shown in Onn_Off example in repo).So if I want to create a custom cluster - how can I use group addressing or broadcasting?Is it right that this functionality of ZigBee not supported?
Hi,I am using a STM32WB55 board and its USB Dongle.I set up a ZigBee network with Messaging Cluster between them.The WB55 is the router + server, and the Dongle is the coordinator + client.I can send a Message from WB to Dongle.When I try to send data from Dongle to WB, the callback on WB is never called, even when I send the message to everyone (broadcast).What can make a Callback never activated? Best regards,CD
Hi,I am currently doing some tests measuring the battery voltage on a system using the STM32WLE5, I am measuring both v_sys and v_bat. I am running into an issue with the v_bat measurement, I am seeing alot of noise compared to the v_sys measurement. I am using a bench supply currently to prevent any fluctuations due to the supply. I have attached an image below of the plot of voltage against time, and then below that is voltage against temperature (the same data points)
When I make a timer,1 ms error happens per every 1 s.How can I revise it? I'm using Necleo-wb55 and "TIM16"The Prescaler is 31999 / 32000 (both are tested).
Hello, I have a BLE Secure Connection implemented between an android phone and STM32WB55. Currently, using fixed key to start pairing, it takes approximately 2 seconds to get paired (after the key is sent, and devices are paired) in addition to 600ms for scan, connect, and find services.I was wondering if some can confirm and give me some pointers on how to bring the pairing time to less than 1 second.What I have tried so far.Fixed MTU size on firmware and Android to avoid MTU set/reset(this reduced 0.5 seconds)Min Advertisement Time Duration is 800ms and Max is 10.4 secondsTx Power : Set to MAX @ 6dbMEncryption is set to minimum 8 byte.There is only 1 service, with 2 Characteristics( 1 read, 1 write), and both are authenticated, and encrypted.Thanks
We have developed battery operated product using STM32WLE5CC.when device goes into deep sleep around 1.7uA current are flow normally.During Testing of product we face an issue which is described as below.During deep sleep of STM32WLE5CC, we removed battery from device so now slowly- slowly voltage gets down on STM32WLE5CC VCC-GND pin.Case 1:Voltage Down Start from 3.3V and when it reached to 1V-1.1V, we again plug battery into device and now voltage on STM32WLE5CC VCC-GND pin is 3.3V .then we press Button on EXTI on PB3 Button, which is our external wake-up source and STM32WLE5CC wake-up start working completely.Case 2:Voltage Down Start from 3.3V and when it reached to 700mV - 800mV, we again plug battery into device and now voltage on STM32WLE5CC VCC-GND pin is 3.3V.but in these condition STM32WLE5CC didn't boot again and also not react on button press on PB3 external wake-up. its goes into unknown condition.its only react now when we restart it using reset button.So, Please help us
I am using TIM16 as a one second counter on an STM32WB55. I would like to generate an interrupt after it rolls x times (as example 2). I set the TIMx_RCR to a 1. Can someone tell me what function I need to call in the HAL library and should I place that function within the "HAL_TIM_PeriodElapsedCallback" which I am using?I only see the "HAL_TIM_GenerateEvent" which to me sounds like if you want to do a software generate of an event????Thank you.
Greetings, i am developing a application that will run on a RAK3172 module and i have been attempting to use the radio End-Of-Life flag to detect when the battery supply is too depleted to operate the radio safely.The base application is the LoRaWAN_End_Node sample with modifications to make it run on a RAK3172 package mounted on a custom PCB.As the first thing upon entering the main function, i activate the end of life detection enable register with the function (HAL_PWREx_SetRadioEOL) provided to me by the sdk. Then i connected the board to a power supply to simulate different battery charge levels.To make a long story short, for some reason the EOL flag (in PWR-SR2) remains always set to 1, regardless of:-enabling or disabling of the EOL enable register-state of the radio-supply voltageUnfortunately this makes the end-of-life detector useless as i cannot discriminate whether or not the battery is sufficiently full to operate the radio safely.Thanks in advance
I have already done it, but I want to change the code for the P-NUCLEO-LRWAN3gateway. Is it possible to share the code if you have it?I use the bin file for the gateway and the expansion code for the end-devices.Board used: https://www.st.com/en/evaluation-tools/p-nucleo-lrwan3.htmlBin: https://www.st.com/content/st_com/en/products/partner-products-and-services/embedded-software-from-partners/the-things-network-gateway-firmware.html#product-details
I have no problem to flash or debug the CM4 of the board. But when I'm trying to flash the CM0+ this error occurred : Error in final launch sequence:Failed to start GDB serverFailed to start GDB serverError in initializing ST-LINK device.Reason: (255) Unknown. Please check power and cabling to target.This informations are show on the consol : STMicroelectronics ST-LINK GDB server. Version 5.9.1Copyright (c) 2021, STMicroelectronics. All rights reserved.Starting server with the following options: Persistent Mode : Disabled Logging Level : 1 Listen Port Number : 61234 Status Refresh Delay : 15s Verbose Mode : Disabled SWD Debug &
I'm using the necleo-wb55 board.I'm trying to increase ADC measuring speed but I found that the speed for 16-bit measurement and 12-bit measurement looks the same even though 16-bit uses 256 oversampling. I checked how many measuring cycles happen using USB debug but both systems show about 300 times per second.Because I have to use 32 channels for the mapping device, the 300 times per second is insufficient, (its frame rate becomes ~10 fps). I'm targeting 60 fps ~ 600 fps because I have to collect brain signals.Could you explain what can cause such a delay?or should I use a high-end microcontroller such as STM32H725AEI having 550 MHz clocks? In this case, I'm concerned about how to send data through wireless communication.
When you power Nucleo-WL55JC! with external 3V3 via CN6, I could see constant 120mA current consumption. Is there any way we can reduce this?
WATCH ON-DEMAND | STM32 Summit 2026
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.