Ask questions and discuss STM32 wireless solutions and their implementation for running Bluetooth LE, Zigbee, LoRaWAN applications.
Most recent activity
Hi,Requirement: Use LSE pins: PC14/PC15 as GPIO Output.MCU: STM32WBA52CGU6Issue: Output voltage not sustain at 3.3V but getting 3.152V (GPIO connected circuit consumes 300uA only).- For clean firmware, generated firmware based on IOC, configured only these two pins as output, push-pull, High state.- Attached related IOC-file, debug-SFR-states-screenshot and generated-project files.I thinks that this is STM MCU level limitation and STM-Team must provide errata for same with workaround-status.Please guide me in case anyone have known workaround.Thanks
Hi Enthusiastic,MCU: STM32WBA52CGU6STM32CubeMX: 6.9.0STM32CubeIDE: 1.12.0Toolchain - GNU Tools for STM32: 11.3rel1SDK - STM32CubeWBA: V1.1.1Query related to maximum ADC-Clock-Frequency & maximum sample-per-second with 12-Bit Resolution ADC.I have go through Datasheet, Reference-Manual & ST-Community,As per mentioned and gathered information:1. Not clearly Maximum value for ADC-Clock-Frequency in any source.2. As per datasheet: DS14127 Rev 7: Page 47: https://www.st.com/resource/en/datasheet/stm32wba52ce.pdf Note: The ADC4 analog block clock frequency after the ADC4 prescaler must be between 140 kHz and 55 MHz.3. As per datasheet: DS14127 Rev 7: Page 45: Table 14: https://www.st.com/resource/en/datasheet/stm32wba52ce.pdf Maximum sampling speed for 12-bit resolution: 2.5 Msps4. As per Reference Manual RM0493 Rev 5: Page 636: https://www.st.com/resource/en/reference_manual
I am using smt32wba52cgu6 MCU in my project. In this project i want to use SD card module but since the module has no FAFTS middleware in STM32Cube Mx as well as in STM32cube IDE. I am using the libraries available in the git hub for fafts (https://github.com/STMicroelectronics/stm32-mw-fatfs) in IAR embedded workbench but there is problem while uploading the code (i.e. run time error). Please guide me how could i do that and properly insert these libraries in my program or if i am wrong please share me how to go properly.
Hi,I am using the example ble_p2pServer_ota with STm32WBA55. I would send a packet between a client and a server with more than 20 bytes.Here is part of the code from p2p_server.c:When i debug the code, the value of Attr_Data_Length is correct until i send up to 20 bytes. If i want to send 25 bytes, the value of Attr_Data_Length remains at 20. case ACI_GATT_ATTRIBUTE_MODIFIED_VSEVT_CODE: { /* USER CODE BEGIN EVT_BLUE_GATT_ATTRIBUTE_MODIFIED_BEGIN */ /* USER CODE END EVT_BLUE_GATT_ATTRIBUTE_MODIFIED_BEGIN */ p_attribute_modified = (aci_gatt_attribute_modified_event_rp0*)p_blecore_evt->data; notification.ConnectionHandle = p_attribute_modified->Connection_Handle; notification.AttributeHandle = p_attribute_modified->Attr_Handle; notification.DataTransfered.Length = p_attribute_modified->Attr_Data_Length; notification.DataTransfered.p_Payload = p_attribute_modified->Attr_Data; Then i cheched the value of ATT_MTU size in file app_config.h.
Hi.I am looking for some info relating to the factory bootloader in the STM32WL33. In a nutshell, I dont need it nor want it. My application will require a custom bootloader that will read program from EEPROM over SPI.I have discovered from a previous post that to protect the chip from external programming, one can disable the SWD pins in the registers.However looking closer, the factory bootloader is still accessible by pulling up PA10 (BOOT0). This means that using openly available tools someone could reprogram my device. Not something anyone wants im sure!So i have been looking for a way to disable it or delete it. Of which i appear to have failed to do. So i looked for some other reasonable measure.The only piece of info i can find useful to me, is that the bootloader has a secure boot element to it, in that a Key can be entered into a OTP area.Validation of the key is then required in order to program the flash and even to run the loaded application on POR.The kicker....These
I am using Wio E5 board for a LoRawan project and running the project FreeRTOS LoRa Wio E5 in STM32CubeIDE. When building the project as it is without changing anything in CubeMX it works fine. I could change the EUI values, region, etc.. in the respective files and no errors after build and my board joins and sends data to TTN successfully.When I try to enable I2C for my sensor communication or anything for the case in Cubemx and build the generated code, all the library references which were previously there just go away and so it throws errors such as no file or directory, macro, structure,etc.. exists. Every library folder path is included for the compiler and in paths and symbols, and also all the source folders are well included in the source locations which is why it worked without changing anything using CubeMX.What might be the issue?
When I use STM Programmer and insert code to WB55CG dongle... Warning 0x495 device unconnected phase keep poping up...I want to know the reason why this phase pop up...
Hello Community,Greetings of the day.I'm using the Nucleo WB55RG board. I want to turn ON the notification and see the notification my st-BLE mobile app as soon as the data of the particular variable changes. I set the service and its characteristics in the project's .ioc file. But my requirement is that I should get the notification on the BLE app as the data in that variable changes. SO HOW DO I ASSIGN a NoTiFiCaTioN TO MY PARTICULAR Variable. @STTwo-32 Could you please help me in this matter. I explored the wb55rg's reference manual, different User Manuals But NOT found helpful. So your Help is appreciated.Thank You. Regards,OS.
Hello there,I'm trying to execute the BLE_HeartRate Service example on WB55rg Nucleo board. Initially I successfully run the code.Later I'm trying to download the same code again BUT I'm getting following message repeatedly in the CONSOLE:Download verified successfully Target is not responding, retrying...Target is not responding, retrying...Target is not responding, retrying.. Also, bi-color LED i.e. LED6 on the board is not turning RED at the end. I tried executing my other projects and all are downloaded properly with last message as:Download verified successfully Shutting down...Exit. BUT Why this BLE_HeartRate is creating an issue, I'm unable to figure out.Your help is very much appreciated.Thank You.
Hello.I have my custom PCB with STM32WB55CEU. This board is tested so I m able to connect and sending data beetween "my PCB" and Smartphone.Now I have new goal. The goal is to start scan process for nearby devices. I would like to hit breakpoint which is illustrated by the red arrow in the photo below. So I created new project, configure as Client profile with all default values. Is this configuration sufficient for the system to fulfill its purpose or should I add extra code to this project?
Hi I am hoping someone might be able to help me with some calculations.I am assessing the STM32WL33 for use in a product.One of the peripherals will be an EEPROM, an M95P32.The EEPROM supports Dual/Quad Output (Read) However the STM32 does not appear to have a hardware QSPI.So i am trying to determine whether to implement a Quad Read in software (bitbanging).Can anyone help me to understand the max data transfer on 4 wire SPI using hardware, Vs that of Quad Read using software. Many thanks
I am adding services to an existing WB55 BLE project with a small number of services.As I increase the number of services, aci_gatt_add_service() eventually returns 0x98, BLE_STATUS_OUT_OF_MEMORY. (I note that 0x98 is not shown as a valid return value in the manual) I have tried adjusting CFG_BLE_NUM_GATT_SERVICES , allowing for the fact that the GAP and GATT services are included automatically, but it doesn't seem to make any difference. I've also tried adjusting CFG_BLE_NUM_GATT_ATTRIBUTES and CFG_BLE_ATT_VALUE_ARRAY_SIZE.Can anyone suggest what to look at next?
Hi,I use the example BLE_p2pServer_ota and want to transfer 20 bytes of data to UART2 within a characteristic. But i only get the value 1 for sizeof(p_Notification->DataTransfered.Length). case P2P_SERVER_UART_C_WRITE_NO_RESP_EVT: /* USER CODE BEGIN Service1Char3_WRITE_NO_RESP_EVT */ sizeOfPayload = sizeof(p_Notification->DataTransfered.p_Payload); if(HAL_UART_Transmit_DMA(&huart2, p_Notification->DataTransfered.p_Payload, sizeof(p_Notification->DataTransfered.Length)) != HAL_OK) { Error_Handler(); }
I've enabled STOP2 mode with the below code statement void PWR_EnterStopMode(void) { /* USER CODE BEGIN PWR_EnterStopMode_1 */ UART_WakeUpTypeDef WakeUpSelection; WakeUpSelection.WakeUpEvent = UART_WAKEUP_ON_STARTBIT; if (HAL_UARTEx_StopModeWakeUpSourceConfig(&hlpuart1, WakeUpSelection)!= HAL_OK) { Error_Handler(); } __HAL_UART_ENABLE_IT(&hlpuart1, UART_IT_WUF); HAL_UARTEx_EnableStopMode(&hlpuart1); /* USER CODE END PWR_EnterStopMode_1 */ /** * When HAL_DBGMCU_EnableDBGStopMode() is called to keep the debugger active in Stop Mode, * the systick shall be disabled otherwise the cpu may crash when moving out from stop mode * * When in production, the HAL_DBGMCU_EnableDBGStopMode() is not called so that the device can reach best power consumption * However, the systick should be disabled anyway to avoid the case when it is about to expire at the same time the device enters * stop mode (this will abort the Stop Mode entry). */ HAL_SuspendTick(); /**
I am testing Lora-E5 mini with FreeRTOS from LoRaWan-E5-Node-qian example in STM32CubeIde . All works fine except the clock (MSI) is only 4 MHz. This causes that e.g. osDelay(100) takes 4 s.I have been trying to change MSI to HSE 32 MHz, but no luck. Does someone know, how to change the clock.There is an ioc file, but use of STM32Cube will ruin the project.
Hi,We have developed wireless temperature sensor using STM32WL5MOCH6S module , it is fully battery operated device and Battery is connected directly to supply pin of the module, in this we would want to the read battery voltage , is there any register or command available for reading supply pin to read the battery voltage or any other method to read the battery voltage?Kindly help us in this matter.
I'm trying to import the sample project BLE_Skeleton. On build I get the following error:fatal error: osal.h: No such file or directoryThe same error occurs for other BLE sample projects.The error also happened for BLE_p2pServer but was fixed.When can the problem be fixed for the other sample projects ?
I am currently working with the STM32WB55RGV6 MCU and utilizing the BLE functionality provided in the BLE_p2pserver example (STM32Cube_FW_WB_V1.18.0) from ST. However, I am facing a limitation where the data packet size is restricted to 20 bytes, preventing me from sending larger amounts of data.I have come across forums suggesting that the MTU size can be increased to enable higher data throughput. However, I am not very experienced in writing or modifying the software, and I need step-by-step guidance to implement this change correctly.I also found Application Note AN5289 and investigated the section on "How to maximize data throughput". While the document provides suggestions, I am unsure how to apply them to my code.Could you please provide clear, step-by-step instructions on how to:Increase the BLE MTU size,Apply the recommendations from AN5289 to maximize the BLE throughput,Make the necessary modifications to the BLE_p2p
Is support for the nucleo-wb15cc already in Zephyr or does it need to be added? I am new to zephyr and would like to avoid re-inventing the wheel if possible. From a setup I just created today (so should have the latest released code) I didn't see the wb15 listed:(.venv) g:~/zephyrproject/zephyr$ west boards | grep -i -e stm32 -e nucleo | grep -i wbnucleo_wba55cgnucleo_wb05kzstm32wb5mm_dknucleo_wb09kestm32wb5mmgnucleo_wb55rgnucleo_wba52cg
Upon triggering a notify event calling the following function "Custom_STM_App_Update_Char()", the STM32 successfully sends data, which I receive on my iPhone using ST BLE Toolbox. However, after that, the STM32 becomes unresponsive to further BLE requests. I can see that the system hasn't crashed, as it is continusouly calling "UTIL_SEQ_Idle".I am using a BLE application: server profile with a custom profile. I have already seen the other forum post titled "STM32WB55 Stops handling events after sending a notification" which sounds similar to this, but I am not deliberately pausing or stopping the sequencer at any point (as far as I'm aware).Another unusual thing I've noticed, is that every other characteristic has been given a handle for the function "Custom_STM_Event_Handler(void *Event)" in "custom_stm.c", which I am able to use to call other functions to handle thos events, however, for my notify event, I can only see handles for NOTIFY_ENABLED_EVT / NOTIFY_DISABLED_EVT which aren't
Hi, I developed an application using the stm32wb5mm-dk. Everything works until I try to use an external 5V power supply. In fact, I change the position of JP2 on position 7-8 (to select 5V EXT) and I soldered SB4. However, when I supply the board through CN8, LD2 is on, JP1 is at 3.3V but the application on the STM32WB seems not to being run. If I provide power also through the USB STLK, it seems to start running. Is there any other JP or SB to adjust for extenal 5V supply?Thanks.
Hi,i am working with BLE_p2pServer_ota example as a template and i want to send 5 Bytes of data from the client (nRF Connect App on the cellphone) to the server (NUCLEO-WBA55). However, I am having trouble receiving more than 2 bytes.1. I made a new characteristic in CubeMX with a value length of 5 bytes and i set the length characteristic to variable because i want to send also less then 5 bytes: 2. I started the debugger and set a brakepoint in p2p_server_app.c:3. I checked the transmitted values in expression view:Everything seems to be fine up to this point.But when I try to send 3, 4 or 5 bytes, nothing happens and the program does not stop at the breakpoint. It seems that the change to 5 bytes was not reflected in CubeMX.And when I look at the function aci_gatt_add_char() in the file p2p_server.c, I find here in the 4th argument SizeUart_C which has the value 2: /** * UART_C */ COPY_UART_C_UUID(uuid.Char_UUID_128); ret = aci_gatt_add_char(P2P_SERVER_Context.P2p_serv
Hi,in my low-power STM32WL55 application I would like to use the LPUART to receive data (no transmission) while the device is in STOP2 mode. I have two questions about this:The reference manual states:"Before entering low-power mode, make sure that no LPUART transfer is ongoing. Checking the BUSY flag cannot ensure that low-power mode is never entered when data reception is ongoing."Then how do I check for an ongoing data transfer? The external device connected to the LPUART sends data "spontaneously" so I can't control when this happens, there might be a byte arriving just when I'm entering STOP2 mode. What happens if a reception is ongoing when the device enters STOP2 mode?I would like to use the HSI oscillator for LPUART reception in STOP2 mode (automatically turning it on when needed). But I would also like to use MSI after wake-up in order to get better flexibility for the CPU frequency (achieving frequencies > 16 MHz, or achieving lower power consumption) by setting STOPW
Hello... Here I am developing a battery based IOT-STM32 based project and I am unable to read and write ADC using this new chip STM32WL5MOCH6S. Please provide me any detailed document related to ADC or Any kind of example code which I can check in my Microcontroller. Thanks & Regard
Hi, I am developing on the Nucleo-wl55jc2 development board and I am trying to program the sub-GHz radio to transmit a continuous wave (not sending data packets, just a waveform). I have attached my code below along with a zip of the project. This code has been simplified from the 'SUBGHZ_Tx_Mode' example program that can be generated using the example selector when generating a new project. I have tested both the 'SUBGHZ_Tx_Mode' example program and my code with a spectrum analyzer and a software-defined radio, and have not been able to pick up a transmission on either. Any help is appreciated. - Kevin #define RADIO_MODE_STANDBY_RC 0x02 #define RADIO_MODE_BITFIELD 0x70 uint8_t RadioCmdSetFreq[4] = {0x1D, 0xCD, 0x65, 0x00}; // 500,000,000 uint8_t RadioResult = 0x00; uint8_t RadioParam = 0x00; uint8_t RadioMode = 0x00; uint8_t RadioStatus = 0x00; int main(void) { HAL_Init(); MX_SUBGHZ_Init(); /* Set Sleep Mode */ if (HAL_SUBGHZ_ExecSetCmd(&hsubg
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.