Ask questions and discuss STM32 wireless solutions and their implementation for running Bluetooth LE, Zigbee, LoRaWAN applications.
Most recent activity
Hello all....Looking for some pointers. I have an application I created in CubeMX/IDE on a WB55 nucleo board. I am using nRF Connect app on my phone as the Client. When I run the nucleo server application with the debugger connected all seems to work fine, both BLE and application. That is to say the nRF Connect discovers the nucleo and I can read/write to nucleo. However when I disconnect the debugger and power the board via a power supply / battery or even re-plugging the usb power back onto the nucleo the nucleo (server) almost never shows up in the list of devices in the nRF Connect application.With debugger disconnected:I have verified power to the board and it is all good. I also (via a scope) see my application code running as expected via the Time Server. I use the word "almost" above because on two occasions I was able to power the boards and the app at the correct moment and I was connected and all looked good. I based my code on the BLE_Custom application. Can anyone give me
Hi, I have the following problem:I am developing Firmware for a device that has a STM32WB55VGY6 on it. Right now I'm in the midst of trying to get a OTA FW Update to work, but I'm completely stuck. Whenever I try to upload a .bin file via the BLE Sensor App, it starts the upload and at some point the Node becomes unreachable, but always at different stages of the upload, sometimes at the start, sometimes in the middle, sometimes near the end. I'm using the BLE_Ota project from the STM32Cube MCU Package for our bootloader, I changed the linker file of my firmware how I'm supposed to (Flash Address starting at 0x08007000, .ota_region 0x08007140 etc), removed the line in system_stm32wbxx.c with the vector, added BLE_CFG_OTA_REBOOT_CHAR to ble_conf.h, I used the Programmer to flash the BLE Stack at the right starting address (0x080CE000 for version 13.3), FUS version is 1.2.0 and my Firmware has a Service and Characteristic for FW Updates and the right code in custom_app.c.The thing is, wh
Hi All,Currently I am working on STM32WLE5CCU6 + RAK3172 using STM32CubeIDE. So I am checking sleeping current.Currently I am getting 340uA of sleeping current.I want to make it reach to 4uA.Can anyone guide me how can I achieve that. I have some doubts like below.Do I need to power off / sleep the radio?Currently in STM32CubeIDE my system clock is 48MHz. During Sleep mode do I need to slow it down? Or from statrting only I have to use low system clock?Do I need to stop the ADC or it is not required? I am taking battery voltage from ADC.Currently I am making full port A GPIO to Analog and No_Push_Pull mode. In some of the pins in Port B and Port C are connected with radio. So do I need to change that and also remaining pin to analog and No_Push_Pull mode.If I am using DS18B20 (Temperature Sensor) then, It is required to Cut down Vcc and ground during sleep mode?I am new to low power related topics. Sorry if I have asked silly questions.Even though In while loop Larawan_Process() is con
I want to know how to design a PCB board about stm32wb55cc serial ic ,and should it need a antenna?If it need, what is the most suitable antenna to the ic?
..
Hello everyone, I am trying to do tone calculator. I am using DSP , ADC ,DMA and timer for sampling rate. I am using tone genarator and for example if tone is 500 hz and my fftoutbuffer[16] is going high value (noramlly 130 but when tone generate is on 174) . For 1700 hz fftoutbuffer[52] is going high value (noramlly 130 but when tone generate is on 175). I try to calculate my sample rate withthis formula. f_sample = 500 * (1024 / x / 2) = 16 so x= 64000 . f_sample = 1700 * (1024 / x / 2) = 52 so x ≈= 64000 . So with these adjustment how can it be 64.000 khz ? I though with these adjustment , I can get 48000000/1000 = 48.000 khz. (I can share my code if it is necessery, I didnt share it because it has 500 or more line.)
Greetings,I am working on the LoRaWAN Project and facing issues in updating RTC from a server/UART in LoRaWAN library.My code is getting stuck while updating RTC, I am recieving time and from UART through user input.RTC_TimeTypeDef set_time;RTC_DateTypeDef set_date;HAL_StatusTypeDef setTime_status;HAL_StatusTypeDef setDate_status;SysTime_t time;set_date.Year = RxBuff->Buffer[1] - 12;set_date.Month = RxBuff->Buffer[2];set_date.Date = RxBuff->Buffer[3];setDate_status = HAL_RTC_SetDate(&hrtc, &set_date, RTC_FORMAT_BIN);set_time.Hours = RxBuff->Buffer[4];set_time.Minutes = RxBuff->Buffer[5];set_time.Seconds = RxBuff->Buffer[6];if(set_time.Hours > 0x12){set_time.TimeFormat = RTC_HOURFORMAT12_PM;}else{set_time.TimeFormat = RTC_HOURFORMAT12_AM;}setTime_status = HAL_RTC_SetTime(&hrtc, &set_time, RTC_FORMAT_BIN);Please Help me out from this. I found something on ST commnunity regarding same and one developer is setting RTC through void SysTimeSet( SysTime_t
Hi all, I am looking for a list of resources (peripherals, memory, etc) that are required by the STM32_WPAN stack implementation for the STM32WBA52. I previously used the STM32WB55 and e.g. AN5289 lists which peripherals are shared with the M0/BLE core. Where can I find such information ? Note: some clues are given in the "BLE_SerialCom_Peripheral" example for the STM32WBA52, by looking at the implementation of the "platform specific" functions required by the STM32_WPAN libraries (LinkLayer_BLE_Full_lib.a and stm32wba_ble_stack_full.a are included in the example project). Thanks in advance. Best regards, Jeroen
Just used the example application "LoRaWan_End_Node" with the Nucleo-WLWL55JC board.This example send every 10seconds data to a gateway which is received in the TheThingsNetwork environment. Default is "LoRaWan_End_Node" disabled, when "USE_FULL_ASSERT" is enabled the applciation starts working and data is received, but after first time or after some rounds (within some minutes) the application keeps trying to send data, but data is not received at the server or the attempts are stopped. There is not assert or error in debugger.When "USE_FULL_ASSERT" is disabled again, the data is received okay at server endless time.In the stm32wlxx_hal_rtc.c source file some additional checks are done when USE_FULL_ASSERT is enabled. Can this be the problem?In attachment some logging.
I have created a service and some characteristics with size of 247.I use 'ACI_GATT_READ_HANDLE_VALUE' to read it and I get some weird response.Although I requested to read a size of 200, the command returns only 19 .This is my response packet: and this is the command response snippet. I would have expected numbers such as 200 , 247 in the response.Why 19?
Why on my LRWAN3 node card, when I power it externally on the +E5V tab, the LoRa card doesn't transmit anymore, while when I connect the usb + external power supply it works again? And why when I remove all the power supplies and I leave the USB cable, the led of the lora card lights up very slightly?
Hi, With STM32WBA52 (or others STM32WBA), can I receive BLE frame with MCU in ultra low power mode? What's the power consumption? Can I set BLE in ultra low power mode and still receive frame? That would trigger and wake up the MCU What STM32WBA is best for my purpose? Thanks,
Hello everyone, I am completely new to the forum and to the world of LoRaWAN on microcontrollers.I am doing my undergraduate final project. This is based on a B-L072Z-LRWAN1 core that has a couple of sensors connected to it. One of them is an ADC sensor that measures the humidity of the ground.My problem is that I would like to send the data from this sensor via LoRaWAN to TTN. In support they helped me with the existing example (I-CUBE-LRWAN) and told me that I could modify this code to do it.I have investigated the code a bit and I have found the task of sending data by LoRa, but of course my sensor is external and I must configure the pins for an analog measurement, and not having an .ioc I can not do it through CubeMX.Can someone help me to add my sensor and port the code to send my data. Best regards, and thanks a million.
Hi, I am using a STM32WB55, and a third party IMU device. I used the P2P client demo code to start, and was able to get the two devices to connect. But I am trying to figure out how to call and read the data now. Since the P2P client app is not setup to do that.I attached a photo of the data packets, with UUID info that I think will be required. I am also currently just dropping it in, the connect request() before the return, just so I can see where it will drop it in memory. Where would be the better place to call it, the P2P_client_app.c? I am trying to use the gatt_read_char_value, or gatt_read_using_char_uuid, but unable to properly set it up so it will compile and run.
Hello,I'm using the STM32WL55 for LoRa communication.I found out that when receiving a packet the RX IRQ from the transceiver is executed in a delay from when the packet finished transmitting.From my tests this delay depends on the channel configuration and the delay is around the time of a single symbol (around 85% of a symbol time, changing slightly between configurations).The timing of this IRQ is crucial for me to time my system's operations.Is this delay expected? If so, is there a formula for it? Is there a way to remove the delay altogether?Thank you
Hi,I have found some questions and discussions with similar topic, but no answer seems to apply to my case. I have an STM32WB55 Nucleo Pack, and I cannot manage to load any of the BLE stack binaries provided with the STM32Cube_FW_WB_V1.16.0 into my device.The non-BLE example applications running only on CPU1 are working without problems.If I use the STM32CubeProgrammer (V2.13.0) via SWB, it connects without issues. If I select the FUS page and press "Read FUS Infos", I get "FUS State: IDLE", "FUS Status: FUS_No_ERROR" , FUS Version "v.0.0.0.0", STACK Version "v0.0.0.0" and FUS Operator "v3.1.0". If I press "Start Wireless Stack", I get "unknown error", presumably because there is no one present. And if I try to load for example "stm32wb5x_FUS_fw_for_fus_0_5_3.bin" at address 0x080ce000 (as specified in Release_Notes.html), I get the following messages: 19:46:18 : Old Firmware delete ... 19:46:18 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified. 19:46:18 : W
Hi all,I'm here beceause I have a question about STM32WL55, I have this board STM32WL55JC and I I look in CAD ressources in schematic file , there is a switch to chosse between High or Low power emission and receive mode. This switch U7 is is ordered by FE_CTRL1/2/3 but where these pin are used in STM32WLxx-HAL_Driver maybe when we call SUBGRF_SetSwitch ?Thanks
I am developing a FreeRTOS project with around 12 tasks, many of which use the open thread ot* functions. However, my program will occasionally deadlock on all OpenThread commands, with the stack for each task showing that it is waiting for "Wait_Getting_Ack_From_M0" to finish.I believe this is related to attempting to concurrently use OpenThread functions within multiple tasks. Is there any documentation or guidance from STM on whether gating OpenThread functions with a mutex is necessary?
Hi, Context:I am currently developing a LoRa board implementing the STM32WL55. I didn't get the SubGHz Middleware to work, so i implemented the approach as detailed in the reference manual page 206. The code compiles, and the tx-complete interrupt is getting triggered, so everything seems to work as it should. I then tried to receive my LoRa messages with a Nucleo Board, where i modified the SubGHz_Phy_PingPong example to not send Pings anymore and print everything it recieves to the USB UART. It works perfectly when I send lora data via another Nucleo. I saw that in the subghz_phy_app.h of the PingPong Example it says: #define LORA_BANDWIDTH 0 /* [0: 125 kHz, 1: 250 kHz, 2: 500 kHz, 3: Reserved] */ #define LORA_SPREADING_FACTOR 7 /* [SF7..SF12] */ #define LORA_CODINGRATE 1 /* [1: 4/5, 2: 4/6, 3: 4/7, 4: 4/8] */ #define LORA_PREAMBLE_LENGTH 8 /* Same for Tx and Rx */ #define LORA_SYMBOL_TIMEOUT 64 /* Symbols */ #define LORA_FIX_LENGTH_PAYLOAD_ON false #define LORA_IQ_INVERSION_ON false
I am using the STM32WB55RG MCU, Bluetooth feature with stack version 1.13.0 and FUS version 1.2.0. Everything was working normal until I tried doing the firmware upgrade of stack from v12.0 to v13.0. I am not able to perform FUS related operations. The version reading shows 0.0.0 for FUS. And following is the log when I hit "Start FUS" 11:09:47 : Warning: Option Byte: nSWboot0, value: 0x0, was not modified. 11:09:47 : Warning: Option Byte: nboot0, value: 0x1, was not modified. 11:09:47 : Warning: Option Byte: nboot1, value: 0x1, was not modified. 11:09:47 : Warning: Option Bytes are unchanged, Data won't be downloaded 11:09:47 : Succeeded to set nSWboot0=0 nboot1=1 nboot0=1 11:09:47 : Memory Programming ... 11:09:47 : Opening and parsing file: 0x495_FUS_Operator.bin 11:09:47 : File : 0x495_FUS_Operator.bin 11:09:47 : Size : 8 KBytes 11:09:47 : &nb
Hello everyoneI produce devices on the WB55CG with a BLE stack.There is a working firmware with libraries 1.10.0, everything worked successfully on chips with FUS 1.1.2.0Now a new batch of devices is in production, now in the MCU FUS 1.2.0.0.1) Do I understand correctly that it is no longer possible to install BLU stack 1.10 for FUS 1.2.0.0? I get an error when trying.2) Is it also impossible to install the old FUS (1.2.0.0 -> 1.1.2.0)?3) If you install a fresh stack - 1.16 - everything works as it should, except for one nuance:After connection, the current consumption increases by 0.3 ma and remains the same after disconnection, which is too much.Perhaps there is some obvious solution to this problem? Or do I need to completely rebuild the project with new libraries?
I am using stm32wl55jc1. I want to use accelerometer at 50khz and microphone at 2khz (2048). I am trying to make fft. With pooling adc method, I can do that easily. with 500 micro second delay. for(int i=0;i<128;i++) { microSecond=micros(); HAL_ADC_PollForConversion(&hadc,1); readValue = HAL_ADC_GetValue(&hadc); data[i] = readValue; delay_us(500+microSecond); } FFT(data,128,2000);I shouldn't blok the cpu so I need to use dma. Sampling Time: 16 ADC clock cycle((12.5+1.5)*1/24MHz=0.58333µs) here is my adjustment of adc:here is my code:uint32_t ADC_VAL[128]; void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc) { FFT(ADC_VAL,128,2048); } HAL_ADC_Start_DMA(&hadc,ADC_VAL,128);As I said before, I can use fft without problem with pooling and timer. I am writing 0.5 mikrosecond delay and thats it. I want to use dma but I couldn't manage it. How can I adjust sample rate with dma ? and if I do that, can I use accelerometer and microphone wi
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.