Ask questions and discuss STM32 wireless solutions and their implementation for running Bluetooth LE, Zigbee, LoRaWAN applications.
Most recent activity
Hi!I am using P-nucleo WB55 board to develop BLE application. 1 I use TIM2 to generate a interrupt where I use SPI to read external ADC data. However, I found that the time period between SPI SCK signal and rising edge of TIM's PWM is varying. as shown in the attached figure.Below is a part of the code in TIM interrupt function:// HAL_TIM_IRQHandler(&htim2); /* USER CODE BEGIN TIM2_IRQn 1 */ SPI1->CR1 |= SPI_CR1_SPE; while(!(SPI1->SR&SPI_SR_RXNE)); SPI1->CR1 &=(~SPI_CR1_SPE); Dout_a[i]=SPI1->DR; SPI signal is enable right after the interrupt. There is no code before enabling SPI signal. Why the time is varying?Can a task in sequencer be interrupted, when it is running?Sequencer tasks are running in parallel with the interrupt or in series with the interrupt?
Hi Everyone!We have two RFM98PW LoRa Modules and we successfully can communicate with these modules from more than 9 kilometers. But when we change our frequency from 434 to about 433.663 we cannot communicate very well. It just *****. Using these LoRa modules with an Atmega2560 and STM32F446RET6. In Atmega, so in library that we are using setFrequency function to change frequency. Is it enough to change freq with just a function. Do we need to change anything else like bandwidth?When we change the frequency the frequency error jumps to 32 kHz from 1 kHz in the receiver serial port.Library: https://github.com/SMotlaq/LoRaThanks.
Hey guys , I am trying to program custom stm32 board using stm32lorwan module using stlink v2 pins. I have configured debugger as followed.Can you tell me debug configuration?>>Connect to remote GDB server , port no 61234>>debug prob , stlink (stlink gdb server)>>Interface , SWD>>Access port, 0-cortex,m0plus>>Reset behaviour , Software system reset>>Debug In low power modes, Enable>>Suspend watchdog counters, DisableBelow is issue that I am having.Error in final launch sequence:Failed to execute MI command:target remote localhost:61234Error message from debugger back end:localhost:61234: The system tried to join a drive to a directory on a joined drive.Failed to execute MI command:target remote localhost:61234Error message from debugger back end:localhost:61234: The system tried to join a drive to a directory on a joined drive.localhost:61234: The system tried to join a drive to a directory on a joined drive.
Hello ST,We are looking for the solution for OTA BLE firmware upgrade using another BLE module. It must be between two STM32WB board not from android app .Could you please provide the documents or example for this solution.Best RegardsDeepak Aagri
We are using the STM32WB5MMG in our product.To inform any client about the battery level of our device we want to implement theSIG Battery Level Service.After configuration through CubeMX, the Service is visible and the value can be read.However, how can you update the value being read or how do you notify a client (notify is enabled).Detailed Problems:1) I would like to update a specific characteristic. Therefore I used "aci_gatt_update_char_value()". But it seems I'm, not allowed to change the value while the service is running. An error-handler gets called.2) I would like to notify a client of new data. Therefore I tried to implement the "Hear Rate Measurement" from the "BLE_Custom" template. In the code I get the "CUSTOM_STM_HRS_M_NOTIFY_ENABLED_EVT", but how can I change the value and notify the client?PS: I have already asked this question under another tag: "Documentation/Ressources for BLE "Custom Template" CubeMX"
I have implemented STM32WB P2P Router connection with following P2P Server1 to 6.In my application I need to connect more than 6 devices in the same room or hall so I can use 2 P2P Routers but P2P Server will get repeated.How can I manage this situation?
I made my test codes on nucleo(32wb55) and it worked.But i have a problem on My Custom Board.I try Cable Replacment application on my board, but my sw isn't pass "hci_reset" section on "ble.hci.le.c"...When I look at the crystals(HSE_32Mhz and LSE_32,768Khz) with an oscilloscope, there is no problem.My current .bin version: V1.12.0 / 24-June-2021 (stm32wb5x_BLE_Stack_full_fw.bin)My custom board µC : STM32WB55VGY6TRtBleStatus hci_reset( void ) { struct hci_request rq; tBleStatus status = 0; Osal_MemSet( &rq, 0, sizeof(rq) ); rq.ogf = 0x03; rq.ocf = 0x003; rq.rparam = &status; rq.rlen = 1; if ( hci_send_req(&rq, FALSE) < 0 ) // <<<----my code don't pass here. return BLE_STATUS_TIMEOUT; return status; }@Christophe Arnal @Necronomicon @towynlin
Hi,The ble stack provided follows BLE V5 protocol, which means that it should be possible to have multiple slaves or multiple master connections. I'm trying to build an application that would be a server/slave capable of connecting to multiple clients ie. the device would still be advertising after a connection has been made. Does the stm ble stack support this and are there examples/documentation I could use to build?I'm working with stm32wb55 nucleo board.Thank you
I am using following snippet after the BLE Advertisement stops. I am using p2pserver example in which BLE Advertisement stops after 60 seconds and I have a timer of 65 seconds in which I have following snippet.HAL_SuspendTick();SET_BIT(PWR->CR3,PWR_CR3_RRS); //RAM retention in standby mode (SRAMa);LL_C2_PWR_SetPowerMode(LL_PWR_MODE_STANDBY);HAL_PWR_EnterSTANDBYMode();But somehow i am getting 5 to 6 mA even after this snippet means it is not going into standby mode. I already made the configuration as follows:/** * keep debugger enabled while in any low power mode when set to 1 * should be set to 0 in production */#define CFG_DEBUGGER_SUPPORTED 0/** * When set to 1, the traces are enabled in the BLE services */#define CFG_DEBUG_BLE_TRACE 0/** * Enable or Disable traces in application */#define CFG_DEBUG_APP_TRACE 0Please guide me. Thanks in advance.
Hello,I'd like to debug the I2C Master/Slave example located at:..\STM32Cube\Repository\STM32Cube_FW_WB_V1.12.1\Projects\P-NUCLEO-WB55.Nucleo\Examples\I2C\I2C_TwoBoards_AdvComITI have the 2 Nucleo WB55 boards with proper I2C connection, And have a CubeIDE debug environment.Is it possible to open both the Master and Slave projects running on different Nucleo platform simultaneously on the same ST Cube IDE? Is it similar for dual core debugging ?Thanks In Advance,Micha
Good day! I have 2 NUCLEO -WL55 boards. I want to use them to interrupt the charging of the device through LoRa communication. I want to use the PingPong example with a physics layer. But when I try to connect the ADC using CubeMX, the project falls apart. I'm trying to build a project from scratch, putting together a project, connect a radio.h library, but OnTxDone, OnRxDone, OnTxTimeout, OnRxTimeout events in the subghz_phy_app.c file are not generated. Please tell me my mistake and how to connect the events
Multiple Zigbee examples in STM32Cube_FW_WB applications tree fail to start by triggering assertion failure in APP_ZIGBEE_ConfigEndpoints.The code under questions isstatic void APP_ZIGBEE_ConfigEndpoints(void) { struct ZbApsmeAddEndpointReqT req; struct ZbApsmeAddEndpointConfT conf; memset(&req, 0, sizeof(req)); /* Endpoint: SW1_ENDPOINT */ req.profileId = ZCL_PROFILE_HOME_AUTOMATION; req.deviceId = ZCL_DEVICE_ONOFF_SWITCH; req.endpoint = SW1_ENDPOINT; ZbZclAddEndpoint(zigbee_app_info.zb, &req, &conf); assert(conf.status == ZB_STATUS_SUCCESS); ... }conf structure is not initialized, and it seems ZbZclAddEndpoint does not touch it at all leaving status member as is, causing the assertion to fail.This problem is observed in multiple applications, OnOff_{Server,Client}_Distributed, OnOff_Client_Router and OnOff_Server_Coord. Other applications are very likely to have to the same problem.
Hi All,I'm using the P-NUCLEO-WB55-Nucleo and I'm using all the two CPUs (CPU1 + CPU2). I must put the all board in the stop mode, I've downloaded the example PWR_EnterStopMode but I've some doubs about the manage of the CPU2 to entering in stop mode. Do it exist some examples that shows how to manage all the CPU in order to enter in stop Mode?
STM32WL RM0461 Rev 4On pages 1145 and 1146 wrote "EIE = 1 in the LPUART_CR1 register", but actually EIE in LPUART_CR3 register.
Whenever I created a new project based on LoRaWAN Skeleton, it doesn't generate MX_GPIO_Init() in any file. This requires user to write their pin configuration manually, compared to the other project that are not based on LoRaWAN Skeleton where MX_GPIO_Init() is generated automatically.Board:STM32 Nucleo-WL55JCCustom board based on STM32WL55CCIDE:STM32CubeIDE v1.7.0Code Generator:STM32CubeMX v6.3.0STM32CubeWL package version:v1.1.0Is it a bug or something I don't know?The code below is the main.c file, where I've done configuring my self-defined pin via STM32CubeMX. Because there is no MX_GPIO_Init(), I have to write it manually./* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) 2021 STMicroelectronics. * All rights reserved.</
Hi,We are tying to run sigfox pushbutton app on Seeeds lora e5 module what has a stm32wl mcu built in. I have configured the radio control switch gios according to the lora e5 module and also changed the tx power define to High power. have also changes the button and the led gpios.Now the situation is when I press the button the led blinks 3 times as intended for sigfox app but no data received on the sigfox back end. One thing to mention is that, i have done the commissioning which includes copying chip certificate and get pac and dev ids files from st and programming them into stm32wl using cube programmer. these are done and the device is also registered on the sigfox backend. The sigfox covererage is there too in my area and i have tried taking the device to different areas, But still i cant get any packets received on sigfox backend. i have also used external antenna but still no luck.what could it be?I am suspecting something in the code.Can anyone help me and let me know what el
Hello Every one i am using the STM32WB35CC SoC for custom BOARD, I am facing an issue that when i tries to write EEPROM I get correct response checked using Logic Analyzer but when i tried to read eeprom I GET HIGH impedance with every address. The Eeprom i am using is CAT25320 .... waiting for solution
aci_hal_tone_start(..)fails for channels 3 and 4aci_hal_rx_start(..) fails for channel 3hci_le_transmitter_test(..) works on all channelshci_le_enhanced_transmitter_test(..)fails for channel 3,4,5,6hci_le_enhanced_receiver_test(..)fails for 3,4All fail with INVALID_HCI_CMD_PARAMS (0x12)all methods fail regardless of the other supplied parameters.What is causing this?Info:FUS: v1.1.0Wireless Stack: v1.6.0STM32WB55CE
I have been using the APP_LOG() macro from stm32_adv_trace.c to output messages while developing with the STM32WL55. This uses DMA transfers with the UART.I thought it would be useful to use the SWD debug port for console output, instead of the UART. I have got it working, but my code is involved a few hacks and I wondered if ST or others have a proper version they could share?If not, here is some of what I learnt.Console output (and other useful features) are available on the SWO pin (which is PB3 on my processor). If properly enabled in STM32Cube then characters can be displayed on a "SWV ITM Data Console".You will find quite a few online tutorials for directing printf() output to SWO instead of UART TxD. At the lowest level this involves changing this:int __io_putchar(int ch) { HAL_UART_Transmit(&huart2, (uint8_t *)&ch, 1, 0xFFFF); return ch; }to this:int __io_putchar(int ch) { HAL_UART_Transmit(&huart2, (uint8_t *)&ch, 1, 0xFFFF); return ch;
Hello, I am new to the STM32 world.my little board STM32 (LoRa) form ChinaST-LINK SN : 53FF6D066687505145250967ST-LINK FW : V2J38S7Board : --Voltage : 3.26VSWD freq : 4000 KHzConnect mode: NormalReset mode : Software resetDevice ID : 0x699Revision ID : Rev ZDevice name : STM32WLxxFlash size : 128 KBytesDevice type : MCUDevice CPU : Cortex-M4BL Version : 0xc2Read Out Protection: RDP : 0xAA (Level 0, no protection) BOR Level: BOR_LEV : 0x0 (BOR Level 0 reset level threshold is around 1.7 V) User Configuration: nBOOT0 : 0x1 (nBOOT0=1) nBOOT1 : 0x1 () nSWBOOT0 : 0x1 (BOOT0 taken from PH3/BOOT0 pin) SRAM_RST : 0x1 (SRAM1 and SRAM2 are not erased when a sy
Is it possible to confirm the parameters and peripherals are used properly in order to work with BLE (SPBTLE) I used the MKSBOx1V1 Schematic and MX Cube and Firmware version is 1.17.0 is that is ok?
I am trying to make a simple BLE scan and advertising program which is supposed to advertise a set of changing data and scan for other devices. The advertising is completely non-connective and works as a dumb beacon, and so is the scanning. The application is based on the HRS FreeRTOS example for the nucleo wb55, modified to remove the HRS-specific parts and with simple advertising and scanning added. After app_ble is done with all the initializing it goes on to create the advertising data and run aci_gap_set_discoverable with the correct settings (non-connectable, min advertising interval of 70 ms, maximum of 130, public address, no white-list) and add the advertising data using aci_gap_update_adv_data.Then it runs aci_gap_start_observation_proc(0xA0, 0x60, 0x00, 0x00, 0x00, 0x00);, which should mean scan interval of 100 ms, scan window of 60 ms and no filters.None of these commands return an error but seem to run just fine.The scan packets are received through SVCCTL_App_Notification
Hello, I need to add characteristics without using the mechanism of the ioc configuration file. After only 3 (!) characteristics, the function aci_gatt_add_char( ) returns BLE_STATUS_OUT_OF_MEMORY.The available documentation is not usable to find a solution. Why isn't there any chapter in pdf like AN5270 or UM2550 which simply explains how to do (The better way would be to increase your ioc tools to get done the job).A customer told me that your "BLE software stack, c'est de la merde"... "It is too complicate (you should compare it to silabs or nordic) and with many errors."RFCBest regardsPaul
It seems to enroll well to APP but when I try to send a message the aci_gap_init return the status value 0x46, BLE_STATUS_NOT_ALLOWED/* USER CODE BEGIN FD_WRAP_FUNCTIONS */tBleStatus P2PS_STM_App_Update_Buffer(uint16_t UUID, uint8_t *pPayload, uint8_t length){uint8_t role = GAP_PERIPHERAL_ROLE;uint16_t gap_service_handle, gap_dev_name_char_handle, gap_appearance_char_handle;tBleStatus result = BLE_STATUS_INVALID_PARAMS;result = aci_gap_init(role, 0, APPBLE_GAP_DEVICE_NAME_LENGTH, &gap_service_handle, &gap_dev_name_char_handle, &gap_appearance_char_handle); switch(UUID) { case P2P_NOTIFY_CHAR_UUID: result = aci_gatt_update_char_value(gap_service_handle, gap_dev_name_char_handle, 0, length, pPayload); break; default: break; } return result;}Thanks,
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.