Ask questions and discuss STM32 wireless solutions and their implementation for running Bluetooth LE, Zigbee, LoRaWAN applications.
Most recent activity
Hi,I am using a STM32WB55RG MCU and I flashed a custom BLE_Ota application on it that uses the HSE clock instead of the default LSE and where the user app starts at 0x10000 instead of the default 0x7000.I am using FUS v1.2.0 and BLE Stack 1.13.0.Using the ST BLE Sensor Android application, I can find the board and for most of the images I try, the OTA succeeds completely.But for random other ones (no big obvious differences in the application), the transfer just stalls forever always at the same point, after sending the first 52824 bytes (regardless of the size of the application to be sent). I joined here a screenshot of this screen.It looks like there might be a flash writing issue at this specific flash address (0x10000 + 52824 = 0x1CE58) but for other apps of the same size/logic, it works fine. This is consistent as non-working apps will always fail at this exact point during the OTA transfer and working ones always work nicely until the end of the transfer.Is this a known issue?Be
i'm using stm32wb30, and when i try to debug a empty program with ST-LINK/V2 and i get the following message:
HiI am using STM32WL55I want to download firmware to MCU using system bootloader.I set pin4(PB6) to usart1_tx, and pin5(PB7) to usart1_rx.I installed Flash Loader Demonstrator Ver 2.8.0I set BOOT0 pin(PH13, pin19) to hight and then power up.(of course serial cable is connected with pc )I pressed Next button on Flash Loader Demonstratorbut The following message appears and nothing works.How can I use system bootloader?Please Help me.thank you.
Hello,Our Devices(50 devices) uses STM32WLE5CC and STM32WL V1.0.1 SDK. I have generated code with Lorawan. All system works perfectly for around 49 days, after that all devices get reboots.We found that it happens when HAL_Gettick() overflows(we send HAL_Gettick() value to our server on each uplink).I didn't use HAL_Gettick() function in any other function expect dding this value in lorawan frame , but uses Timer API to create timer and wake device on time.Please guide us how can I solve this issue?Currently can't generate issue again as it needs 49 days to overflow HAL_Gettick(). Is there any method I can set HAL_Gettick() time manually so I can be sure about that.Thank You
The hardware is B-L072Z-LRWAN1 kit.In STM32CubeExpansion_LRWAN_V1.3.1 I can change the Data rate and Tx power.But after update to STM32CubeExpansion_LRWAN_V2.1.0 I can't change data rate and tx power as I want.The data rate I change by edit LORAWAN_DEFAULT_DATA_RATE, LORAWAN_ADR_STATE is LORAMAC_HANDLER_ADR_OFF.static LmHandlerParams_t LmHandlerParams ={ .ActiveRegion = ACTIVE_REGION, .DefaultClass = LORAWAN_DEFAULT_CLASS, .AdrEnable = LORAWAN_ADR_STATE, .TxDatarate = LORAWAN_DEFAULT_DATA_RATE, .PingPeriodicity = LORAWAN_DEFAULT_PING_SLOT_PERIODICITY};#define LORAWAN_DEFAULT_DATA_RATE DR_5#define LORAWAN_ADR_STATE LORAMA
Hello,As underflow of sub-second register RTC_SSR of STM32WLE5CC will takes 48 days.So, please guide us any method, can be used faster overflow of RTC_SSR, in least possible time.Thank You
We have two "P-NUCLEO-LRWAN1" bought several years ago, it is obsolete from ST,I try to play with LoRa, is "I-CUBE-LRWAN" still can work with those kit?
Hi, im currently working on a project for universtiy and im quite new to stm32. I hava a sensor on my board that coummuicates via UART, were it dumps its data once per second. My problem is that the first HAL_UART_RECEIVE works as intended, but afterwards it always instantly times out, seemingly even before the set timout is over. My MCU is a STM32WL55My code is: /* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * Copyright (c) 2022 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** */ /* USER CODE END H
Hi,My custom device with custom firmware don't respond to LL_FEATURE_REQ so the device disconnect.The connectivity part of my project is very similar to the example BLE_p2p_server, the device start advertising and when I connect to it with the mobile app ST BLE TOOLBOX the connection fail, in wireshark I see the master device is sending LL_FEATURE_REQ but the device doesn't respond.Can you please help me as I'm stuck for a week now?I share with you the wireshark logs (remove the .csv extension)MCU : STM32WB55Stack: stm32wb5x_BLE_Stack_full_fw.bin v 1.13.1Thanks by advance for the help.
Hi all, I am new to Lora technology and need some guidance from experts here.I am working on B-L072z LRWAN1 module that allows to transmits messages using Lora. I was able to download and flash the example code available in LRWAN library provided by ST. I can see the messages going out using LED indicator on device as i still don't have my gateway working.I had couple of questions here.1)can i use two B-L072z LRWAN1 devices to achieve point to point communication using Lora?2)if yes,how can i achieve that?Is there any example code for that or i need to change the current example i am using to achieve what i want ?3)My assumption is that if i transmit the message from one device,it should be received by second device.Is my assumption correct?any help will be appreciated.Thanks
Hello,When I try to start a new project with stm32wl MCU, I see that LoRaWAN is locked in cubeMX. When I import one pre-configured project, I see that it is enabled, but I don't know if I have to enable some other peripherals first to enable LoRaWAN and configure it. Can someone help me understand this problem here?Bests,Isaac
Hi there,I am using the STM32WLE4C8 and I am trying to write a safe handler for the NMI interrupt. From what I can tell, the NMI interrupt is triggered by a flash double ECC error, an HSE failure, or an SRAM parity error. All of these are fairly serious and I am not sure of the best way to handle them safely. Ideally, I would like to be able to send an RF message describing the error, but this seems unlikely as it is a complex process and the flash may be corrupt, or the TCXO dead. At a minimum, I would like to write a small log entry to flash. Is this possible? Are there other actions I should be taking alongside this?Thanks,Rebecca
We are starting a project using STM32WB MCU. We would like to minimize the power consumption while in sleep, but able to wake it up via BLE command. From the document AN5071(STM32WB ultra-low-power features overview) it says "Wakeup from this mode can also be performed by the Radio sub-system." But I didn't found any further description or example about the 'Radio sub-system'. Does the 'Radio sub-system' is same as BLE?Is there any document or example we can study?
..
Hello, I need to broadcast data between multiple STM32WB55 boards in a mesh using Zigbee. So I figured trying to make the APS Message example bi-directional (so both sides can send a request) would be a good starting point. So basicly I copied every function and initialization that was missing on the Coord side from the Router and the other way around, so that both sites should be able to send a request and reply to a request.But every time I try to send a request I get the trace Message:[app_zigbee.c][APP_ZIGBEE_APS_Conf_cb][847] [M4 APPLICATION] APP_ZIGBEE_APS_Conf_cb : Error, APS confirm status = 0xa60xa6 is ZB_APS_STATUS_INVALID_PARAMETER which, in my understanding, could be anything, so this was not really helpfull to me.I tried following the steps but I can't figure out why it comes up. I compared the input data from the example Router side to my copied one on the coordinator and everything seems similiar. I also set the highest debug level and enabled Full_Trace but still n
Hi Sir:I try to builld a project with unicast/broadcast function with custom message payload on NVM example. But, I found that ZbZclMsgClient/ZbZclMsgSever can't use the following code to broadcast message.Is there any issue to broadcast by ZbZclMsgClient/ZbZclMsgSever?Best Regards,Jack Lai dst.mode = ZB_APSDE_ADDRMODE_GROUP; dst.endpoint = SW1_ENDPOINT; dst.nwkAddr = SW1_GROUP_ADDR; /* Coordinator */ APP_DBG("SW2 PUSHED (SENDING GOOD BYE TO CLIENT)"); if (ZbZclMsgServerDisplayMessageReq(zigbee_app_info.messaging_server_1, &dst, &my_second_message, NULL, NULL) != ZCL_STATUS_SUCCESS) { APP_DBG("Error, ZbZclMsgServerDisplayMessageReq failed (SW1_ENDPOINT)"); }
Hi I'm right now using the Nucleo-WB55RG as a Peripheral device to which the central (tablet) connects. I built most of my codebase with the CubeMX Code Generator – that means I defined all of my services and characteristics in the GUI choosing the BLE Server profile.Now as requirements change I need to add the capability of acting as a central device simultaneously.I know there is the option to choose "Router profile" as BLE Application type in CubeMX but that deletes all my settings for the server role and there is no option to define them again for the new dual topology.So my question is: How can I extend the existing codebase by the new central device functionality but keep the possibility to regenerate code with cubeMX. What is the best approach?I already tried to look into the P2P_Routeur example but it helped just a little.Thanks for any help :folded_hands:GreetingBenjamin
Currently, I am working with an IoT application on the board Nucleo-WL55JC1 with the sensor BME688. The example I am using is LoRaWAN_End_Node downloaded from STM32Cube MX. What I did: I initialized the the BME688 and set up some configuration after the initialization of MX_LoRaWAN_Init(). I, then, set up some configuration outside the while loop. I "extern"ed the variables below so that I can used them elsewhere:struct bme68x_dev bme; struct bme68x_conf conf; struct bme68x_heatr_conf heatr_conf;Order of initialization are below:/* Initialize all configured peripherals */ MX_GPIO_Init(); MX_LoRaWAN_Init(); MX_I2C3_Init(); /* USER CODE BEGIN 2 */ int8_t rslt = bme68x_interface_init(&bme, BME68X_I2C_INTF); rslt = bme68x_init(&bme); //Set up the measurement conf.filter = BME68X_FILTER_OFF; conf.odr = BME68X_ODR_NONE; conf.os_hum = BME68X_OS_16X; conf.os_pres = BME68X_OS_1X; conf.os_temp = BME68X_OS_2X; rslt = bme68x_set_conf(&conf, &bme); heatr_co
Any
Hi, I'm new to stm32 dev, and the stm32cubeide.We want to use the NUCLEO-WL55JC2 to try out the lorawan capabilities. No problem there, the example works just fine. ( would be interested in the LoRaWAN_End_Node_DualCoreFreeRTOS example)butThe project structure is quite different from the "normal" (i think) project structure and the files seem to be mostly linked to the project and not copies in my workspace.1 - How to copy (import/export ?) properly an example to start a new personal project?2 - How to get all the libs/hal directly to the project and not linked?If there's an official or unofficial guide for this kind of workflow I would love to rtfm.
Hi all,I try to implement a ZigBee device that acts as a Touchlink Target.My hardware is a STM32WB5MMG module. My debug UART is the LPUART1, no other UART configured.I use the STM32CubeMX 6.6.1 to generate the project and STM32CubeIDE 1.10.1 to compile. My STM32Cube firmware is STM32Cube_FW_WB_V1.14.1.I ran into severe issues which I cannot solve due to a massive lack of documentation on this topic.The project generated by the STM32CubeIDE does not compile and gives no debug trace output. This I was able to solve with the following fixes:Enable Interrupts for IPCCEnable DMA for LPUART1 RX and TXAdd a call to Init_Debug() in "app_entry.c" in between the "USER CODE BEGEIN/END APP_Init_1" commentsDelete the line "APP_DBG("Channel used: %d", CHANNEL);" in "app_zigbee.c"Now I can see at least some trace output on my serial terminal when the application starts up:[M4 APPLICATION] APP_ZIGBEE_Init [M4 APPLICATION] ********************************************************** [M4 APPLICATION] WIRE
Hi there,I am using an STM32WLE4C8 with FSK and I am trying to determine the offset between the internal carrier frequency and an incoming carrier frequency. This offset will be used to calibrate my device using a high accuracy incoming preamble and sync word. I believe I should be using the CFO registers of the radio (0x06B0 and 0x06B1), based on the function SUBGRF_GetCFO() in radio_driver.c from Semtech. However, I am getting wildly varied results from this function, even after averaging the samples. Repeated tests have resulted in sample variation of up to 10kHz. Unfortunately, there is minimal documentation on these CFO registers. They are mentioned in RM0461 with the description "actual frequency error from normalized value". They aren't mentioned at all in the SX126x datasheet.Has anyone successfully used the CFO registers before? Or have any ideas for getting a reliable offset reading? Due to the lack of documentation, I am not quite sure how to use them correctly.Thanks,Rebecc
Hello everyone,I hope are in the right forum ;)I want to migrate my existing TCP-WLAN based MCU application which acts as a data server with a proprietary protocol. The application comes very close to standard Posix TCP handling.Each connection is handled by a separate thread I would like to use the STM32WB55 for that, perhaps the module including that chip.What BLE/ bluetooth services are needed?Is there a software example matching that requirement?Best regards and thank you very much for your help,R Jordan
Hello everybody,I started to use ZigBee stack v1.14.0 and ran into an issue of adding temperature measurement server cluster (and also other clusters having reportable attributes).Our system has many running activities so for the first time I thought that crash can be caused by some other function e.g. having buffer overrun. But after some investigation found an option of reproducing the same issue with Custom Long String Cluster Client Router example.What I did is added ZbZclTempMeasServerAlloc() call and changed floating-point unit ABI to Soft in project settings. Note that in end-product the crash can be reproduced with any hard or soft option.So currently I assume that the issue nature is some kind of buffer overrun happening somewhere in STM32 IPPC library part or in some wrapper I copy-pasted from the sample mentioned above.Modified app_zigbee.c file is attached.Could anyone check the issue with adding cluster having reportable attributes and confirm or disprove my hypothesis?Is
I would like to run the STM32WB55 BLE_TransparentMode on my custom application board, but first I need to re-assign the pins used for LPUART1. However, any code generation from CubeMX, even without making any modifications, causes hundreds of compiler errors including "multiple definition of main". In fact, every function has the error that there is a duplicate definition. I have tried cleaning the build, but I get the same problem. Shouldn't I be able to generate code from the example's CubeMX .ioc file that compiles? Is there some setting or method I can change to be able to make simple modifications to this example?
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.