Ask questions and discuss STM32 wireless solutions and their implementation for running Bluetooth LE, Zigbee, LoRaWAN applications.
Most recent activity
Dear STM32WL community,I have completed a port of the ST LoRaWAN_End_Node application for use on the STM32WLE5XX as implemented on the RAK Wireless RAK3172 and SEEED Studios LoRa-E5 modules. It is based on the LoRaWAN_End_Node example in the latest (v1.1.0) version of the STM32Cube MCU Package (Sept 2021) from https://www.st.com/en/embedded-software/stm32cubewl.html. The port is available at https://github.com/PrometheanDesign/LoRaWAN_End_Node.I hope some may find it useful!
Hello,I am having problems with stm32wle5xx interrupt servicing. When an interrupt occurs, the M4 seems to jump to an arbitrary location and not the location in the vector table. I observe this only on the stm32wle5xx (on a RAK31772 module), and not on the stm32wl55xx (on a nucleo-wl55jc development board).Specifically, I wrote a very simple STM32CubeIDE project which loops waiting for an EXTI15_10_IRQ interrupt when PA15 is pulled low. The loop waits 10 seconds after reset before enabling EXTI15_10_IRQ. If I do not pull PA15 low, the loop runs forever. If I pull PA15 low, before EXTI15_10_IRQ is enabled, the loop runs until the interrupt is enabled at 10 seconds, then jumps to a nonsense location. If I pull PA15 low after the interrupt is enabled, then the processor jumps immediately to the nonsense location.I have verified that the interrupt vector table is correct (specifically, address 0x080000E4, the address of the EXTI15_10 vector) has the correct address for the handler.Note tha
I am trying to power B-L072Z-LRWAN1 board using CN11 USB connector but not able to power it. Though I am able to see Red Led (LD7) glowing, Lorawan stack is not getting executed. I think MCU is not powered. Does anyone know how to power with CN11 connector?
Hi,I want to be able to advertise continuously (without timeout). Is it possible? I use CubeMX, is there any setting to allow this? or once the files are generated, what line can I comment out to achieve this behaviour? I have tried commenting out the line below from app_ble.c (around line 493) but no luck. Thanks. HW_TS_Create(CFG_TIM_PROC_ID_ISR, &(BleApplicationContext.Advertising_mgr_timer_Id), hw_ts_SingleShot, Adv_Cancel_Req);
Hello im trying to establish communication between two P-Nucleo_wb55 boards.Once i flash the firmware with cubeIDE example (\STM32Cube\Repository\STM32Cube_FW_WB_V1.12.1\Projects\P-NUCLEO-WB55.Nucleo\Applications\BLE\BLE_CableReplacement)#define GATT_CLIENT 0//1//chaning this for client/server rolesI open serial terminals on my PC (putty or realterm), COM ports are visible but they are unresponsive....I have no idea of where to start debugging
As the title says. I can see no support for this but a perpiheral advertising with ADV_IND should support this by default.Does anyone know?Regards,AC
Hello,I am trying to get the NUCLEO-WL55JC radio backwards compatible with our previous radios protocol used in the SI4432 and the EFR32xx from silicon labs. Most of it is already working but I can not add a transmit header in the message. This transmit header are two extra control bytes placed between the sync-word and the length byte. The transmit header is included in the CRC and data whitening, so I can not combine the transmit header with the sync word.Is there any possibility to add these two bytes in the wireless message, I do not care if I have to manually check the transmit header and/or packet length. The main goal is to make this radio backwards compatible. Some radio information:- GFSK modulation- 868 MHz base frequency- 2 bytes sync-word- 2 bytes transmit head
Hello,I am using the SubGHz_Phy_Per example to scan on different channels for GFSK messages. The application must scan each channel for 200μs for an active preamble, and if no preamble is detected the radio must skip to the next channel.I use the "SUBGRF_SetRx(13);" functon to set a 200 μs timeout. Unfortunately, the IRQ_RX_TX_TIMEOUT interrupt only occurs after 1,43 mili-seconds. If I set the timout to 50("SUBGRF_SetRx(50);"), the interrupt occurs after about 2 mili-seconds. It looks like there is always a delay of about 1,23 mili-secondes and the timeout is added to this delay.Is there any way to get the 200μs timeout between multiple channels in my application?
Hi, I want to send sensor data over advertising or beacon data, Send to multiple nodes without needing to connect. Can i do it?
The sample code from the library worked out of the box. I tried to generate similar code via CubeMX.I tried to set the parameter "radio_bord_if -> Select radio Driver"myself, because without this, the CubeMX issues a warning.However, when building the project, I get incomprehensible errors regardless of the value of this parameter. I didn't find the radio_fw.c anywhere other than the AN5687 description, so I deleted it from the project.After that I got an error: " Error[Pe136]: struct "LmHandlerCallbacks_s" (declared Hat line 135 of "...Repository/STM32Cube_FW_WL_V1.0.0/Middlewares/Third_Party/LoRaWAN/LmHandler\LmHandler.h"h) has no field "GetUniqueId" ...\Project_WL\LoRaWAN_End_Node\LoRaWAN\App\lora_app.c 134 " that I don't understand either.
I just installed FUS 1.2 and BLE Stack Full firmware, I believe successfully based on the logs. I noticed that those sections of memory are not readable by CubeProgrammer. Are they encrypted once they're installed? Just kind of curious.ST-LINK/SWD connection, Nucleo-WB55RG
I am busy creating a project using the Nucleo-wl55jc board, and am trying to modify the message transmitted to the gateway. How can I do this? I am new to LoRa and LoRaWAN, so am struggling to understand specifically the MX_LoRaWAN_Process() function and how the message is compiled. My end goal is to build a custom board using the stm32wl55cc chip and send messages to a LoRa Gateway that will use a Raspberry Pi and LoRa module. Any any assistance is very much appreciated, as I am struggling a lot currently! Thanks in advance, kind internet strangers!
Hi,I wanted to update from version 1.0.0 to 1.1.0 and after flashing the LoRaWAN_End_Node_DualCore demo on my Nucleo WL55JC, I cannot take control over the device anymore.I can connect with a debugger on CPU1 and access registers, but memory is only read as zeroes. CPU1 is in constant Hardfault, and I cannot modify the Flash in any way.It seems that CPU2 security is activated and I cannot find a way to disable it, same for any security options. I'm using CubeProgrammer 2.8RDP = 0xFFESE = 1FSD = 0DDS = 1HDPAD = 0If there is a way to recover this board I would be very grateful.Thank youBC
I'm working with the Nucleo board with the STM32WB55 with the BLE Stack: stm32wb5x_BLE_Stack_full_fw.bin (V1.12.1) on the Copro. When I'm running the Beacon Example code I can receive the Beacons on the mobile App.But since I've configured the code once as EddystoneTLM it always sends the Eddystone Beacons (UID/URL) with the TLM payload and I can't remove it.I've tried to delete it manually in the initialisation (aci_gap_delete_ad_type(AD_TYPE_SERVICE_DATA) before I initialise it with an other Beacon type, but it doesn't make any differences. Even reprograming the Copro hasn't made any differences.Is that a known bug from the BLE stack, that it doesn't properly clear the TLM flag? Does someone know a workaround?
Hey Guys,I am having a difficult time opening and compiling the BLE-HID example from the FW 1.12.1 pack.The STM32CubeIDE throws the error: make: *** No rule to make target '/Utilities/lpm/tiny_lpm/stm32_lpm.c', needed by 'Utilities/stm32_lpm.o'. Stop.Does anyone have a CubeMX project that uses the BLE-HID example so that I can use that as the base example? Or help me solve the Stm32CubeIDE error... Greatly appreciated!Almog(using macOS Big Sur, Apple M1 Silicon)
If we want to calculate the Impedance on our own On Nucleo JC2 Board (We do have access to Spectrum Analyzer, VNA, etc) what type of hardware setup would be required to measure the impedance? Do we need to measure impedance on RFO_LP GND Pins?On firmware side can we use the Subghz PER code or any other software?Regards
Hello In function "SVCCTL_UserEvtFlowStatus_t SVCCTL_App_Notification( void *pckt )" of generated file "app_ble.c":In "switch/case HCI_DISCONNECTION_COMPLETE_EVT_CODE:", the variable "BleApplicationContext.BleApplicationContext_legacy.connectionHandle" is cleared ( "=0") before used to call "Custom_APP_Notification(&handleNotification);".You should initialize handleNotification.ConnectionHandle = disconnection_complete_event->Connection_Handle;instead of handleNotification.ConnectionHandle = BleApplicationContext.BleApplicationContext_legacy.connectionHandle;If not, the customer application will never know which connection has finished and cannot associate disconnection events to connection events...Best regardsPaul
static void PingPong_Process(void) { Radio.Sleep(); APP_LOG(TS_ON, VLEVEL_L, "PP Task Start\n\r"); if (isMaster == true) { //Master switch (State) { case TX_TIMEOUT: APP_LOG(TS_ON, VLEVEL_L, "Master Tx timeout\n\r"); case TX: HAL_Delay(1000); HAL_Delay(Radio.GetWakeupTime() + RX_TIME_MARGIN + random_delay); APP_LOG(TS_ON, VLEVEL_L, "Master Tx start\n\r"); // master sends PING memcpy(BufferTx, PING, sizeof(PING) - 1); Radio.Send(BufferTx, PAYLOAD_LEN); break; default: break; } } else { //Slave switch (State) { case RX: if (RxBufferSize > 0) { if (strncmp((const char*) BufferRx, PING, sizeof(PING) - 1) == 0) { UTIL_TIMER_Stop(&timerLed); // switch off red led BSP_LED_Off(LED_RED); // slave toggles green led BSP_LED_Toggle(LED_GREEN); // Add delay between RX and TX HAL_Delay(Radio.GetWakeupTime() + RX_TIME_MARGIN); APP_LOG(TS_ON, VLEVEL_L, "Slave Rx Received - Wait for New D
I am having trouble receiving the join response when attempting to join the local LoRaWAN network in NZ (AS923) using the B-L072Z-LRWAN1 evaluation board with the type ABZ module from Murata. It is running the I-CUBE-LRWAN v2.0.0 AT Slave firmware. I can see the join request reach the network and I can see it send the response however, the evaluation board does not seem to receive the response. It takes several join attempts for the device to eventually receive the response and join. I have tried loading previous versions of the AT Slave firmware based on I-CUBE-LRWAN v1.2.2 and the device has no problem joining. I assume that the new firmware has changed something with regards to the receiver sensitivity but not sure what.Has anyone encountered this issue and if so how do you fix it?
I am basing an application of off the LoRaWAN_AT_Slave_DualCore_CM4. I'm currently working on adding USART1 into the application and have successfully used LL_USART_TransmitData8() to transmit data from the MCU. I'm running into a weird behavior that I can't explained. I'm calling the following function every seconds: void GPS_routine(GPS_data *gpsData, uint8_t *GPS_fix, uint16_t currSeconds) { static uint8_t GPS_activeRx = false; if (!(*GPS_fix)) { if (currSeconds > GPS_TIMEOUT_SEC) { if (GPS_activeRx){ GPS_activeRx = false; // GPIO_setOutputHighOnPin(nGPS_ON_PORT, nGPS_ON_PIN); // Turn off GPS LL_USART_DisableIT_RXNE_RXFNE(USART1); } } // if (GPS_TIMEOUT_SEC > secondsCtr) else if (currSeconds > GPS_START_SEC) { if (!GPS_activeRx){ GPS_activeRx = true; LL_USART_EnableIT_RXNE_RXFNE(USART1); // LL_USART_EnableIT_RXNE_RXFNE(USART1); } *GPS_fix = GPS_aquireData(gpsData); if (*GPS_fix){ // GPIO_setOutputHighOnPin(nGPS_ON_PORT, nGPS_ON_
Hello,I am using an STM32WL55CC as SPI-Slave to read data from an SPI-master (1 master, 1 slave). I have an SPI master that is talking occassionaly and I'm waiting for a message to start with a specific start-byte (0x3A) until I start reading a chunk of 60 Bytes.If I'm polling the SPI line until I see the start-byte and then go ahead and read the rest of the message everything works fine. However, if I trigger the SPI line through an interrupt on the hardware NSS line the data transfer fails after reading the first 3 Bytes and I get an HAL_TIMEOUT returned.This is the code I am using:Initialization of SPI: SPI_INIT() { GPIO_InitTypeDef GPIO_InitStruct = {0}; /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOA_CLK_ENABLE(); /*Configure GPIO pin : PA4 */ GPIO_InitStruct.Pin = GPIO_PIN_4; GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING; GPIO_InitStruct.Pull = GPIO_NOPULL; HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); /* EXTI interrupt init*/ HAL_NVIC_SetPriority(EXTI4_IR
I'm working on the application project LoRaWAN_AT_Slave_DualCore from STM32Cube_FW_WL_V1.1.0 .The payload of the downlink messages is not correctly transfered from the processor M0 to the processo M4. There is a bug in:file LmHandler_mbwrapper.c, function static void OnRxData_mbwrapper(LmHandlerAppData_t *appData, LmHandlerRxParams_t *params): if (appData != NULL) { UTIL_MEM_cpy_8(aLoraMbWrapShare2Buffer, appData, sizeof(LmHandlerAppData_t)); /* need to 8-align the next address */ next_addr = (sizeof(LmHandlerAppData_t) + 7) & ~7; if (appData->BufferSize > 0) { UTIL_MEM_cpy_8(&aLoraMbWrapShare2Buffer[next_addr], appData->Buffer, appData->BufferSize); ((LmHandlerAppData_t *)aLoraMbWrapShare2Buffer)->Buffer = &aLoraMbWrapShare2Buffer[next_addr]; next_addr = (appData->BufferSize + 7) & ~7; } }The bold line should be remo
Hello guys, how are u? Hope you're all fine =)I had my application developed using V.10.1 version firmware pack . It was requested to me to update firmware to use V1.11.1 firmware pack. As i upgraded, several things messed up, including CustomHID. Here's what is happening:In CUSTOM_HID_OutEvent_FS function, my device acknowlegde the received package using USBD_CUSTOM_HID_SendReport. This was working perfectly with V1.10.1. Now that i upgraded, my whole USB comm gets messed up after the first sent ACK. After the first sent package, my application can't received neither send data via USB . If i remove the ACK send, i'm able to continuous receiving data.What i noticed after updating:PCB and USB LL libraries got changed. After plenty debugging, i notice that this specific function was messing all up: PCD_EP_ISR_Handler. This function changed from V1.10.1 update to V1.11.1. I studied this function and USB code flow and discovered a change that made my USB comm back to work. This are the las
Hello,I'm looking to receive information regarding advertising settings within STM32CubeMX for use on an STM32WB nucleo board.I'm trying to make my (only) service's 128-bit UUID available upon advertisement (or scan response?) . Within the CubeMX I can make a UUID visible on scan with Ad type Undirected scannable and connectable, with AD_TYPE_16_BIT_SERV_UUID_CMPLT_LST (STM32_WPAN->BLE Advertising) selected (give BLE default UUID). I had assumed by instead selecting the 128-bit variant of this setting with the 128-bit UUID typed in the setting appearing when "Yes" is selected that it may have the desired effect, however the field becomes invalid?Is there a solution to my issue here? TLDR: Trying to advertise custom service UUID for retrieval in C#.net BLE APP upon advertisement (Windows API Advertisement.ServiceUuids).I also had a separate question relating to useful documentation for using/modifying BLE and USART inputs/outputs in the generated code as I have struggled to find up-t
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.