Ask questions and discuss STM32 wireless solutions and their implementation for running Bluetooth LE, Zigbee, LoRaWAN applications.
Most recent activity
Hi,It's first time using st product to me.according to that's UM, i thought that connect CN11 to PC it work debugging.but it wasn't and showed warning message "No ST-LINK detected! Please connect ST-LINK and restart the debug session"ST-LINK isn't included on the board?It is necessary to buy ST-LINK/V2? if it is how to connect this board?
I have just sent a notification to the client, but noticed , I did not get a notification confirmation event back.This event :(ACI_GATT_SERVER_CONFIRMATION_VSEVT_CODE) Since then, I cannot send any more notifications on the characteristic. Why is that?And more importantly, How do I "reset" it?
Hi,currently, I am using an NX2016SA (as recommended by ST) to generate the HSE (32 MHz) for an STM32WB55RGV6 microcontroller.I did not calibrate it, but so far everything works and I have a BLE range of up to 25 meters.Now I am planning to getting my device certified for BLE, but I worry, because I did not calibrate the HSE. I don´t think I have equipment available to calibrate a signal to +- 25 ppm. Sounds a bit insane to me.I did some measurements first: I switch between HSI and HSE and measure a current consumption of 3,36 mA for the HSE crystal at 3 V (1,13 mA / V is specified in the datasheet). I get a startup time of just 120 us from HSI to HSE. In the datasheet, a typical time for the XOREADY signal is specified as 250 us. How can it be that fast?To switch between HSE and HSI, I use the following code: void Turn_On_HSI(void) { LL_RCC_HSI_Enable(); while(!LL_RCC_HSI_IsReady()) { } LL_RCC_SetSysClkSource(LL_RCC_SYS_CLKSOURCE_HSI); while (LL_RCC_GetSysClkSource() != LL_
Hi all,I read this advertising in the datasheet:<<The SMPS needs a clock to be functional. If for any reason this clock stops, the device maybe destroyed.[...]Danger: Before enabling the SMPS, the SMPS clock detection must be enabled in the sub-GHz radio SUBGHZ_SMPSC0R.CLKDE.>>I only found references to SUBGHZ_SMPSC0R in:STM32Cube_FW_WL_V1.0.0\Middlewares\Third_Party\SubGHz_Phy\stm32_radio_driver\radio_driver.h#define SUBGHZ_SMPSC0R 0x0916STM32Cube_FW_WL_V1.0.0\Projects\NUCLEO-WL55JC\Examples\PWR\PWR_SMPS\Src\main.cUse exampleIn the Datasheet:<<The LDO or SMPS step-down converter operating mode can be configured by one of thefollowing:• by the MCU using the SMPSEN setting in PWR control register 5 (PWR_CR5), thatdepends upon the MCU system operating mode (Run, Stop, Standby or Shutdown).• by the sub-GHz radio using SetRegulatorMode() command and the sub-GHz radiooperating mode (Sleep, Calibrate, Standby, Standby with HSE32 or Active).After any POR and NRST reset, the
I have a zigbee 3 client working on channel 11 . But It was developed by some other person who was not in touch anymore .. the issue is I need to develop a project that only read a temperature data and frequency value and send those 2 values over zigbee client that connected on a PC through a TTL .. I don't have any idea about zigbee communication procedure and API s . And also I didn't got any source where I can easily understand the process .. can anybody give. Some guidance to do th process
Hello,I am trying to comunicate the STM32U5 of the board with the STM32WB module, as I need a star network (1 client with 5 servers), I could also use a mesh. To comunicate different nodes. I am having trouble with it, as I just send basic "AT+BLE_RST=1" and I never get any response. I have flashed the STM32WB with FUS and BLE stack using STM32CubeProgrammer wireless tab and then the BLE_AT_Server module application as noted here: https://github.com/STMicroelectronics/STM32CubeU5/tree/main/Projects/B-U585I-IOT02A/Applications/BLE/BLE_AT_ClientIn the U5 I set the UART4 TX as blocking:HAL_UART_Transmit(UARTx, buffer, length, 1000) != HAL_OK)And RX with DMA:__HAL_UART_ENABLE_IT(UARTx, UART_IT_IDLE); HAL_UART_Receive_DMA(UARTx, stm32wb_rx_buffer, stm32wb_rx_buffer_size); And expecting to get the answer on:void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart) I have previous experience on doing this with H7s, F4s, L4s, but I do not know if is a problem with the GPDMA o
Hi, I'm working on a project involving 2.4GHz RF communication and I am considering using the STM32WB series alongside the BlueNRG-1. I'm looking into the compatibility of these two devices, especially regarding the use of ST's specific drivers. My question is: Can the STM32WB communicate with the BlueNRG-1 when the BlueNRG-1 is using the "ST radio proprietary driver" and the STM32WB is using the "BLE low level driver (LLD)"? (The APIs of these drivers seem similar, so I'm hopeful about the potential for integration.)
Looking to migrate our design from the SPBTLE-RF to the STM32WB1MMCH6. Our application is running on a separate MCU communicating with the module using the HCI & ACI doing BLE communications. Has anyone done this migration, or know if the modules have compatible interfaces?
Dear support team, I was trying to build a thread device with a nucleo-wb55rg board. I did the following steps:- Implement Full chip erase- Upgrade firmware STM32Cube_FW_WB_V1.17.3\Projects\STM32WB_Copro_Wireless_Binaries\STM32WB5x\stm32wb5x_Thread_FTD_fw.bin at address 0x08083000. I referred to the release note, the firmware version is V1.17.1- Download example Thread_Cli_Cmd and build/upload- I got it running but it says the radio failed and many issues exist. Please have a look at the attached image.Please help me check it. What should I do?
Hi,I'm new to Zigbee and STM32WB55, and I need to retrieve certain electrical measurement attributes through Zigbee Server and Client communication. While examining the electrical measurement header file (zcl.elec.meas.h), I observed that some attributes are currently disabled (as given below, they are marked as False in the same header file comments). Comment description ======================= * EMR.S.A0505 | RMSVoltage | False | Optional * EMR.S.A0508 | RMSCurrent | False | Optional I'd like to inquire whether it's possible to access the attributes listed below. If these attributes are initially deactivated, what steps can be taken to enable them for functionality? These are some Electrical Measurement Server Attribute IDs enum ZbZclElecMeasSvrAttrT { ZCL_ELEC_MEAS_ATTR_RMS_VOLT = 0x0505, /**< RMSVoltage (Optional) */ ZCL_ELEC_MEAS_ATTR_RMS_CURR = 0x0508, /**< RMSCurrent (Optional) */ } --Thanks & Regards,Naani C
I would like to do peer - peer stuff and experiment with LoRa.....Question: Do I use the LoRaWan stack when I am doing peer - peer, or is that strictly used when I want to communicate to a gateway?Is there literature that explains all the settings in CubeMX when I turn on the Lora module?Thank you
I'm starting using BLE Mesh on Nucleo wb55rg, I've seen the STM32CubeWB Package and in it there are tools for getting started with a BLE mesh Network. Following the steps in this wiki I get a small error.I'm uploading code for Friend NodeI'm uploading code for Low-Power Node (after modifying the associated code)When push the button 1 (like explain on the wiki) I have this error: "elementAddress" failed: file "../../../../../../Middlewares/BLE_Mesh_Lib/pal/STM32WB/pal_crypto.c", line 3170, function: MoblePalCrypto_GetModelPublicationParameters The rest of the operation presented in the wiki is not done Note: I don't use exactly the same references as the wikiI have 2 Nucleo WB55RG (one it's Friend Node and other is LP Node), not a nucleo and a p-nucleoAfter searching on the internet I still don't understand where this error comes from.Thank you for you reply
Hi everyone, I have a project to send a struct to receiver Lora from transmitter Lora. I have searched almost all sources to use Lora with STM32CubeIDE while using a library or not, but I couldn't send a data anyway. Can someone help me about this problem please?
I have 2 NUCLEO-WL55JC1 boards I am using to communicate using LoRa. The Tx board sends a message every 10 seconds, the Rx board receives the message and lights up an LED..I have this working at SF7, the same spreading factor as the ping-pong example I copied the code from, but if I try to change this to SF12 (on both Tx and Rx projects) the Rx board never receives messages.Any ideas on how I can fix this? Her is the code #include <stdio.h> #include <radio_driver.h> #include "types.h" #include "radio.h" #define RF_FREQUENCY 924000000 /* Hz */ #define TX_OUTPUT_POWER 14 /* dBm */ #define LORA_BANDWIDTH LORA_BW_500 /* KHz */ #define LORA_SPREADING_FACTOR LORA_SF9 #define LORA_CODINGRATE LORA_CR_4_5 #define LORA_PREAMBLE_LENGTH 8 /* Same for Tx and Rx */ #define LORA_SYMBOL_TIMEOUT 5 /* Symbols */ #define LORA_RX_TIMEOUT 10000 /* milliseconds */ #define RADIO_RX_BUFFER_SIZE 10 #define ZERO_OFFSET 0 typedef enum { RADIO_STATE_IDLE, RADIO_STATE_RX_COMPLETE
I have been stuck on the OTA using BLE. I have understood how to change the linker file in STM32 Cube IDE(Flash. ID) and I have most of my code written by my team on arduino ide(basically it is BLE Application). Now my problem is that I am unable to sort out that how can I change the linker file in arduino ide(STM32duino) because they don't have any open access to the linker files. Is there any method to do that also does the STM32 BLE class in arduino ide also provides a way to update using OTA.Thank you for your thoughts.
I have an STM32WB55 Nucleo Pack and i thought i'd try out the BLE heartbeat monitor example on the MB1355C board, so i opened up the STM32CubeProgrammer, put the power selector to USB STL and could connect ok.I Selected the hex file for the heartbeat monitor example and used the Automatic option to try to write it to the board. It said it finished writing to board N:1, connect board N:2 and hung. So i disconnected the board and plugged it back in and i noticed not much was happening, and i couldn't see the bluetooth device using my phone, so i tried to connect it back to the STM32CubeProgrammer and i noticed it would no longer connect.If i open the cube programmer, and select "Firmware Upgrade" no device appears. However, if i click the button that says "Open in Update Mode" the board resets, device information appears and i can upgrade the firmware. The board still mounts like a drive and i can still drag files into the drive which magically disappear after the board is reset.Can anyo
Hello, the reference design STDES-WL5U2SBB (MB1791) specifies a frequency range between 470-530 MHz. I plan to run LoRa on 433MHz with 10 dBm. I do not wish to use a 4-layer PCB in my product design. This seems to be the only version that has 2-layers and falls roughly within the frequency range. I am using the STM32WL55CCU6. Would this design still work with 433/434 MHz? Best Regards,Daniel PS. I have manufactured the 868MHz MB1874-LP and this works great.
In the STM32CubeWB source code collection, I found the BLE_Peripheral_Lite project. This project however is only available for the P-NUCLEO-WB55, but I am working with the NUCLEO-WB15 board.According the Release notes this should be easy:<quote>The provided examples can be tailored to run on any compatible hardware; user simply need to update the BSP drivers for his board, if it has the same hardware functions (LED, LCD display, pushbuttons...etc.). The BSP is based on a modular architecture that allows it to be ported easily to any hardware by just implementing the low level routines.</quote> My question is: How do I update the BSP drivers for my board? BR, Ben
Hi,Is it possible to import files from I-CUBE-LRWAN package to a new project generated with MX? From the info I've found so far I know there is no way to import it automatically with Cube MX and I have to transfer them manually but I'm not sure which ones and how to link them later.I'm using b-l072z-lrwan1 board and would like to have the functionality of the "end-node" example from I-CUBE-LRWAN package.How should I go about this?
I have added a partition (MY_MEMORY) to my flash to store a static library (littlefs) so that I don't have to include it in the firmware that is updated over the air however the output binary file for the project is very large. I have reviewed this post which describes a similar problem however the given solution has not worked in my case. /* ****************************************************************************** ** ** File : LinkerScript.ld ** ** Author : STM32CubeIDE ** ** Abstract : Linker script for STM32WB55xG Device ** 1024Kbytes FLASH ** 256Kbytes RAM ** ** Set heap size, stack size and stack location according ** to application requirements. ** ** Set memory bank area and size if external memory is used. ** ** Target : STMicroelectronics STM32 ** ** Distribution: The file is distributed as is without any warranty ** of any kind. ** ***************************************************************************** ** @attention ** ** Copyright (c) 2023 ST
I'm having an oddly difficult time seeing how to do something quite simple. In older CubeMX projects, the `Adv_Request` function looked like this: static void Adv_Request(APP_BLE_ConnStatus_t NewStatus) { tBleStatus ret = BLE_STATUS_INVALID_PARAMS; uint16_t Min_Inter, Max_Inter; if (NewStatus == APP_BLE_FAST_ADV) { Min_Inter = AdvIntervalMin; Max_Inter = AdvIntervalMax; } else { Min_Inter = CFG_LP_CONN_ADV_INTERVAL_MIN; Max_Inter = CFG_LP_CONN_ADV_INTERVAL_MAX; } /** * Stop the timer, it will be restarted for a new shot * It does not hurt if the timer was not running */ HW_TS_Stop(BleApplicationContext.Advertising_mgr_timer_Id); if ((NewStatus == APP_BLE_LP_ADV) && ((BleApplicationContext.Device_Connection_Status == APP_BLE_FAST_ADV) || (BleApplicationContext.Device_Connection_Status == APP_BLE_LP_ADV))) { /* Connection in ADVERTISE mode have to stop the current advertising */ ret = aci_gap_set_non_discoverable(); if (ret != BLE_STATUS_SUCCESS)
I have three STM32WB55 applications:A) is a debugging application that's only ever flashed directly and standalone using the STM32CubeProgrammer CLI.B) is a bootloader with integrated FUOTA functionality.C) is my "actual" application. It can be compiled in two configurations: as standalone (which I will refer to as "Ca", as in "C alone"), or to be started by B (referred to as "Cb", as in "C w/ bootloader")C has a sophisticated debug interface, where I can send commands as bytes via UART and get a reply back via UART. One of those commands is "Echo your current RTC time every 500 milliseconds for 5 seconds" (timing the 500ms is done by FreeRTOS/osDelay).But the debug command exposes a weird behavior:Flash and run A, then flash and run B+Cb, and the debug command works as intended. It prints the 10 values in 500ms intervals, and the RTC time progresses by 500ms for every timestamp received.But then I tell C to launch B in FUOTA mode. I let the update time out, which means nothing is
Hello - I have a custom pcb using the stm32wb55 and I have spending time optimizing the power consumption. My primary intentions with this PCB is to sample data around 1 Hz and send this data to html server app using BLE. I'm using the BLE_Sensor example as the basis of my current firmware. Seems like BLE_Sensor also includes some motion_server firmware that may be adding to the power consumption but I'm not sure. Everything I have tried so far (I'll include links to what I have tried) brings my current consumption down to 74 mA. From what I am reading and observed in guides, that is WAY TOO HIGH!!! I am trying to use a 3.7 V 110 mAh coin cell to operate the system for as long as possible, but right now it would be for a little over an hour. I have tried setting the system clock to MHz, enable HAL_PWR_Ex_EnableLowPowerRunMode(), setting all unused pins as analog, but there is clearly something that is holding me back. from achieving minimal
SensorTile.box Pro: I am having difficulty figuring out which api to use within a function I have created to send accellerometer sensor data to a Stm32WB client . Function example :void sendAccelerometerData(int x, int y, int z) {uint8_t data[6]; data[0] = ; data[1] = ; data[2] = ; data[3] = ; data[4] = ;data[5] = ; ?? BLE_UpdateValue(ACCELEROMETER_CHAR_UUID, data, sizeof(data));}I would also like to understand where to implement this function and its parameters.
Hello everyone,I'm working on a project which includes the following hardware setup.> Raspberry Pi 4 Model B> STM32WB55RGV6 Nucleo board> WizNet W5500 Ethernet Module I'm using SPI protocol to communicate between STM32WB board and WizNet W5500 module and Ethernet protocol between WizNet W5500 module and Rpi.I'm planning to implement a Firmware update Over The Air (OTA) for STM32WB using the Ethernet and WizNet W5500 as an intermediary between Rpi and STM32WB.I have already gone through the ST's documentation "Over-the-air application and wireless firmware update for STM32WB series microcontrollers" where they have provided detailed explanation about Firmware update with "ST BLE Sensor" and "STM32CubeMonitor-RF". But both of these methods include the BLE protocol and my project is already implemented with Ethernet and WizNet and I want to continue with that.I need some suggestions whether the Firmware update Over The Air (OTA) for STM32WB using the Ethernet and WizNet W5500 as
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.