Ask questions and discuss STM32 wireless solutions and their implementation for running Bluetooth LE, Zigbee, LoRaWAN applications.
Most recent activity
Hi, We have encountered the following situation: Once the equipment is Joined to the network, if by chance there is a power cut that affects the Gateway and it restarts, we have realized that we stop receiving data from the device. Our Device can be configured with or without Confirmation ACK.In the case that it is configured without confirmation ACK. We can't know whether there is a power cut and we stop receiving data. What is the correct way to detect and treat this situation?In the case that it is configured with confirmation ACK. We can check if after an uplink we receive the ACK or not, to be able to treat it. We checked in the OnTxData Callback if the MSG_Type was LORAMAC_HANDLER_CONFIRMED_MSG and in that case if AckReceived was 0 we know that the Gateway is not responding with the ACK to the Uplink, and in that case we Reset the device to Force a Join Request. Is it the correct way to detect and treat this situation?Best Regards
I've found a significant difference in the function MX_TIMx_init() function generated from STM32 development tool for two different platforms. The first (it work) is generated for NUCLEO-F413ZH the second (it doesn't work) is generated for NUCLEO-WL55JC1 (LoRaWAN End Node). On the second one, the clock seems not initialized.First code:void MX_TIM16_Init(void) { /* USER CODE BEGIN TIM16_Init 0 */ /* USER CODE END TIM16_Init 0 */ /* USER CODE BEGIN TIM16_Init 1 */ /* USER CODE END TIM16_Init 1 */ htim16.Instance = TIM16; htim16.Init.Prescaler = 48-1; htim16.Init.CounterMode = TIM_COUNTERMODE_UP; htim16.Init.Period = 65535; htim16.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim16.Init.RepetitionCounter = 0; htim16.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE; if (HAL_TIM_Base_Init(&htim16) != HAL_OK) { Error_Handler(); } /* USER CODE BEGIN TIM16_Init 2 */ /* USER CODE END TIM16_Init 2 */ }Second code:static void M
I can read characteristic value in P-NUCLEO-WB55 based application with ACI_GATT_READ_USING_CHAR_UUID command. However, I do not find any command for subscribe for notification (AN5270 docs neither STM32CubeMonitor-RF ACI commands). How can I subscribe for a notification? Note: Our characteristics has read and notify property, I can subscribe to notification with BLE sniffer app on Android. I would like to do the same with STM32CubeMonitor-RF or via COM port).Thanks,David
Hii guys,we are using the STM32WB50 controller in our project. Stream 23000 bytes continuously in a second(46bytes after every 2-millisecond interval) using Bluetooth low energy system provided by the STM32WB microcontroller.To successfully transmit data from transmitter to receiver, we refer to the BLEDataThroughput project provided with the STM32WB cube library. MTU size: 251 BytesGatt characteristic size: 255 Bytes using property notifyConnection Interval min & max: 7.5 msPHY: 1M( STM32WB50 limit)Is there any manner or sequence to update BLE connection parameters MTU size and connection interval?Because after all the above updates, we are getting data losses at the receiver end.We transmit data from the server using function aci_gatt_update_char_value()we reach upto aci_gatt_update_char_value() function using utility functions UTIL_SEQ_SetTask() , UTIL_SEQ_Run() SendData() and ***_STM_UpdateChar()asvoid SendData( void ) status = DTS_STM_UpdateChar(DATA_TRANSFER_TX_CHAR_UUID, (u
I play with two STM32WB55 eval boards and BLE_CableReplacement project.It seems that whatever I try, I'm not able to change ATT MTU value to get more data troughput. It is set to 156 in the original project but it seems to stay at the default value 23. I've checked everything in source code and it looks correct.I use STM32Cube_FW_WB_V1.12.1 and I've upgraded the firmware accordingly (stm32wb5x_BLE_Stack_full_fw.bin).What can I try now ?I also play with BlueNRG-LP and I can read the same limitation to 20 bytes when calling aci_gatt_clt_write_without_resp(), in project BLE_SerialPort_Master_Slave, (Send_Data_Over_BLE() in serial_port.c).
I am able transmit 240 bytes of data from STM32WB BLE p2p server. This data want to receive on STM32WB BLE p2p router code.I am getting ACI_GATT_NOTIFICATION_VSEVT_CODE case executed but I see pr->Attribute_Value_Length is 20. I am transmitting 240 bytes but I receive 20. If I transmit data less than 20 then at receive side correct information and correct data length is received.Please guide me how can a receive all 240 bytes correctly and repeatedly. Thank you in advance!
Your updates are always valuable to me, but I've always suspected that update firmware won't bother a device already running.The same happened in the STM32WB new update (FW version 1.12.1), in this update BLE and GPIO interrupts are not working simultaneously because all interrupts are clear in MX_APPE_Init() function which is call after the initialization of all peripherals(included GPIO interrupts).
HelloI am experiencing two problems.My development environment is STM32L072CZ-LRWAN1.You are now using a combination of END_NODE and AT_SLAVE examples.I'll sort out my problems.The first is that 'SET' values are not operated through features such as AT+DEVEUI, AT+APPEUI, etc.#define STATIC_DEVICE_EUI 0Modified to above define to change settings.butAT+DEUI=11:22:33:44:55:66:77:88AT_ERRORAs shown above, only errors continue to occur and do not change.AT+DEUI=?AT+DEUI?The above 2 functions operate normally.I will attach the serial output as a picture The second is that once the MCU is reset, it stops working. I'm currently using LPUART1.Please advise how to solve this problem.
Hi everybody,I think I have the same problem as CTare (https://community.st.com/s/question/0D53W00000fo0kcSAA/unable-to-install-wireless-stack-on-stm32wb55?t=1628516513992) I coudn't reply to that post because it's already archived. My setup: Nucleo WB55RG board. I tried to fully understand the FUS, Stack programming including all the options. After 6hours I end up with a board that I can communicate with using STM32Programmer (v2.8, 2.7 and 2.5, each of them in DFU or STlink mode) but I'm not able to reprogram FUS and RF-Stack (in my case BLE). I attached my batch file that is derived from Quintin and the response the board gives (because of the limitations in this forum as one pdf file :worried_face:). What makes me very suspicious is the FUS firmware version that is replied to be v0.0.0.00 (that's the same I can see in STM32Programmer. So it seems to me that there is no FUS at all - although the programming command don't show errors.Similar to CTare I'm not sure if I hit the 'antiro
I have a custom board with STM32WB50CGU5 controller. I want to develop an application on this board having BLE, and IRDA.I am able to run the example (p2p Server and p2p Client) given for the STM32WB55 Nucleo board on my custom board without any error and its working fine. Now I want to use the example code for my custom board which has different controller and UART is IRDA.Is it possible to use it?How this can be achieved?
I have the P-NUCLEO-LRWAN3 package with the LoRa expansion board using the RisingHF chip.According to the RisingHF documentation, the built-in processor in the RisingHF module is a STM32L07x chip and can be programmed through the bootloader. I have already upgraded the RisingHF firmware once using their binary, so I know the bootloader works. However, I have built a basic "Hello world!" binary (using STM32L071, L072, and L073 project configurations in the STMCubeMX) and attempted to install that on the RisingHF chip using the same bootloader procedure, but the uploaded code does not execute and the bootloader screen is displayed. Any ideas of which chip specific chip is inside the RisingHF module eg. STM32L071C8? I can supply my expansion board's serial number if that would help?Any advice would be greatly appreciated.
..
Greetings,From what I've read of the Cube code and guidance in AN5289, we enter STM32WB low power states by putting the M4 into the low power state we want. If we need the M0 to continue to advertise, for example, we would configure it to do so and then put the M4 into low power.I have two questions, related, to this use case.1) Is this a correct understanding how how we are supposed to put the STM32WB into a low power state, e.g. stop2? Can we put the M4 into stop2 while waiting for a BLE connect event. When the event generates an interrupt, the M4 awakens and can handle to event. Does the M0 always go into low-power states? What triggers it?Or, do we need to also send an explicit message to the M0 telling it we plan to go into low power? I haven't found any code doing this, but there is an SHCI opcode SHCI_OCF_C2_RADIO_ALLOW_LOW_POWER which is 0x6d. There doesn't seem to be an example that uses this code.2) What will the M0 do when we are configured to use HSE for RF wakeup instead o
Hello,I have mesh node with proxy feature. After provision, I can see that node advertising Mesh Proxy Service (UUID 0x1828), How can I update Mesh Proxy Data Out (UUID 0x2ade)? I spent a lot of time searching for some callback or function, where I can do it, but no results...I am using STM32CubeWB v1.10.0 and Nucleo WB55. Example BLE_MeshLightningPRFNode.Thanks for any useful tips and advice!Vit
I bought an stm32lb072 development board and wanted to learn the sigfox module on this board. I plan to send signals using modulation commands and receive messages on the SDR dongle of sigfox. Now I only get the ID of sigfox module in the development kit and activate it successfully on the official website, but the at command input to send data does not return OK, and LED4 representing sending data on the development board is always on. How can I communicate between the development board and dongle?
The API (SIGFOX_API_send_frame) found in the examples of PushButton and AT_SLAVE of STM32WL SINGLE CORE (https://www.st.com/en/embedded-software/stm32cubewl.html), versions 1.1.0 and 1.0.0, is without prototype and the sigfox does not work (does not send). This is normal?
Please advise on mounts / bga-to-pin adapters or sockets that I can mount on a pcb so that I can still use this chip. Thanks in advance.
I am using I CUBE LRWAN 2.0.0STM32L072-LRWAN1 board is in use.You want to use the TRACE function UART1 (PA9, PA10) pin.The TX outputs letters to the serial, but the RX function, such as keyboard input, does not work.NVIC is also set in UART1 INIT.HAL_NVIC_SetPriority(USART1_IRQn, 0, 0);HAL_NVIC_EnableIRQ(USART1_IRQn);I've also added an IRQ handler.void USART1_IRQHandler(void){/* USER CODE BEGIN USART2_IRQn 0 *//* USER CODE END USART2_IRQn 0 */HAL_UART_IRQHandler(&huart1);/* USER CODE BEGIN USART2_IRQn 1 *//* USER CODE END USART2_IRQn 1 */}I don't know what I missed.Please help me.
I'm working with the NUCLEO-WL55jc1 board and I have one strange behavior. I need one output pin and I've called it Trigger.Initially, the pin PC2 was used but I wasn't able to make it work. It had incorrect output voltages and some bounce like it was a switch. Other pins, like LEDs on the board, worked as aspected, so I decided to change the pin with PB1, using the same software: it was working.In order to investigate, I've used both outputs, the same software, just a set, and a reset after delay. I've connected the oscilloscope to see the output signal reported in the picture. Tack yellow is the PB1 output (Trigger_pin), track blue is the PC2 output (Test_pin) the wrong one. My simple code. uint16_t Distance(void) { uint16_t distanza = 0; UTIL_LPM_Mode_t lpm_stat = UTIL_LPM_GetMode(); // UTIL_LPM_S APP_LOG(TS_OFF, VLEVEL_H, "\r\n###### ========== PASSO ==========, %d\r\n", lpm_stat); BSP_LED_On(LED_BLUE) ; HAL_GPIO_WritePin(Trigger_GPIO_Port, Trigger_Pin, GPIO
what is the difference between V2.0.0 and V2.1.0there is no display to console and no AT message
Hi guys, I recently made a design based on nucleo wb55 dongle using STM32WB55CGU (48-UFQFN), but I cannot connect to it using SWD. I believe it is not a schematic problem, so I am a bit stuck for debugging the situation. I soldered it using hot air station (< 250/260 deg celsius). The joints look okay, but I am not an expert on soldering QFN. So, my main guess is that I broke it while soldering. Is it really feasible to solder it using hot air station ? or a reflow oven is a must ? I compared the voltage on the dongle with my custom board, and the difference I find is on pin VLXSMPS, and VFBSMPS. It is 3.3V on dongle, but 0V on mine. What could be the reason ? It is not shorted to GND. I tried to short it to VDD, but it didnt help NRST is at 3.24VI use the ST-Link V2 to program it, same as what I use on the dongleThank you very much for your timeSWDMCU SchematicsVDD External Clocks
I am working on STM32WB5MMG board and using the example QSPI_ReadWrite_DMA.In the main function the program can not run into case 2 to call HAL_QSPI_Transmit_DMASource Code as below: case 2: if(StatusMatch != 0) { StatusMatch = 0; TxCplt = 0; /* Enable write operations ----------------------------------------- */ QSPI_WriteEnable(&hqspi); /* Writing Sequence ------------------------------------------------ */ sCommand.Instruction = EXT_DUAL_IN_FAST_PROG_CMD; sCommand.AddressMode = QSPI_ADDRESS_2_LINES; sCommand.DataMode = QSPI_DATA_2_LINES; sCommand.NbData = BUFFERSIZE; if (HAL_QSPI_Command(&hq
Hi, In my application I have added a custom service with 5 characteristics, all have 128bit UUID, 3 characteristics are 4 byte long and 2 characteristics are 2 byte long.When I compile and connect to board by my phone I can't see the last charactersitics, it ssem not added in this serviceWhat is wrong?In attachment there are the files of this custom service only, the configurations also seem compliant with number of custom services and characterisitcs.So in my smartphone I see:servie with uuid 3333char with uuid 3334char with uuid 3335char with uuid 3336char with uuid 3337but ther isn'tchar with uuid 3338Please make me know how to solve this problem.thank youbest regardsLuigi Berardi
Hello friends,I am working on STM32WB on-chip Bluetooth low energy system to transmit data from server to client using notification property.I want to transmit 46 bytes at the rate of 500Hz without any packet loss, to achieve this I have updated the following BLE connection parameters-MTU Size: 512 Byteshci_le_set_data_length: 251 Bytes with Tx time: 2120 msConnection Interval: 11.25msTX_PHY & RX_PHY: 2MTx Power: 4dBmbut I face data loss at the receiver end.To transmit 46 bytes of data using notify, I update the p2p service and Characteristic as- /** * Peer To Peer Service * * Max_Attribute_Records = 2*no_of_char + 1 * service_max_attribute_record = 1 for Peer To Peer service + * 2 for P2P Write characteristic + *
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.