Ask questions and discuss STM32 wireless solutions and their implementation for running Bluetooth LE, Zigbee, LoRaWAN applications.
Most recent activity
Using an STM32WB55, timer16 for switch debounce. It is set for 100ms. I was looking in the HAL library for the timer and I see start / stop functions, etc. but how do I reset my timer after I come into the ISR? I am sure the counter will roll over by the time I get into the ISR and I would like to reset it for the next pushbutton but see no calls how to do it. Seems very bleak to think I would have to do an INIT again.ThanksSteve
I am trying to exchange data (str data) between two STM32 throughout Lora connectivity. Both STM32 has a lora module and the connection between them is working fine. Based on two functions:T_eError_eErrorType eDataPlane_eReceiveData_Cmd (uint32_t in_uiTimeout, uint8_t* out_pucData, uint8_t inout_pucLength, T_stSx1276_eRxPacketStatus out_pstRxPacketStatus)T_eError_eErrorType eDataPlane_eSendData_Cmd (uint8_t* in_pucData, uint8_t in_ucLength)I am trying to send and receive messages instantly. I discovered a huge problem: for example I am trying to send a data which has a duration equal to 300ms while the timeout of receiving the data is fixed to 3000 ms. It may, in one rare case, be a loss of such a data, when the data arrives at the time of 2800 ms of the timeout of the receiver. Such a problem is similar to the exchange of data in the UART interface when using the blocking mode (HAL_UART_Receive (&huart1, UART1_rxBuffer, 12, 5000);). My question is how to garantee receiving the dat
Hi,I am a bit confused on the lora STM32WL sequence protocol system, I want my device to sleep and wakeup according to the periodic values I want. I have made my own sleep function (stop 2 mode & radio sleep) with wake up triggered using RTC (in seconds) and push button. Where can I put my function (PLB_SleepMode) into the sequencer utility lora end node STM32WL ?Thank youHere my code for custom sleep and wake up system:void HAL_RTCEx_WakeUpTimerEventCallback(RTC_HandleTypeDef *RtcHandle) { //Clear wake up flag __HAL_PWR_CLEAR_FLAG( PWR_FLAG_WU ); } void PLB_RtcWakeUpTimeSetting( RTC_HandleTypeDef *RtcHandle, unsigned int seconds ) { //Set wake up time /* Disable all used wakeup source */ HAL_RTCEx_DeactivateWakeUpTimer( RtcHandle ); __HAL_RCC_WAKEUPSTOP_CLK_CONFIG( RCC_STOP_WAKEUPCLOCK_MSI ); HAL_RTCEx_SetWakeUpTimer_IT( RtcHandle, seconds - 1, RTC_WAKEUPCLOCK_CK_SPRE_16BITS ); } RTC_HandleTypeDef *PLB_RtcPowerSavingConfig( void ) { //Set RTC Clock, Timer
Hi,I'm hoping that someone can help me implement a Channel Activity Detection (CAD) check on a TX channel before transmitting a message, as to implement a kind of CSMA version of LoRa. Basically I would like to know where CAD is carried out in the LoRa stack so that I can use it in my own bespoke case. Thank you,Odhran
..
A new version 2.7.1 is released. Fixed sniffer issues :Remove extra FCS bytes in frames.Stop then start capture with no frame raised an error.Enjoy !
I tried to run BLE Blood pressure example on my STM32WB board.I was able to connect to BLE and see the screen as attached. But the example stated that value updates every 4 secs. What am I doing wrong here? Do I need to make any changes in program? I have used example code provided in repository without any changes. P.S. I want to implement read characteristics.
I am moving our BLE development from Zephyr 2.5.0 to 2.6.0. The st_ble_sensor sample included in the Zephyr 2.5.0 tree compiles and runs successfully with the nucleo_wb55rg eval board, but does not work when I attempt the sam from the Zephyr 2.6.0 tree. In this case the board advertises correctly, and is seen by ST BLE Sensor iPhone app, but an attempt to connect results in a forever-spinning Connecting icon.
Development board: L072CZ-LRWAN boardDevelopment Environment: KEIL (Free License)HelloWe are currently developing LoRaWAN's end device.Before connecting JP9 1-2 to control TCXO,I tried to check if the output is coming from PA12, but only the voltage of mV is detected.No matter how much you look at the circuit diagram, the only connection to PA12 is SB13 that is disconnected from JP12(PIN1).I gave all the settings of GPIO to HIGH, but I checked that all except PA12, PA11 PB13.I'd appreciate it if you could tell me what I did wrong!Below is the code.void MX_GPIO_Init(void){ GPIO_InitTypeDef GPIO_InitStruct = {0}; /* GPIO Ports Clock Enable */ __HAL_RCC_GPIOB_CLK_ENABLE(); __HAL_RCC_GPIOA_CLK_ENABLE(); __HAL_RCC_GPIOH_CLK_ENABLE(); /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOB, LED_G_Pin|LED_B_Pin|LED_R2_Pin, GPIO_PIN_RESET); /*Configure GPIO pin Output Level */ HAL_GPIO_WritePin(GPIOA, TCXO_VCC_Pin|LED_R1_Pin, GPIO_PIN_RESET);&n
개발 보드 : L072CZ-LRWAN 보드개발 환경 : KEIL(무료 �?��?�센스) + I-CUBE-LRWAN V2.0.0안녕하세요.RoLa개발�?� 시작한 초보 개발�?입니다.현재 UM2073 문서를 참고하여 개발�?� 진행중입니다.개발중�? low-power모드 설정하는 부분�? �?금한게 있습니다.코드�? void UTIL_LPM_EnterLowPower( void ){ UTIL_LPM_ENTER_CRITICAL_SECTION_ELP( ); if( StopModeDisable != UTIL_LPM_NO_BIT_SET ) { /** * At least one user disallows Stop Mode * SLEEP mode is required */ UTIL_PowerDriver.EnterSleepMode( ); UTIL_PowerDriver.ExitSleepMode( ); } else { if( OffModeDisable != UTIL_LPM_NO_BIT_SET ) { /** * At least one user disallows Off Mode * STOP mode is required */ UTIL_PowerDriver.EnterStopMode( ); // UTIL_PowerDriver.ExitStopMode( ); } else { /**
HelloI noticed a strange behavior on CUBEMX when creating new project with STM32WLE5J8I MCU.When i activate a LORAWAN application and i build the project, ther's many erros of compilation but when i go to the "project manager" and "Generate files" option and when i activate " Generate Peripheral initialisation as a pair of .c/.h files per peripheral" and i build again, errors disappear!!!!! i don't found the relation but it's strange as behavior and it make me not confident about cubeMX with STM32WL Serie.My doubt was confirmed when i tried to import from example the LORAWAN End Node example to CUBEIDE. When i build directly, i have 0 error 0 warning everything OK and i can see on the serial communication the differents key and the communication with a gateway was successfully made!!! BUT when i open .ioc file of the project and want to change for example the periode of transmission of the message or change the HW configuration and i build again, i obtain 1124 errors!!!!! strange NO ?T
Hi,Is there an example or note that guides to implement CHAR_PROP_INDICATE?
Hi, I want to implement BLE read property. I found Blood pressure example but not able to execute and understand it properly. Thanks.
Hello! On the board STM32WB55RGV6 there is the connector CN13, where is written STLINK (reserved). Can I use these pins to program another board?
Hi!I am using a STM32WB for a bluetooth very low cost application. Right now i have ported in my board with STM32WB50CGU the example P2P server and the Android application ST BLE Sensor connect and communicate with it. I am using the LSE clock (32.768kHz).Now, according with datasheet of the STM32WB50CG, paragraph 3.10, point 3, the LSI2 can be used by the RF subsystem, so, in order to reduce the cost of the board, i tryed it.I can see the advertising with the mobile app (it appears in the research), but unfortunately i cannot connect and exchange data with the board. I attach the cube clock configuration. Am i doing something wrong? How can i solve this problem?Thank you in advanceBest regardsLorenzo
Hello everyone,I have one more question about a project I generated with STM32CubeMX for an STM32WB55 microcontroller. The code generation included all necessaries libraries and source code to communicate with an external master device (such as a laptop), and all seems to work perfectly on this side (I mean, communication between my laptop and the STM32WB is OK).When I try to receive a frame sent by the laptop or a terminal, (in the "userBufferRX" ) it seems to be limited tu 64 bytes only. In the RX buffer, I see only 64 bytes and the end of my frame seems to loopback at the beginning of the buffer. I need to receive frames up to 200 bytes. So, here is my question : Is there any configuration to extend this size or is it herd-limited ? How can I set this ?Thank you for your help, and have a nice weekend to all.Patrick
Hello,I am going to use a 32 MHz oscillator (LSE) for a ZigBee application on STM32WB55. Do I have to add a 32 kHz oscillator? I do not need RTC. Best regards,Batuhan
I have one more confusion regarding BLE connection.For the case in low power mode,If device is already paired and connection is established, do we need to continuously advertise packets at regular intervals for connection to keep intact and to provide BLE service? The purpose of this question is to know if I can completely put the device into sleep for few minutes (let's say 15 mins) without sending advertising packets ?
Hello. I create new empty project for stm32wb55CC in CubeIDE 1.6.1 with pack 1.11.0. main.c contains/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) 2021 STMicroelectronics. * All rights reserved.</center></h2> * * This software component is licensed by ST under BSD 3-Clause license, * the "License"; You may not use this file except in compliance with the * License. You may obtain a copy of the License at: * opensource.org/licenses/BSD-3-Clause * ****************************************************************************** */ /* USER CODE END Header */Now I enable BLE and regenerate code. main.c contains still contains the same lisensing. I delete USER CODE BEGIN Header and main.c contains/* USER CODE BEGIN
My dongle has latest FUS 1.1.2 and then programmed with stm32wb5x_Phy_802_15_4_fw.bin to proper address(0x080DE000) and with option "Start Wireless Stack" selected.
I am trying to send a BLE notification after I have connected. I add the characteristic this way. retVal = aci_gatt_add_char(serviceHandle, UUID_TYPE_128, (const Char_UUID_t *)Uuid, 247, CHAR_PROP_WRITE_WITHOUT_RESP | CHAR_PROP_WRITE | CHAR_PROP_NOTIFY, ATTR_PERMISSION_NONE, GATT_NOTIFY_ATTRIBUTE_WRITE, MAX_ENCRY_KEY_SIZE, CHAR_VALUE_LEN_VARIABLE, &handle);Then the connected device writes a small amount of data to the characteristic (3 bytes), and I try to send a notification in response.result = aci_gatt_update_char_value(serviceHandle, valueHandle, 0, length, pData);The notification is about 80 bytes long. I get the notification data on the other side, but the call to aci_gatt_update_char_value never returns. It gets stuck in hci_send_req waiting for something to happen, and it never happens. This seems like it would be super simple. What am I doing wrong here?Thanks
I have a board with an STM32WLE5CC and am attempting to use STOP2 mode, but instead of the expected 4-6uA I am seeing 1mA consumption.All peripherals except FLASH, HSEM, and the RTC are disabled in the RCC block. All Unused GPIO are set to Analogue. Debug is disabled for all low power modes.I've checked that the consumption is not down to other components on the board.I've no idea what else I can change.
HiI don't understand how to use the custom bluetooth template in CubeIDE for a STM32WB55CC microchip. I need to know how to configure this in order to understand how to configure a bluetooth liaison with BLE.Best regards
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.