Ask questions and discuss STM32 wireless solutions and their implementation for running Bluetooth LE, Zigbee, LoRaWAN applications.
Most recent activity
Hi,I'm using ble notification for transferring data. I have increased MTU Size to 512 as mentioned below#define CFG_BLE_MAX_ATT_MTU (512)Also I changed " SizeAudstream_Char = 500 " for " aci_gatt_update_char_value " function. After doing the changes via BLE I'm only getting 244 bytes and the rest of the byte is 0.Output:[1, 0, 0, 1, 0, 2, 0, 3, 0, 4, 0, 5, 0, 6, 0, 7, 0, 8, 0, 9, 0, 10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 15, 0, 16, 0, 17, 0, 18, 0, 19, 0, 20, 0, 21, 0, 22, 0, 23, 0, 24, 0, 25, 0, 26, 0, 27, 0, 28, 0, 29, 0, 30, 0, 31, 0, 32, 0, 33, 0, 34, 0, 35, 0, 36, 0, 37, 0, 38, 0, 39, 0, 40, 0, 41, 0, 42, 0, 43, 0, 44, 0, 45, 0, 46, 0, 47, 0, 48, 0, 49, 0, 50, 0, 51, 0, 52, 0, 53, 0, 54, 0, 55, 0, 56, 0, 57, 0, 58, 0, 59, 0, 60, 0, 61, 0, 62, 0, 63, 0, 64, 0, 65, 0, 66, 0, 67, 0, 68, 0, 69, 0, 70, 0, 71, 0, 72, 0, 73, 0, 74, 0, 75, 0, 76, 0, 77, 0, 78, 0, 79, 0, 80, 0, 81, 0, 82, 0, 83, 0, 84, 0, 85, 0, 86, 0, 87, 0, 88, 0, 89, 0, 90, 0, 91, 0, 92, 0, 93, 0, 94, 0, 95, 0, 9
Hi Sirs,I designed a custom board using STM32WB55. I loaded one board with my custom BLE Server code which sends strings at two-second intervals, while the other with my current custom BLE Client code.I received these characters properly from the &pr->Attribute_Value variable during the ACI_GATT_NOTIFICATION_VSEVT_CODE on my custom Event_handler. My problem is when I connect one of my custom boards using NRF52840, the ACI_GATT_NOTIFICATION_VSEVT_CODE does not fire during the debug, which is why I'm not receiving the characters.I tried to connect these custom server boards on the ST BLE Toolbox, and here's what I found out.1. Custom STM32WB Server board: READ and WRITE characteristics are fine. With enabled notification on READ characteristic. I also happen to see a specific "READ" button on the READ characteristics.2. Custom NRF52840 Server board. The WRITE characteristic is fine, no READ button on the Read Characteristics, but has a notificat
Hello!I am having trouble with lost BLE packets in my system:- TX: STM32WB15CC- RX: nRF52840I have tried so many different things to patch this, but I continue struggleling. For my app, I get a 247B frame ready to be sent every 3ms, so I need a high througput for BLE. However, theoretically I should be possible to get around 10m or more without losses, whereas I get roughly to 4m.There seem to be two main problems:The first one takes place in the link and the environment. As packets do not reach their destination succesfully, I suspect there has to be interferences or some kind of distorion that gets the packets lost in the air.The second one is around the BLE queues in the transmitter. I believe there could be overflow in the buffers or some timeout running out when failing to retransmit the packets that are lost in the link.However, as I do not have such a great experience, I do not know how to analyse what is exactly happening with the queues and how much memory are they able to sto
Hi,I tried to import the BLE Heart rate example from the Firmware Package (1.18.0), direct importing by the STM extension in VSCode (Cube IDE directory inside the project) seems to be not possible. If I choose 'Create a new appl. project' in the extension, open Ble_HeartRate.ioc in the project folder and change the project output to STM CubeIDE and generate the files, it is not compilable. Probably importing in Eclipse is more successful, but is there maybe a way to do it in VSCode? Greetings,Rémy Hurx
Can you tell me what the Data field holds in ACI_L2CAP_PROC_TIMEOUT_EVENT?Photo out of AN5270:Thanks
Using Nucleo-WB55 and I call the above command. I put a break point and can see then later that I call UTIL_SEQ_SetTask with the same mask HOWEVER I never go back into my function. Can anyone tell me what I am doing wrong?
Hello,actually, i'm using the bluetooth module BlueNRG-M2 , and i want to know the communication distance in meter please and the length of the antenna .Thank you
Hello....I have generated code with CubeMX for the WB55. I have read and write on some characteristics with some require authentication. On one characteristic I have read, write (with authentication) and notification set. On this same characteristic I am enabling GATT events :From all the reading and watching videos I have done I have not been able to answer some questions:1. What is GATT_NOTIFY_ATTRIBUTE_WRITE?2. Can someone explain what is the difference between the following functions?Custom_STM_Event_Handler (custom_stm.c) and Custom_STM_App_Notification (custom_app.c) It appears that sending info back and forth to the client from the server using custom_stm.c seems to work fine for reading and writing to the application. The Custom_STM_App_Notification function has switches showing my services, etc but is bare with no user code. I'd like to understand the sequence of what files call what here and for what reason should I p
Hi everybody,Here's a bit of context of my project:I'm using BLE Mesh Template, using Sensor and Generic Models.I'm enabling the USB and the CDC middleware. Thus:I changed the configuration of the SystemClock.The nodes are mostly self-provisioned.One node is working as root/gateway.And here comes the problem. When I try to Self-Provision the Root Node, by enabling theDYNAMIC_PROVISIONER feature in mesh_cfg_usr.h, and execute the command ATEP ROOT. The app "hangs" indefinitely.These two logs show: 1.- The uncomplete self-provisioning process and (2.-) the second log shows the complete self-provisioning process. UNCOMPLETE PROCESS. Application Crashes; the last line is where the app dies. Wireless Firmware version 1.17.3 Wireless Firmware build 2 FUS version 1.2.0 >>== SHCI_SUB _EVT_CODE_READY >>== WIRELESS_FW_RUNNING >>== DBGMCU_GetRevisionID= 2003 >>== DBGMCU_GetDeviceID= 495 Success: SHCI_C2_BLE_Init command Success: aci_hal_write_config_data co
Hello, is there anything which specifies exactly the copper restriction area (page 11) under the antenna? Thankshttps://www.st.com/resource/en/datasheet/stm32wb1mmc.pdf
Dear all,we are trying to build a simple battery-powered BLE device. It should basically measure at intervals and advertise results only (minus the occasional update connection). With limited power resources we would expect to shut down both cores and have a 10 uA-ish power consumption, set aside the occasional advertisement- and rx-timeslots.That said, we have code running on the Nucleo-WB and a custom baord with the STM32WBMMG but with surprisingly high power consumption*. To eliminate our code as a cause, running the BLE_Beacon sample consumes around 7mA average after disabling the blue LED.Then, I enabled the CFG_LPM_SUPPORTED in app_conf.h resulting in 2.4 mA - right direction, but still a factor away from where things should be.I then had a look at the aci_* API to interact with the BLE framework on the second core but did not find any (official) way to set CPU2 to sleep resp. wake it at advertisement interval times. As far as I understand the forum entries, the LL_CPU2 cal
Hello everyone, I am working with STM32WB55RG board to make a custom profile that sends a read request from mobile app to the board to communicate with STM32F7 via SPI. F7 contains the data that has to be sent to the mobile app. I have been trying to figure how to integrate BLE and SPI in my code. I have used the snippet codes of SPI and it works fine.It seems to be very difficult and the resources and tutorial aren't that straight forward like I wanted them to be. I am just not able to build the connection between the app and SPI.@TDK @KDJEM.1 @Issamos @Remy ISSALYS @Remi QUINTIN Can you please explain me how to connect the mobile interrupt to enable the SPI.Thanks in advance!
Hello, i have a STM32WBA52CG with a NUCLEO 64 board.I want to utilize the new BLE in speakers. I want a Client phone to broadcast audio to servers -> STM32WBA52CG.First question, does an example sketch exist for this application? Is there some available code that i can look at to get started with BLE and its new features like an audio server?Second question, can i use the internal DAC for audio purposes? Then the left and right channel go though the DAC and out to GPIO, so i can connect it to amplifier?Third question, can i use the buildin DSP for doing equalizer operations on the left and right audio channel?Fourth question, I was at a ST workshop in Denmark -> Aarhus, they showcased a video with some audio applications where the boards were used for audio broadcasting. In the video the server side could switch between two audio channels and there was two audio boards that each had a channel that were broadcasting audio. Im looking for this video, i cant find it, also looki
hello everyone!from the link Solved: STM32U5 Can't exit STOP2 mode with LPTIM - STMicroelectronics Communityit is possible to make LPTIM work in stop2and there is a macro,__HAL_RCC_LPTIMx_CLKAM_ENABLE(), where x can be 1, 3, or 4. but in my project,(STM32Cube_FW_WB_V1.19.0),I can't find this macrois there anyone who can help me, how to make lptim work and wakeup from stop2thanks for your help!
Hi, I am Firmware Engineer and I'm using stm32WBMMG controller in custom board. Here, I can program it and is running the application right but it resets again and again and we found it by programming the RCC-> CSR control and status of reset flag registers and found the reset is brownout. When I run the program, this reset should not happen, Help me to get rid of this
Hello,I am trying to use the USB virtual com port on an STM32WB5MMG. After trying to go into any of the stop modes, I cannot get the virtual com port to work again. (I am using the RTC alarm to wake up the MCU from stop mode and it wakes up fine)I have tried these commands to get it to restart:USBD_DeInit(&hUsbDeviceFS); HAL_Delay(100); MX_USB_Device_Init(); HAL_Delay(100);I have also tried:-Before the sleep:USBD_Stop(&hUsbDeviceFS);-After the sleep:USBD_Start(&hUsbDeviceFS); I tried the 2 above method with standby mode on a previous project on this MCU but I can't seem to get it going again. Also, how I go into stop mode:HAL_SuspendTick(); HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI); HAL_ResumeTick(); Does anyone have some suggestions on what it might be?
Hi,I'm looking for help with time synchronization in Zigbee networks. How can we make sure the time stays accurate across all devices, considering delays in communication? Any suggestions or examples for implementing time clusters would be really helpful.Thanks,Naani Ch
Hello I am using the following to try and get a notification from an STM32WB Nucleo server to my phone the client but cannot get it to work.BLE Notifications ---- ST Micro video I compile and can see the two characteristics on my phone but when I push the button on the board my phone never updates with anything. I have tried ST Toolbox and nRF Connect and neither works.I have attached my project pdf file from CubeMX. This project was built on a test that does Pairing and Bonding with Pairing required only on certain characteristics from the Product service. After this was working successfully I added the STATUS service (page 18) which is pretty similar to the video. The difference is the VALVE characteristic has permission set to:ATTR_PERMISSION_AUTHEN_WRITE = YESand GATT event set to :GATT_NOTIFY_WRITE_REQ_AND_WAIT_FOR_APPL_RESP = YESThe second characteristic is the NOTIFICATION which the video is based off of (see page 18 of the pdf).Can anyone please
Dear ST Support Team,We are currently working on a project that involves communication between an STM32H5 microcontroller and an STM32WB10CC Bluetooth module. The Bluetooth module is flashed with the "Transparent Mode" firmware, and we aim to communicate with it using UART, directly sending HCI commands to the stack.Upon researching potential solutions,we discovered that the STM32_WPAN middleware appears to implement communication with the stack. However, we are uncertain whether it is possible to run this middleware on the STM32H5 MCU while using the Transparent Mode firmware on the Bluetooth module.In our current firmware, we have successfully used the HCI command approach to retrieve the firmware version of the Bluetooth module without relying on any libraries.To proceed with our project, we kindly request your assistance in clarifying the following:1. Is the STM32_WPAN middleware compatible with the STM32H5 microcontroller?2. Can the STM32_WPAN middleware be used in conjunction wit
I am programming an STM32WB5MMG module. Is it possible to limit the number of bounded devices to one?One process could be to bound to one device and when I want to bound another, delete all previously bounded devices. However, I would like to only delete the stored device once a new one has been successfully bounded. Is this possible?My idea is to make use of the whitelist to only allow connections from the bounded device. The system has a button from which to deactivate the whitelist and allow a different device to be bounded (but as I said, I would like to only delete the old device if a new one is successfully bounded).Best regards and thank you for your time.
Everywhere I look it is written to be 30 seconds.But Its too much time for me, Is there a parameters in Init or during connection I can change?
Hello, I am working with STM32WBA52 and I am using the X-Nucleo-NFC07A1 Tag to try to perform BLE OOB Pairing. From the sparse existent documentation regarding this subject, I have understood that the SecurityParams_t structure had a flag to indicate OOB Pairing support, however this flag does not exist anymore. typedef struct { /* IO capability of the device */ uint8_t ioCapability; /** * Authentication requirement of the device * Man In the Middle protection required? */ uint8_t mitm_mode; /* Bonding mode of the device */ uint8_t bonding_mode; /** * this variable indicates whether to use a fixed pin * during the pairing process or a passkey has to be * requested to the application during the pairing process * 0 implies use fixed pin and 1 implies request for passkey */ uint8_t Use_Fixed_Pin; /* Minimum encryption key size requirement */ uint8_t encryptionKeySizeMin; /* Maximum encryption key size requirement */ uint8_t encryptionKeySizeM
Hello, I used the onboard ST-Link Debugger of the STM32F401RE to flash/debug external boards. Can I do the same with the Nucleo-STM32WL55JCx Board(using the MIPI10 Connector)? I checked UM2592, and it only gives directions about using an external debugger(and turning off the on-board one). Thank youAmir
Hi,I want to know how to transmit data in ble for the interval of 10ms and How do I can change the ticks to achieve it.Thanks and Regards,LR.2
Ciao,I am trying to put my STM32wb55 in shutdown mode and wake it up using 2 external pins.Wake-up sources are on PA0 (active high) and PC12 (active low). Those should be PIN1 and PIN3 wake-up sources.This is the code I use to put the device in shutdown mode:void EnterLowPower() { __disable_irq(); __disable_fault_irq(); LL_C2_PWR_SetPowerMode(LL_PWR_MODE_SHUTDOWN); HAL_PWREx_DisableBLEActivityIT(); HAL_PWREx_Disable802ActivityIT(); HAL_RTCEx_DeactivateWakeUpTimer(&RTC_Handle); HAL_PWREx_EnablePullUpPullDownConfig(); HAL_PWREx_EnableGPIOPullDown(PWR_GPIO_A, GPIO_PIN_1); HAL_PWREx_EnableGPIOPullDown(PWR_GPIO_A, GPIO_PIN_7); HAL_PWREx_EnableGPIOPullDown(PWR_GPIO_A, GPIO_PIN_15); HAL_PWREx_EnableGPIOPullDown(PWR_GPIO_B, GPIO_PIN_4); HAL_PWREx_EnableGPIOPullDown(PWR_GPIO_B, GPIO_PIN_7); HAL_PWREx_EnableGPIOPullDown(PWR_GPIO_B, GPIO_PIN_13); HAL_PWREx_EnableGPIOPullDown(PWR_GPIO_B, GPIO_PIN_15); HAL_PWREx_EnableGPIOPullDown(PWR_GPI
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.