Ask questions and discuss STM32 wireless solutions and their implementation for running Bluetooth LE, Zigbee, LoRaWAN applications.
Most recent activity
I'm attempting to cause an STM32WL (currently on a WL55JC1 devboard) to sleep using the shutdown mode, and am running into a an issue where the MCU immediately exits sleep after it enters it.Here's what I believe to be the sleep related portions of my code - I can post more if needed:int main(void) { HAL_Init(); HAL_PWR_EnableBkUpAccess(); uint32_t tickstart = HAL_GetTick(); HAL_StatusTypeDef ret = HAL_OK; while (!(READ_BIT(PWR->CR1, PWR_CR1_DBP) == (PWR_CR1_DBP))) { if ((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE) { ret = HAL_TIMEOUT; break; } } __HAL_RCC_BACKUPRESET_FORCE(); //[JT] - Debug __HAL_RCC_BACKUPRESET_RELEASE(); //[JT] - Debug HAL_PWR_DisableBkUpAccess(); SystemClock_Config(); MX_GPIO_Init(); MX_RTC_Init(); MX_SUBGHZ_Init(); MX_USART2_UART_Init();
I have been using the STM32WB55 Nucleo board successfully to run a CoAP server on OpenThread.I have designed a custom board which is very similar to the Nucleo board (same microcontroller).I successfully updated the FUS firmware following the Release Notes documentation (flashed stm32wb5x_FUS_fw.bin at address 0x080EC000, and stm32wb5x_Thread_FTD_fw.bin at address 0x08097000).When I read the FUS infos, I get:FUS Status: FUS_NO_ERRORFUS Version: v1.2.0.0FUS OPerator: v3.1.0Now, when I run the program, it looks like function SHCI_C2_THREAD_Init() never returns, as shown in the picture attached:I connected to the UART to get the trace debug output, shown below:[M4 APPLICATION] **********************************************************[M4 APPLICATION] WIRELESS COPROCESSOR FW:[M4 APPLICATION] VERSION ID = 1.13.0[M4 APPLICATION] FW Type : Thread FTD[M4 APPLICATION] **********************************************************The above output tells me that the co-processor FW is correctly flashe
I am using an STLINK-V3SET programmer / debugger. I connect to my target (STM32WB55) on a Midatronics Sharky Mkr board. I find that if I 'blink' or move funny the debugger after connecting shuts down and displays the following under the console window:Target is not responding, retrying...Target is not responding, retrying...Target is not responding, retrying...Target is not responding, retrying...Target is not responding, retrying...Target is not responding, retrying...Target is not responding, retrying...Target is not responding, retrying...Target is not responding, retrying...Target is not responding, retrying...Shutting down...Exit.Can someone help me out here as to what to do?
..
I have a custom board with an STM32WB55CEU (512K Flash) that is failing to start the BLE stack on CPU2 in the function SHCI_C2_BLE_Init(). I believe it's failing this function because it failed to load the BLE firmware (stm32wb5x_BLE_Stack_full_fw v1.13.0) correctly. Whenever I try to load the firmware I get an error at the end saying FUS_IMAGE_NOT_AUTHENTIC or FUS_STAE_IMG_NOT_AUTHENTIC depending on whether I try it from the command line over USB or through the GUI over SWD. I can delete the firmware image without error and my FUS appears to be up to date and running before I attempt the update.I've also tried deleting the firmware by changing the RDP register from AA to BB and back. I still get the authentication error. This only happens on about half of the boards that I've loaded (13 out of 25). I feel like there is an address of setting somewhere that I'm not setting correctly and since all of the other posts I can find on this issue use the Nucleo with the 1MB flash part I'm not
US sub-bands currently make use of the Hybrid feature selected in the LoRaWAN Cube configuration, and that's a good start, but it would be useful to add a run-time API to select sub-bands, like in the US.Dana
After an export then import (whether in "file system" or "archive file") of a working project, I cannot "build" this project agin after this export/import. While the basic project (before the export and the import i.e. the displacement) works perfectly on the same computer. It looks like there is a link problem.12:39:41 **** Incremental Build of configuration Debug for project LoRaWAN_End_Node ****make -j16 all make: *** No rule to make target 'C:/Utilities/trace/adv_trace/stm32_adv_trace.c', needed by 'Utilities/stm32_adv_trace.o'. Stop."make -j16 all" terminated with exit code 2. Build might be incomplete.12:39:42 Build Failed. 1 errors, 0 warnings. (took 363ms)
I am using the VBAT pin to measure the voltage of my battery, but the readings I am getting through this pin are always off by about 3%. The datasheet (https://www.st.com/resource/en/datasheet/stm32wle5cc.pdf#page=120) claims that there could be +-10% error on the ratio, this seems WAY too high to be at all useful so I was wondering if there was anyway to internal calibrate the resistors.
ie, what drove the choice of PA12, specifically ?Using PA12 means that you have to power-up the VDD_USB domain - which, I think, adds some extra current consumption. See:https://community.st.com/s/question/0D53W00001Fncm7SAB/stm32l072-vddusb-supply-current-for-pa11-pa12So why do that?
Hi!Can someone help me to clear one moment in using LoRa.Let's say I have one RF remote control, which is pointed to 4-5 remote devices.How can my remote control distinguish replies from these 5 remote devices?Sorry if this is a dummy question. I'm new in radio.THX.
Hi guys. I am working on developing a product using STM32WB55RGV6TR. I referred to AN5042 and AN2867 to define the external crystal. Based on AN5042 if the used register setting for HSEGMC[2:0] is 0b111, the gm is 2.84mA/V. According to AN2867, the calculated gm gain should be greater than 5 to have a stable operation. Using AN5042 as reference, the crystal NX2016SA-32MHZ-EXS00A-CS06654 was used as reference design. However using the formula in AN2867 to get the gmcrit and gm gain, the calculated gm gain is less than 5 which means the crystal is not ideal for use. May I ask why this crystal was used as reference then if the gm gain >5 cannot not be satisfied? Can you advise me on this topic? Thank you.
Hi.I need to make a border router by combining stm32wb55 and raspberry pi. but i don't have any document associated this solution. in Thread_RCP example, as described below-----@par Application Description This application is used to demonstrate the OpenThread Border router feature using an STM32WB device.To play with the demo, you need a Raspberry Pi 3B (RPi) to perform the link with Ethernet network.The full setup and the associated documentations can be requested to ST on demand.-----can i get any document??
Good afternoon....I am new to STM and BLE. I have a while loop in main where I am checking conditional flags that could have been set in IRQs. All seems to work nicely. I then begin the process of implementing the BLE stack for peripheral. After watching a few videos I configured via CubeMX BLE. I am finding that after I implement this my other code stops working. I found that if I comment out MX_APPE_Process(); in the while loop in main all works again. So it appears to me that this process has it's own 'forever' type loop that never leaves once it goes here. Can someone point me to information that may explain how to add my flags into the sequencer piece of the puzzle as this seems like the path I might have to go??? Unless someone has some suggestions on how to do this? I know very little with BLE code implementation so I appreciate any pointers.Thanks
How do I find the real bluetooth address of a connected android device? I find the address in the mobile phone / tablet from the settings, but in the stm32wb55 program event HCI_LE_CONNECTION_COMPLETE_SUBEVT_CODE meta_evt->data structure, the address is different. The address changes after each connection (for security reasons). Is it possible to find this real address in the stm32wb55 firmware?
Hi, I can see there is data logs for Sensor tile box and STWINKIT1. For predictive maintenance using STWINKIT1B, we can do direct learning also means it stores the data in SD card, am I right?If so, using Nucleo Board(Nucleo- WL55JC), when we do OCR, is it possible to do direct learning(images) like how we do for vibration sensors? Please help.Regards,Shankari.
Hi,I want to calibrate the RTC. So I need one timer to count the pulses from RTC.The RTC clock source.(LSE external oscillator 32768 Hz) needs to be the clock source for one of the timers. In the reference design (RM0434) page 682 there are multiple clock source but I don't see the RTC_CLK.
Hello! I'm trying to run the BLE Heart Rate application on my STM32WB.I followed the guides and YT videos, but whenever the HW_TS_RTC_Wakeup_Handler interrupt is triggered, the device goes into a Hard Fault state at ' __HAL_RTC_WRITEPROTECTION_DISABLE( phrtc );'I've tried several things to get the fault to clear such as replacing '_HAL_RTC_WRITE...' with 'LL_RTC_DisableWriteProtection(RTC); // This works! but then a hard fault is generated at '_HAL_RTC_WAKEUPTIMER_DISABLE'I'm not quite sure, but I have a sneaky suspicion that that the phrtc pointer may not be correct...Has anyone run into this issue before? I also tried disabling RTC tamper, but this causes the interrupt to just never be called.Thanks! :)
Hey All, I want to add encryption to the existing STM32WB55 MAC 802.15.4 FFD/RFD examples.How could i ensure encryption and integrety of my data. As i consulted the IEEE 802.15.4 standard, I can use the ENC-MIC-128 for both encryption and integrity, by setting the 'security enabled' field and setting the Auxiliary Security Header 'ASH' fields accordingly.My question is how exactly to do that, because not all PIB attributes concerning the ASH are available on the ST implementation for mac_802.15.4 ?Also there is the concept for the Security Table that stores different Keys, i couldn't find any related fields or PIBs.Please can you provide me with how to add security to existing STM32WB55 examples.
Hi!I am currently trying to build a GPS sensor that communicates over I2C with the nucleo Board, but i'm not sure about the documentation. So I started a new CubeMX Project based on the NUCLEO WL55JC1 and, according to the software (as shown in pic 1), the I2C1 Pins are PA10 (SDA) and PB8 (SCL). However, according to the manual the pins should be PA11 and PA12, wich would be pin 9 and 10 on the CN5 connector (shown in pic 2). So.. wich one's correct?Thanks in advance!
Hi, Without making any changes and making a "clean" every time, I try this example (PWR_STOP2_RTC in CubeWL latest version). Unfortunately, often this gets stuck in MX_RTC_Init(). Still, this example with this same board works very well with MDK-ARM. Why ? (I've already run other examples with Cube IDE)Thank you by advance
Hello, I am working on an STM32WB55CG project and testing it on the NUCLEO-WB55RG board. I would like to do the firmware update over the ST BLE sensor app. I have loaded the bootloader program provided by st that is BLE_OTA file from the example. I have made the necessary changes to the user application such as editing the linker script, implementing reboot request characteristics, checking magic keywords, and so on. the user application is something similar to the heart_rate_ota example. I am able to flash this file using the st BLE sensor app. Since my app and code don't have a reboot button on the app similar to the heartrate_ota example I would like to do it with a user button. I am not able to figure this out. I tried different methods and doesn't work. my code in the interrupt look like this. This code only reset the board. what all changes need to be done for deleting the sectors and get an advertisement from the ota bootloader program. For example, when I press the button the e
/** * @brief Check if the Coprocessor Wireless Firmware loaded supports Thread * and display associated informations * @param None * @retval None */ void CheckWirelessFirmwareInfo(void) { WirelessFwInfo_t wireless_info_instance; WirelessFwInfo_t* p_wireless_info = &wireless_info_instance; if (SHCI_GetWirelessFwInfo(p_wireless_info) != SHCI_Success) { APP_BLE_LLD_Error(ERR_BLE_LLD_CHECK_WIRELESS, 0); } else { switch(p_wireless_info->StackType) { case INFO_STACK_TYPE_BLE_PHY_VALID : break; default : APP_BLE_LLD_Error(ERR_BLE_LLD_CHECK_WIRELESS, 0); break; } } }After debug, it was found that the CheckWirelessFirmwareInfo() function reported an error, and the StackType read by the SHCI_GetWirelessFwInfo() function was incorrect.
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.