Ask questions and discuss STM32 wireless solutions and their implementation for running Bluetooth LE, Zigbee, LoRaWAN applications.
Most recent activity
Hey community, it took me some time to track this bug down because I thought I wasn't implementing the sequencer library correctly and was looking at my own code. Turns out, there is a bug with stm32_seq.c. Every time I ran a task with UTIL_SEQ_SetTask() with a priority over 2, the STM would get a hard fault. Turns out that setting SEQ_CONF_TASK_NBR and SEQ_CONF_PRIO_NBR, DOES NOTHING because stm32_seq.c is actually using UTIL_SEQ_CONF_TASK_NBR and UTIL_SEQ_CONF_PRIO_NBR. There is a discrepancy between the defines of the two files. This is just am FYI for anyone using the sequencer utility library. Replacing SEQ_CONF_TASK_NBR with UTIL_SEQ_CONF_TASK_NBR and SEQ_CONF_PRIO_NBR with UTIL_SEQ_CONF_PRIO_NBR in utilities_conf.h will solve this problem.
Hi, I'm working with STM32WB5MM, the application is a ble application with freertos.I have this issue, at boot, on custom board the cpu2 not start every time, so, when this happend APP_BLE_Init() is never called, and because at boot is request to start advertising when I try to start advertising it block and the board is reset by wdt. When it enter in this issue it never unblock. The same firmware could work fine if I try to cut off Vcc and plug in it again, so I can block or unblock the firmware quite quickly by cut off and pugin the power line. If I try to debug in with debugger it unblock, it never block under debug ifI try to put a breakpoint before or after cpu2 initiliazzation so I can't understand what happend, if I try to run code withouth breakpoints it block but I can't understand where it block.If I try run the same code on demoboard STM32WB5MM diskovery kit it never block if I press reset button, seem impossible to block it by reset button, but it blcok if I plug and u
..
Hi - I'm having a real struggle with the SAI peripheral. I've tried on both H742, and WB55 module, and am running into the same problem.I have the source set up in the clock config (Tried both PLL1 and PLL2, and using PLLSA1P on WB), and made sure I correctly configured and enabled the appropriate PLLs). Enabled the SAI peripheral, with what seemed like reasonable defaults in the SAI registers. Configured the SAI pins as AF6. (PE4, 5, 6 on H7) Anywhere you'd troubleshoot first?Surface level problem: SAI SA_xDR reads 0. Deeper: Scope shows no signals on the SCK line. Most fundamental: The SAI_xCR1, SAIEN field shows 0, even if read immediately after setting itHere's a selection of register readings from H742 after (attempting to) enabling SAI1:SAI1 source (RCC_D2CCIP1R, SAI1SEL): 1 (PLL2P)PLL2 ready (RCC_CR, PLL2RDY): 1 (Ready)PLL2P enabled (RCC_PLLCFGR, DIVP2EN): 1 (Enabled)SAI periph clock enabled (RCC_APB2ENR, SAI1EN): 1 (Enabled)SAI1 mode(SAI_ACR1, MODE): 1 (Master receiver)SAI1 ena
I am following the You tube videos but cannot get the unit to respond (I get AT_ERROR when issuing an AT command.) are there any good tutorials on what software I need, how to setup the units, create/download new projects, plus connect the Gateway?https://www.youtube.com/watch?v=b5phAlGOZdM&list=PLnMKNibPkDnECerjxSNJzMJ9njyqovVB9&index=2
STM32WB.V11.1function: aci_gatt_add_service In the function we copy the Service_UUID struct to buffer according to size.UUID can be either a short 2 BYTES or long array of 16 BYTES.Issue: In case it is 16 BYTES, It looks to be copying 2 BYTES from the short UUID , and 14 BYTES from the long UUID.Here:Osal_MemCpy( (void*)&cp0->Service_UUID, (const void*)Service_UUID, size );Is it a bug? or am I missing something?Full function:tBleStatus aci_gatt_add_service( uint8_t Service_UUID_Type, const Service_UUID_t* Service_UUID, uint8_t Service_Type, uint8_t Max_Attribute_Records, uint16_t* Service_Handle ) { struct hci_request rq; uint8_t cmd_buffer[BLE_CMD_MAX_PARAM_LEN]; aci_gatt_add_service_cp0 *cp0 = (aci_gatt_add_service_cp0*)(cmd_buffer); aci_gatt_add_service_cp1 *cp1 = (aci_gatt_add_service_cp1*)(cmd_buffer + 1 + (Service_UUID_Type == 1 ? 2 : (Service_UUID_Type == 2 ? 16 : 0))); aci_gatt_add_service_rp0 resp; Osal_MemSet( &resp, 0, sizeof(resp) ); int index_input =
My question is about STM32WB series. I have documentation and examples, but it's still not so good. Its very complicated topic(for me). I want to build simple tiangulation navi system based on BLE signal strength.Yes, i have example for STM32WB, but its working as a beacon, not beacon reader.I can't even change the advertising frequency. I found two topics, where people had same problem, but nobody helped them.Whitch example will be the best for beacon scanning?
What is the production process (nm) of the STM32WL MCU's ? We are looking at designing a system that will have to operate in a possible radiation encvironment and the nm size of the process will have a bearing on this.
Hi, I have a Nucleo-wl55jc2 (US Low Band 433 Mhz) Would it be possible to remove the RF filters so I can run it on high frequences (EU 868 Mhz) ? Thanks Olivier
I had STM32WB55CGU7 chips with original factory FUS version 0.5.3. I upgraded it to version 1.0.1 successfully, then I tried to upgrade to latest released version 1.0.2, but I get "Error: Firmware not authentic!"
Hi all,I am trying to use I2C DMA as Master and UART DMAMy code isvoid HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim){ if (c == 1) { HAL_UART_Transmit_DMA(&huart2, (uint8_t *)b, 8); } else { /* I2C Transmit code */ } c = 1 - c; }and which I tried are (instead of /* I2C Transmit code */) :// 1. polling, it worked HAL_I2C_Master_Transmit(~~, 50); HAL_I2C_Master_Receive(~~, 50); // 2. DMA, not worked HAL_I2C_Master_Transmit_DMA(~~); HAL_I2C_Master_Receive_DMA(~~); // 3. Mem read dma, not worked HAL_I2C_Mem_Read_DMA(~~); // 4. Seq DMA, not worked HAL_I2C_Master_Seq_Transmit_DMA(~~, I2C_FIRST_FRAME); HAL_I2C_Master_Seq_Receive_DMA(~~, I2C_LAST_FRAME);I have no Idea whats wrong and how to solve itthanks
Hi all,I am developing an application on the STM32WLE5CC based on the existing Nulceo boards for the JC part. First, the BoM provided for the JC reference is completely incorrect, it doesn't match the RF network design note, it's own schematic or the CC reference design. I fixed this by following the RF app note. However, my PCB still does not work (the code works on the Nucleo board) and I find the CC ref design different to the JC. My question is, how important are the values for the RF matching network. If I just want something to work over the distance of the desk, would 20% be okay? Just to get an idea.Also, can anyone recommend a good way of debugging why my PCB doesn't work. The schematic is correct (checked 100 times) and so are all the values according to the CC ref design. The code works on the Nucleo board so I know that isn't the issue. Many thanks
Hi there,In short I am trying to use the Nucleo-68 board to scan for Cadence Sensor devices with UUID 0x1816 which I've managed successfully. I get a list of all available devices and their addresses (double checked against a report generated through my phone). However the issue arises when I issue a connect request - I do get a BLE_STATUS_SUCCESS (Green LED on) but the event callback hci_le_connection_complete_event() is never actually called because the Blue LED never turns on.// Snippet of Connect_Request() if (result == BLE_STATUS_SUCCESS) { /* USER CODE BEGIN BLE_CONNECT_SUCCESS */ HAL_GPIO_WritePin(LED_GREEN_GPIO_Port, LED_GREEN_Pin, GPIO_PIN_SET); /* USER CODE END BLE_CONNECT_SUCCESS */ BleApplicationContext.Device_Connection_Status = APP_BLE_LP_CONNECTING; } else { /* USER CODE BEGIN BLE_CONNECT_FAILED */ HAL_GPIO_WritePin(LED_RED_GPIO_Port, LED_RED_Pin, GPIO_PIN_SET); /* USER CODE END BLE_CONNECT_FAILED */ BleApplicationContext.Device_Connection_Stat
Hello!In my app there are the master (stm32wb55) and up to three slaves (stm32wb55 too). In addition to this I need to scan the air permanently. At some point the ble stack of the central stops responding. It means that it becomes impossible to start scanning and the central stops receiving notification from slaves. This situation could be fixed by reinitialisation of the stack ( APP_BLE_Init() command) but I need to know how to prevent this. Why could this be happening?Maybe someone had the same issue?Best regards,Den
I need to advertise sensor values continuously
I want to find a similar code but I can't find it:loudly_crying_face:
Hi dark wizards of embedded electronics, its me again, javi.This time im trying to use the STM32CUBEMONITOR-RF with my STM32WB55 Nucleo pack.I cannot make it work with my NUCLEO BOARDOnce i flash the USB DONGLE (STM32WB55CGU6) with the \STM32Cube\Repository\STM32Cube_FW_WB_V1.12.1\Projects\P-NUCLEO-WB55.USBDongle\Applications\BLE\BLE_TransparentModeVCP I am succesfully able to use STM32CUBEMONITOR-RF But when im trying to use the NUCLEO BOARD (STM32WB55RGV6)....I flash the \STM32Cube\Repository\STM32Cube_FW_WB_V1.12.1\Projects\P-NUCLEO-WB55.Nucleo\Applications\BLE\BLE_TransparentMode\Binary\BLE_TransparentMode_reference.hex And no response whatsoever, it doesnt work.... I am clueless why, maybe im flashing the wrong firmware in the nucleo board?Maybe the coprocessor .bin is corrupted?
I am using nucleo-stm32wb55 board, I am working on BLE peripheral and I am working on MEMS interface, I am using STM32 demo code, where OPUS is used to convert the PDM to PCM . I modified the demo code and added LCD interface and it is working, I am able to write the message like bluetooth connected and blutooth standby mode on my LCD board, I am using ST7789 LCD module, Now I want to display the time using RTC on LCD, I used Systick interrupt, Set a flag, used RTC interrupt, used the RTC_setdate function in infinite loop(above Seq_Run()).When I tried the above methods, RTC worked, but it is taking 15 seconds to update the value (it should have changed it to 1 second), So I believe the problem is with the sequencer has it is taking time for scheduling MEMS task and bluetooth task, so I want to create another task,so I want to add this RTC code for execution, Please help me how to implement this.Thank you!
Hi everyone,I have created a minimal new project for my board based on STM32WLE5C8.After enabling Sigfox into the .ioc view, in my main.c I have : HAL_Init(); SystemClock_Config(); sfx_rc_t SgfxRc = RC1; int ret = SIGFOX_API_open(&SgfxRc);However it fails with ret = 0x10.This code corresponds to SFX_ERR_API_OPEN (Error occurs during the opening of the Sigfox Library : check the manuf error code)But as I only get 0x10, no manufacturer code, I can't get any informations about what failed.What could be the reason of SIGFOX API opening failure ?Do I have some other configurations to do into the .ioc ?Thank you per advance !
Let me see if I've understood. I'm using STM32CoreWL for LoRaWAN end-node implementation, where I need to insert my sensors. As specified on AN5406, the low power modes are activated by UTIL_SEQ_Idle(), when the sequencer has nothing to do. So there are no active low power modes processes called by the sequencer (!?). My sensor reading routine is called inside SendTxData(). I need a pulse with a defined duration. The routine sets the needed GPIO but it doesn't reset it at the right times like if the timer was ignored.All work if I set #define LOW_POWER_DISABLE to 1. I'm using TIM16 for a resolution of uS.Even reading (and reading again) the application notes regarding sequencer and low power modes, I'm not able to control my applications.How to disable (or manage) temporally, for the time needed, the low power mode? I need help.F.
Hello, I am developing STM32L072.The library is using ""I CUBE LRWAN".Inside the library, I have created the part that enters the OFF mode (STANDBY mode.But the MCU doesn't consider the RTC and just keeps rebooting.What else should I consider?void PWR_EnterOffMode(void){ /* USER CODE BEGIN EnterOffMode_1 */ UTILS_ENTER_CRITICAL_SECTION(); if(__HAL_PWR_GET_FLAG(PWR_FLAG_SB) != RESET) { /* Clear Standby flag */ __HAL_PWR_CLEAR_FLAG(PWR_FLAG_SB); } DBGMCU->CR = 0; /*SX1276 DEINIT*/ Sx_Board_IoDeInit(); Gpio_PreInit(); Gpio_STOP_PowerHold_Init(); HAL_RTCEx_DeactivateWakeUpTimer(&hrtc); HAL_RTCEx_SetWakeUpTimer_IT(&hrtc, 0x2616, RTC_WAKEUPCLOCK_RTCCLK_DIV16); /* Clear all related wakeup flags */ __HAL_PWR_CLEAR_FLAG(PWR_FLAG_WU); /* Enter the Standby mode */ HAL_PWR_EnterSTANDBYMode(); UTILS_EXIT_CRITICAL_SECTION(); /* USER CODE END EnterOffMode_1 */}
Saludos!Im new to STM32W series.With two P-NUCLEO-WB55 boards on my table im trying to run the BLE_CableReplacement example.It doesnt work out of the box so i opened the readme.txt @par How to use it ? This application requires having the stm32wb5x_BLE_Stack_full_fw.bin binary flashed on the Wireless Coprocessor. If it is not the case, you need to use STM32CubeProgrammer to load the appropriate binary. All available binaries are located under /Projects/STM32_Copro_Wireless_Binaries directory. Refer to UM2237 to learn how to use/install STM32CubeProgrammer. Refer to /Projects/STM32_Copro_Wireless_Binaries/ReleaseNote.html for the detailed procedure to change the Wireless Coprocessor binary.I found the binaries already But as i try to follow the release note instructions i get stuck in STEP3 There is no "Start FUS" button anywhere, am i doing the raindance wrong?Also if i try to "firmware upgrade" anyway is asking me for the start flash addr, thats not in any STEP
Hi Guys, as I am new to STM and STM32CubeIDE, I am wondering how can I get the LoRaWAN_End_Node-example to work on our custom chip STM-chip STM32WLE5JC. Basically, I want to re-configure the project via the "Device Configuration Tool" so that it works on our custom chip. Is it possible?
TLDR: Is there a simple way (or at least clear step-by-step instructions) to reset the P-NUCLE-WB55 back to the firmware it was delivered with?Full:I have a P-Nucleo-WB55 and am trying to develop a project with it. I ran the "Getting Started" demo on the back of the pack and it worked brilliantly, so I got in with my project development. This started with a simple project to run a sensor using the SPI interface which worked fine. I then went to try some BLE development which is why I got this board. Unfortunately, this is where my problems start. I was trying the BLE HeartRate demo and no matter what i did I couldn't get it to work. I followed the instructions for the FUS and BLE stack update and spent the next 24 hours thinking I had bricked the board as it would no longer do anything (I followed the ST instructions verbatim). I finally managed to get the update to work by using a mix of instructions from here and reddit on top of the ST release notes.Anyway, I now have the most rect
Hello I am using stm32wb55 nucleo i am tring to delete the firmware but it shows errorC:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin>STM32_Programmer_CLI.exe -c port=SWD -fwdelete ------------------------------------------------------------------- STM32CubeProgrammer v2.6.0 -------------------------------------------------------------------ST-LINK SN : 066CFF303430484257141344ST-LINK FW : V2J37M26Board : P-NUCLEO-WB55Voltage : 3.25VSWD freq : 4000 KHzConnect mode: NormalReset mode : Software resetDevice ID : 0x495Revision ID : Rev YDevice name : STM32WBxxFlash size : 1 MBytesDevice type : MCUDevice CPU : Cortex-M4Warning: Option Byte: nSWboot0, value: 0x0, was not modified.Warning: Option Byte: nboot0, value: 0x1, was not modified.Warning: Option Byte: nboot1, value: 0x1,
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.