Ask questions and discuss STM32 wireless solutions and their implementation for running Bluetooth LE, Zigbee, LoRaWAN applications.
Most recent activity
Hi, I have shared my project schematic. it's should work or not? (SMPs not used)Problem : BLE cannot advertise, but this configuration in STM32CubeIDE can work with NUCLEO-WB55.
I'm using the STM32WLE5JBI6 part which has 128kB Flash and 48kB SRAM but it is not clear what address these have as the STM32CubeMX generated linker and header files is for the 256kB Flash and 64kB SRAM partAm I correct in thinking the layout for this part is as follows:Flash start address: 0x08000000 length: 128KSRAM1 start address: 0x20000000 length: 16KSRAM2 start address: 0x20008000 length: 32KIf so this is quite strange as the SRAM memory is no longer contiguous but I can't see anything that says otherwise
I have a self-design STM32WB board and properly flash "stm32wb5x_FUS_fw.bin", "stm32wb5x_BLE_Stack_full_fw.bin" and "BLE_TransparentMode_reference.hex" STM32_Programmer_CLI.exe. Now I am trying to use STM32CubeMonitor-RF. When I try to connect to it sometimes I receive "Device under test not responding. COM port closed". However, sometime it is connected and after some other actions be disconnected. The ACI Log is as follows:Can anyone help me to resolve this problem?Thanks.
The Mesh Library file ist in STM32CubeWB\Middlewares\ST\STM32_WPAN\ble\mesh\Library.And the user API is in ble_mesh.h.When i want to use it how it is described in ble_mesh.h there are many undefined references, so i have to implement many functions, but nowhere is described what and how it really works.All resources that i can find only describe how the ST Middleware works with the examples, but not really in Detail and without an Development Board.So can i use the Library without the ST BLE Mesh Middleware?
hello thereI am useing stm32L496 with SX1262DVK1DAS lora module.As firmware, I am using the latest firmeware I-CUBE-LRWAN 2.1.0As lorwan server is am useing public lorawan network.I am testing my device with CLASS_A and CLASS_C modes.my Lorawan perameters are ACTIVE_REGION LORAMAC_REGION_US915 APP_TX_DUTYCYCLE 30000 LORAWAN_USER_APP_PORT 2 LORAWAN_DEFAULT_CONFIRMED_MSG_STATE LORAMAC_HANDLER_CONFIRMED_MSG LORAWAN_ADR_STATE LORAMAC_HANDLER_ADR_ON LORAWAN_DEFAULT_DATA_RATE DR_1 LORAWAN_DEFAULT_ACTIVATION_TYPE ACTIVATION_TYPE_ABP LORAWAN_DEFAULT_PING_SLOT_PERIODICITY 4 US915_MAX_NB_CHANNELS 72 US915_TX_MIN_DATARATE DR_1 US915_TX_MAX_DATARATE DR_4 US915_RX_MIN_DATARATE DR_8 US915_RX_MAX_DATARATE DR_13 US915_DEFAULT_DATARATE DR_1 US915_MIN_RX1_DR_OFFSET 0 US915_MAX_RX1_DR_OFFSET 3 US915_MIN_TX_POWER TX_POWER_14 US915_MAX_TX_POWER TX_POWER_0 US915_DEFAULT_TX_POWER TX_POWER_0 US915_DEFAULT_MAX_ERP 30.0f US915_DUTY_CYCLE_ENABLED
Hi everyone!I am trying to make the LoRaWAN Fragmented Data Blok Transport package work. As a first step, my goal is to send a file such as a txt document (or whatever) to my end-device.I work with a STM32WL and an End_Node project. I have already added packages to my End_Node project in order to enable Clock Synchronization feature and Multicast feature. I can clock synchronize my device and I can send multicast frames. It works well.Now, I want to add the Fragmented Data Blok Transport package. However, the files provided in the STM32WL package from ST are mixed up with FUOTA files. Moreover, the proposed files are pre-designed to do FUOTA. However, I only want to enable fragmentation.The questions are:- Does anyone know which files I have to add to my project?- I suspect that there will be some changes to make in files. What are the main modifications I must do if I want to achieve my goal?
Hi,I have stm32wle5 and a circuit to measure current. stm32 will generate a PWM using timer1 ch1. The opamp's output is also connected to the ADC input of stm32. I want to measure the current (read ADC values) when PWM is on. Preferably in the middle of the PWM high edge. In most of the examples, people use internal triggers to trigger ADC. I thought as all channels of one timer have the same frequency, can I use one channel to output pwn and another channel as PWM generation without output just to trigger ADC? And set their duty_cycle and everything the same? I'm unsure if they are entirely synced and if this is the right solution. Do you have any other recommendations? I also don't know how to do the measurement at the middle of PWM's high edge.circuit:timer1 and channel one config:timer1 ch2 config: ADC config: Note that I don't do a continuous conversion and just want one or maybe a few samples and take the average in each PWM period.Any help would be appreciated.ThanksUP
I am using the LPTIM1 to aquire a sensor measurement trough interruption each T period. When I set it in continous mode (reference manual says: To enable the continuous counting, the CNTSTRT bit must be set) everything works out well. HAL_LPTIM_TimeOut_Start_IT(&hlptim1, LPTIM1_PERIOD, LPTIM1_TIMEOUT);LPTIM1-> CR |= 0x00000005; // Enable and software trigger LPTIM1 in continuous modeHowever, I want to set it in single-shot mode (reference manual says: "To enable the one-shot counting, the SNGSTRT bit must be set). So I write:HAL_LPTIM_TimeOut_Start_IT(&hlptim1, LPTIM1_PERIOD, LPTIM1_TIMEOUT);LPTIM1-> CR |= 0x00000003; // Enable and software trigger LPTIM1 in single-shot modeBut the counter keeps going and going as in continuous mode, same behavior. Am I doing something wrong?? I tried both with TimeOut_Start_IT and Counter_Start_IT and the behavior is the same.
안녕하세요 개발�?입니다.현재 Bluetooth 쪽 관련 개발�?� 하고 있습니다.문�?�드릴 내용�?� P-NUCLEO-WB55 개발보드�?�STM32WB55RGV6, STM32WB55CGU6 (Dongle)를 BLE 모드가 아닌 기존�?� Classic 모드 ( BR/EDR) 모드로�?� 사용할수 있는지문�?�드립니다만약�? 안�?�다면, 혹시 BR/EDR �?� 지�?하는 MCU가 있는지 문�?�드립니다.�?사합니다.문�?�드립니다.
Hi.I'm having hard time with my custom board based on STM32WB15CC.I referred Nucleo-WB15 schematics but using ST-Link V2 instead of ST-Link on Nucleo Board.I had an experience of STM32F411 so I thought this time I also can do it by STM32WB15. However after I finished soldering and I'm just seeing 'No device found on target'.Is there anyone can advice me of my schematics?If schematics are not right way, I'm going to fix it. However, if schematics are right, maybe it will be soldering problem. I tried 3 boards to find my device by ST-Link but all of them are failed.
I work around a project based on STM32WB55.In this project it is necessary to keep a clock / calendar when the card is off.We usually use external real time clock / calendar such as PCF85063A.I work with the core board and try to use the WB55 RTC, with the VBat pin connected to an supercap cell, The VBat is enabled with 1.5K resistor and load correctly the supercap. If i do an software reset is all ok.When take out the power and restart it, the VBAT pin stay to 3V for long time, but my RTC will go back to 0 to all register calendar and time.You can help me?Thank you
Hello,I have STM32WLE5CBU6 and I communicate with my Quectel chip over standard UART communication (interface LPUART, PA2, PA3) via AT commands. Transmitting from STM to Quectel is always working well, but when I want to read response from Quectel chip, it in most cases does not work. Strange thing is that it sometimes after startup works (< 1 % of cases), however I do not have an idea why it sometimes works and sometimes does not.The behavior is the same all the time from power on:When it receives correctly first AT response, it receives correctly any other response.When it does not receive correctly first AT response, it does not receive correctly any other response.Sometimes it is ok the whole day, but when I try it again after a day, it stops working.I have tried:Changing domain voltage on Quectel chip (3,3 V and 1.8 V)Connecting oscilloscope to RX of STM - voltage levels seems to be okConnecting CH340 in parallel - CH340 reads correctly all responses from Quectel chip and STM d
Hello,I need to write data in the flash memory but i always have a hard fault !please check my code if some one can find the Issus ! (i written my own functions because i do not use hal library)void FLASH_Write_64(uint32_t WriteAddr, uint64_t *data, uint16_t NumToWrite){ uint16_t write_index = 0; //Unlock the Flash to enable the flash control register access FLASH_IF_Unlock(); //calculate the user Flash area uint32_t StartPage = FLASH_IF_GetPage(WriteAddr); uint32_t EndPageAdress = WriteAddr + NumToWrite*8; uint32_t EndPage = FLASH_IF_GetPage(EndPageAdress); //Erase the user Flash area FLASH_IF_Erase(StartPage, (EndPage - StartPage +1)); //Program the user Flash area word by word while(write_index < NumToWrite) { FLASH_IF_Program(WriteAddr, data[write_index]); WriteAddr += 8; write_index++; } //Lock the Flash to disable the flash control register access (recommended //to protect the FLASH memory against possible unwanted operation) FLASH_IF_Lock();}void FLASH_IF_Erase(uint32_t Fi
I have two P-Nucleo-WB boards and both of them end up in this state.CubeIDE trying to load binary:CubeProgrammer: Found several topic that looks the same however nothing helped. Has anyone solved this problem?
I made an acquisition board with STM32WB55rgv6. I want to save ads1299 sampling data to SD card by FATFS(via spi). But my write speed is only 1KB. Here are the measures I have tried:①Improve SPI clock②Replace faster SD card③Mybuffer is 51200BAlthough every time I write in a single block instead of multiple blocks, and I only use SPI, not DMA. But the write speed is too low, only 1KB. I've browsed through many measures, but they still haven't saved me.
int8_t set_tx_power = 6; int8_t get_tx_power = 0; /* Set the radio's transmit power in dBm. */ error = otPlatRadioSetTransmitPower(NULL, set_tx_power); if (error != OT_ERROR_NONE){ } /* Get the radio's transmit power in dBm.*/ error = otPlatRadioGetTransmitPower(NULL, &get_tx_power); if (error != OT_ERROR_NONE){ } APP_DBG("Transmit Power = %d", get_tx_power); The transmit power is always 0, I used STM32WB5MM-DK to do the test.
For example, I use usb_dongle as TransparentMode to connect the P-Nucleo-WB55. I want to STM32MON_RF to view the battery level notification and I want to save the data, i don't know how to store bu using this tool...:face_with_tears_of_joy:
Hello everyone,I wonder if it is possible to develop and run a custom coprocessor firmware on the Cortex-M0 of the chip. From what I understood so far, the FLASH and RAM portions dedicated to FUS, Safeboot, and Wireless Stack are locked from the factory, with the FUS being the only possibility to write anything to it. And since the FUS appears to perform a digital signature check for any firmware sent to it, there isn't an easy way to flash your own. So, is there an official way to do it?From what I understand about the boot process of CPU2 (i.e., the Cortex-M0), it gets started by the CPU1, but its start offset from the secured option bytes. The manuals (and my own unsuccessful attempt) tell me that the secured option bytes can only be written by the CPU2, so any normal attempt to write to them (e.g., with the STM32CubeProg tool) will fail. But shouldn't I be able to, in principle, create a program for the Cortex-M0, write it so some designated portion of the flash, disable all the se
Hi all,I have my own customized board based on STM32WB55RGV6. The board has HSE of 32 MHZ but don't have LSE. I am using LSI or (HSE/32) as RTC clock and HSE/1024 as RF wakeup clock. I am facing two different problems.Case 1: First I tried with examples of BLE including BLE_P2P_Server, BLE_Custom and BLE_HeartRate from CubeMX. (Only change I did is disabled the LSE and hence LPM (low power mode) and relevant clock source setting). When I downloaded and tried to run the application, I always get HardFault from MX_APPE_Process(); more specifically when executing following /* Execute the task */ TaskCb[CurrentTaskIdx]( );Case 2: Then after I tried to develop a project on CubeMX from scratch by selecting STM32WB55RGV6 chip (Not Nucleo board). I just made bare minimum settings with HeartRate sensor service just to see if it runs or not.After downloading and running, I can see my device in ST BLE Toolbox android app but when I try to connect it with board, it doesn't get connected
I've seen that it's support Bluetooth 5.2 which added LE Audio feature.Is it possible to make SSTM32WB55-based sound device (i.e. BLE to 3.5 mm jack converter)?And how if so?
Hello,My firmware sends data to TTN when I double push on the button of my board. When the first push is detected, the board wakes up from low power mode and a timer is launched to detect if there is a second push. At the end of the countdown, if there was another push, the board sends data. Then, the counter of pushs variable is reset and the board goes in low power mode.I configured the Timer2 in order that it makes cycles of 500 ms : clock source : internal clock (48 MHz) prescaler : 1000 counter period : 24000 auto-reload preload so time interval is : (1 000 * 24 000) / 48 000 000 Hz = 0.5 seconds My problem is no matter what the value of counter period x prescaler (I tried with 12 000 000, 24 000 000, 4 800 000, 48 000 000), the timer counts cycles of 1min30 (I toggle a LED when a new cycle begins).Do you have any idea what I did wrong or miss in my firmware ? I can add the source code if ne
I am using the STM32WB55 Series for my application. I am using BLE and Zigbee on this MCU. I am registering my devices for FDA/CDSCO certification. The department is asking for ETA certificate. DO we have ETA Certificate for Controller?
I already got it: CPU2 is not accessible by customer (at least, using official SDK).Anyway, we have an WB-based project that will hugely benefit from offloading some resource-consuming tasks to CPU2. They are not related to radio, we're not using any kind of wireless stuff at all. WB was chosen because of price and compact QFN package.My first question: is that an SDK-level limitation, or is it possible to extend SDK with proper register definitions, IRQ vector tables, linker scripts etc (using SDK for WL series as a reference, where for some reason CPU2 is fully unlocked) to be able to build custom binaries for CPU2?My second question: if I'm not interested in radio-related applications at all, is it possible to wipeout FUS completely and unlock access to protected flash regions? Even if FUS 'self-destruction' will be irreversible.This CPU2 access restriction in WB series in non-radio applications is a bit artificial to me, given that WL series offers no such restriction (alas doublin
I'm working with STM32WL and trying to be able to generate PWM signal after wake up from STOP2 to control RGB LED. Before going to STOP2 I deinitialize PWM channel pin and disable timer clock. MCU wakes up on button press. After wake up timer clock is beeing enabled and channel pin is reinitialized. Despite that the LED is off. What else should I do to make it work or what I've done wrong? /* USER CODE BEGIN 2 */ GPIO_InitTypeDef GPIO_InitStruct = {0}; /* Green LED on */ HAL_TIMEx_PWMN_Start(&htim16, TIM_CHANNEL_1); __HAL_TIM_SET_COMPARE(&htim16, TIM_CHANNEL_1, 1000); HAL_Delay(500); /* DeInit of LED pin, disable TIM16 clock */ HAL_TIMEx_PWMN_Stop(&htim16, TIM_CHANNEL_1); HAL_GPIO_DeInit(LED_G_CH_GPIO_Port, LED_G_CH_Pin); __HAL_RCC_TIM16_CLK_DISABLE(); /* Enter STOP2 */ HAL_SuspendTick(); HAL_PWREx_EnterSTOP2Mode(PWR_STOPENTRY_WFI); /* Wake up from STOP2 on button press */ SystemClock_Config(); HAL_ResumeTick();  
Hi,I am using Zegbee messaging cluster on STM32WB55 to send messages between some Zigbee end devices and a coordinator.Each end device measures the temperature via I2C sensor and sends a message with the temperature value to the coordinator and then goes to sleep mode for 5 seconds. The software works well.But when I try to also measure the reference voltage to send its value with the temperature value in the message, the software freezes!In app_zigbee.c:static void APP_ZIGBEE_InitMsg(void){ APP_DBG("APP_ZIGBEE_InitMsg"); uint8_t buf22[59]; memset(buf22, '\0', sizeof(buf22)); char buf0[]="TM+1+"; strcat(buf22, buf0); // Adding some text to the meassage uint8_t buf2[3]; memset(buf2, '\0', sizeof(buf2)); float temp_c2 ; temp_c2 = TMP117_get_Temperature2(hi2c3); // measuring the temperature sprintf((char*)buf2,"+%d", ((int)temp_c2 / 100)); strcat(buf22,buf2); /
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.