Ask questions and discuss STM32 wireless solutions and their implementation for running Bluetooth LE, Zigbee, LoRaWAN applications.
Most recent activity
Hello!I'm attempting to set up the BLE AT Client example in the STM32U5 firmware package on a B-U585I-IOT02A board. I've managed to flash it, but when I run it on the debugger (through the ST-Link v3 USB port), the "AT" and "AT+BLE_SVC=1" commands sent to the STM32WB module both return error messages.I'm thinking it's something to do with how I originally configured the hardware, but I've been stuck for a while on it. Does anyone happen to have any ideas or fixes?Thank you,Jake U.
I think I have had the same issue as: https://community.st.com/s/question/0D53W00001Z9hswSAB/code-generation-problem-for-rtc-with-stm32wlHowever that thread never got answered so I post again, this time with additional information.Im using STM32CubeIDE 1.9.0Build: 12015_20220302_0855With MXVersion: 6.5.0-RC4Build: 20220225-1913Original IOC File working.Then I enable RTC Calibration output on PA4This silently makes lorawan settings glitch. Very easy to miss.If I change "unknown" back to "RTC", then everything works as expected.But if code is generated now, then we will get the AfterGlitch.ioc file (attached) and and we have the issue of hrtc renamed to h (among other things), see image below.
I have set the data length as variable. The code generate in custom_stm.c also aci_gatt_add_char as CHAR_VALUE_LEN_VARIABLE. But in the Custom_STM_App_Update_char function, it always sent and static const charValueLen.I fix it by cloning Custom_STM_App_Update_char and add length parameter. It works, The data I sent is not alway const length. But I don't know how to sent a variable data normally.
Hi,I want that my user can re-program (through my application) some upper part of flash for configuration of the device, e. g. the upper 100 kByte.Until now, I used STM32G473, there this was no problem, as this was dual-bank memory device.Now I would like to do this with STM32G491 (and also with STM32WB55). These devices are single bank, and in the Reference Manual there is a "nasty" warning: "The contents of the Flash memory are not guaranteed if a device reset occurs during a Flash memory operation." (RM STM32G4, 4.3.5).Does this "possibly destroyed Flash memory" refer only to the 64 bit of current Programming cycle during reset time, or might there also be the danger, that the lower Flash memory (where my applications resides) is ALSO defect after such a reset?(This would be quite catastrophic, the device would then be "practically defect" to the customer, the customer would have to send back the device to us for "re-programming" the firmware).Is there some way to guarantee, that so
Hello, I am using a p-nucleo-WB55 and I am trying to use DMA to read two internal channels : - Internal temperature sensor - VbatHere is my code :#define VDDA_APPLI (3300U) uint16_t ReadVbat(uint16_t value) { return (value/65536)*VDDA_APPLI*3; } int main(void) { HAL_ADCEx_Calibration_Start(&hadc1, ADC_SINGLE_ENDED); uint16_t ADC_Results[2]; uint16_t ADC_TEMP = 0; uint16_t ADC_VBAT = 0; while (1) { HAL_ADC_Start_DMA(&hadc1, (uint32_t*)ADC_Results, 2); if (overflow == 1) { ADC_TEMP = __LL_ADC_CALC_TEMPERATURE(VDDA_APPLI, ADC_Results[0], LL_ADC_RESOLUTION_12B); ADC_VBAT = ReadVbat(ADC_Results[1]); } overflow = 0; HAL_Delay(100); } }Here is the configuration of the ADC : /** Common config */ hadc1.Instance = ADC1; hadc1.Init.ClockPrescaler = ADC_CLOCK_ASYNC_DIV1; hadc1.Init.Resolution = ADC_RESOLUTION_12B; hadc1.Init.DataAlign = ADC_DATAALIGN_RIGHT; hadc1.Init.ScanConvMode = ADC_SCAN_ENABLE; hadc1.Init.EOCSel
I stored the two 32-bit variables on the stm32 EEPROM. the issues were the first 32-bit value is stored perfectly but the other 32bit are shifted and stored in the stm32 EEPROM but it is not stored. Why is it not stored? help to me
..
In my condition, I have to use the AU915 frequencies due to the rules of my localization. So, I changed the frequency in the compiler and in the firmware I updated the connection mode to ABP, because I've been working with LoRa and for me always worked better. Done all this, the uplinks and the downlinks comes to the network, but the uplink does not come with a payload. And the downlink is always a downlink request...In Teraterm shows that the tx is done, but the rx time out.I already tried to change all the Lora keys, disable ack, try OTAA, change rx default datarates and it looks like never solve the problem...If someone have an information about this, I would really appreciate some help in this problem.
I want to build USB-BLE bridge using nucleo board - something like virtual serial connection between boards. I want to connect both boards using Bluetooth interface. Then USB dongle should forward data from USB CDC to Nucleo board and vice-versa from board to PC.Is there same examples tutorials for that application? Something in STM32CubeWB to start with?
Hi,I finally got my zigbee up and running on v.13.xx but it stops working, properly in M0 core after 5-20seconds.However I thought it would be good to go to 14.1, so i did, made a project.But i cannot compile the project.It is based on Cube...I get this error:Why do it not find it, there is some references in the code, but it may be library missing or?Please adviceThanksKasperc:\st\stm32cubeide_1.6.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\ld.exe: ./Middlewares/ST/STM32_WPAN/zigbee/core/src/zigbee_core_wb.o: in function `Zigbee_CallBackProcessing':C:/Users/8/STM32CubeIDE/workspace_1.6.1/Zigbee_1_4_start/Debug/../Middlewares/ST/STM32_WPAN/zigbee/core/src/zigbee_core_wb.c:3800: undefined reference to `zcl_cluster_data_ind'c:\st\stm32cubeide_1.6.1\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.0.202111181127\tools\arm-none-eabi\bin\l
Hi all,I'm on a P-NUCLEO-WB55 Nucleo Board (MB1355C) and I'm trying to connect an example to a Windows (Win10) PC via BLE.I'm using the latest firmware version STM32Cube_FW_WB_V1.13.2 and flashed the Copro Wireless binary stm32wb5x_BLE_Stack_full_fw.bin to the board.Actually I want to connect the BLE_DataThroughput example. I configured #define CFG_BLE_CENTRAL 0 and CFG_SERVER_ONLY 1 (in app_conf.h) to use one board (as it's described in the readme.txt).There are no problems connecting this example to my smartphone. I can use the apps from ST, but I can also use other apps (like Bluetooth LE Scanner on Android) which produces this Debug Output of the STM32WB board in a console:Wireless Firmware version 1.11.1<\n> Wireless Firmware build 1<\n> FUS version 1.2.0<\n> <\n> SHCI_SUB_EVT_CODE_READY - WIRELESS_FW_RUNNING <\n> DBGMCU_GetRevisionID= 2001 <\n> <\n> Wireless Firmware version 1.11.1<\n> Wireless Firmware build 1<\n> FUS version
Hi, I'm using a couple of functions: tBleStatus aci_gap_additional_beacon_start(...);and tBleStatus aci_gap_additional_beacon_stop();The point is that aci_gap_additional_beacon_stop() periodically returns error code 0x0C, which means "command disallowed". NOTE: I'm using STOP2 mode, if I comment out this part (not allow MCU enter sleep mode) the aforementioned function returns 0x00 all the time.How to use STOP2 mode in a proper way?
Hi,I'm struggling to add low-power features to my device application, hopefully I can get some help here.What do I want?My device is sampling sensor data (52Hz) and saving it periodically to external flash memory. When the device is running in sampling mode I do not want to do anything with Bluetooth (CPU2). If possible I want to have it fully disabled!What have I tried?Read the Low Power manager description in this manual.Add the following to my application:• Create a user Id (CFG_LPM_Id_t) in app_conf.h • Call UTIL_LPM_SetOffMode() • Call void UTIL_LPM_EnterLowPower()ResultThis will indeed significantly decrease my power consumption, but it looks like CPU1 is set to OFF as well. My sensor processing stops as well as my interrupt triggers (DRDY) coming from a MEMS sensor. Similar behavior I have with UTIL_LPM_SetStopMode().Is there any way to have CPU2 power consumption to a minimum, independently from CPU1, which should sample data and input it to an AI model (so I guess it's not pos
Hello everyone,I am currently working on the hardware design of a STM32WB55 and there is an information I would like to clarify.In the AN5165, it is explained that the RF track should be matched at 50 ohms. However, on page 43/48 - figure 36, there is an extraction of results with a test bench used by ST showing the optimal impedance for TX, which is a bit different than the 50 ohms specified (result is Zopt,TX = 42 - j19).Which impedance should I target for my application ?Regards.
I'm developing an STM32WB55 microcontroller but I'm straggling with programming.I want to control the microcontroller using its BLE module but there is no good programming example. So, is there any recommendable example to write the memory of the microcontroller using BLE communication?
Hello,I just had some custom boards with STM32WB55RG and I would like to flash the BLE stack into the microcontroller.Files I'm trying to install on the device:stm32wb5x_FUS_fw.bin(v1_0_2)stm32wb5x_BLE_Stack_full_fw(v1_13_3)and firmware fileBut device bluetooth not working. I am sharing the cmd output on the screen. Could the error be that I installed the wireless stack without deleting it?
Hello,We are running STM32WB RTC block from LSE.Usually it works as expected (hours at a time).One in a while, the RTC->SSR resister jumps back (up as it is a countdown reg) couple of ticks (~100 ticks) and continues from the same point as normal.It happens with or without the RTC_CR_BYPSHAD flag (its just slightly harder to catch while using shadow registers as they require sync).Reading the SSR value twice does not change this behavior.It looks for example, like this if I read it in a loop:740674057404749474937492...RTC clock div is 16, prescaler is 7FFF.It is probably not an issue with the crystal as the time itself is accurate.Thanks in advance.
I have STM32WB55 nucleo pack.The installation of STM32CubeProgrammer brought two tools STM32MP_KeyGen_CLI.exeSTM32MP_SigningTool_CLI.exe. Following instruction https://wiki.st.com/stm32mpu/wiki/Signing_tool, a sample of signing command:./STM32MP_SigningTool_CLI -bin /home/User/BinaryFile.bin –pubk /home/user/publicKey.pem –prvk /home/user/privateKey.pem –iv 5 –pwd azerty –la 0x20000000 –ep 0x08000000What the load address and entry point for my STM32WB55 nucleo board?
Is STM32WB55REV6 has Trusted platform module (TPM) either integrated in to the microcontroller..? or additional module to enable the device level security (TBD).Can you please help me on the ablove
I need a 32-channel ADC system but my target microcontroller(STM32WB55) only has a 16-channel.So, I want to design two microcontroller systems but the timing would be the biggest problem.So, I wonder what's the best way to build a dual microcontroller system and how to make it communicate with each other and PC.
Hello,I wonder how the STM32WB device should be entered in SLEEP or STOP mode. Any specific actions to reduce the total consumption to the minimum, particularly thinking to the radio? When is it good to enter SLEEP or STOP mode ?If anyone can point a working example, it will be great :)Context : I have Thread (and in near future BLE+Thread) running on my device. I would like to put the total consumption to the minimum because the board is supplied with a small battery. Then periodically the device is wake-up, processing, sending data to the Thread network and finally goes to STOP mode again.Thanks,Joel
Hi All,I am trying to connect my p-Nucleo-wb55 board to a joystick using Bluetooth.the joystick I am working on is DualShock 4, and I have obtained its address from my PC.So is it possible to make a connection with the MCU with just the Bluetooth address?What Example would you recommend to use to build my project? I think it would be P2P_SERVER/CLIENT.Thanks in advanceMahmoud.
Hi... There Hope you all are doing well For the past few days, I'm dealing with the LoRaWAN Firmware having class-CIn my application, I need the continuous connection between Node to gateway and gateway to the Network server (As I want to receive the downlink continuously from the Network server)For the Firmware perspective, I'm using ST's I-CUBE-LRWAN Firmware packages having version 2.1.0 with ABP configuration For the LoRa chipset, I'm using SX1262 I'm dealing with the US frequencies at 915Mhz For the gateway, I'm using a multichannel indoor gateway from FriendcomFrom the Network server perspective, I'm using the private LoRaWAN network service hosted on AWS (https://github.com/gotthardp/lorawan-server)Problem statements:With class- C, I can send the uplink to the gateway and gateway to a Network server But unfortunately, Node unable to receive the downlink from the LoRaWAN network-serverTesting & Observation From the gateways logs, I can figure out
Hi,I wrote an application for the BME680 sensor on the LoRa-e5 (based on STM32WLE5JC).At the begin everything works normal but after about 70 minutes no more messages come to uart.in the Error Log I got this message:eclipse.buildId=Version 1.10.1 java.version=11.0.14.1 java.vendor=Eclipse Adoptium BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=de_AT Command-line arguments: -os win32 -ws win32 -arch x86_64 org.eclipse.cdt.dsf.gdb Error Mon Aug 08 14:13:47 CEST 2022 Error in final launch sequence: Failed to execute MI command: target remote localhost:61234 Error message from debugger back end: localhost:61234: Connection timed out. org.eclipse.core.runtime.CoreException: Failed to execute MI command: target remote localhost:61234 Error message from debugger back end: localhost:61234: Connection timed out. at org.eclipse.cdt.dsf.concurrent.Query.get(Query.java:112) at org.eclipse.cdt.dsf.gdb.launching.GdbLaunchDelegate.launchDebugSession(GdbLaunchD
MCU: STM32WLE5CCIDE: Stm32CubeIDE 1.9.0I have generated a project using MX and thought I'd try the generated function for reading the temperature SYS_GetTemperatureLevel().It seemed to output rubbish so I started digging.SYS_GetTemperatureLevel() calls:ADC_ReadChannels(ADC_CHANNEL_TEMPSENSOR);I didnt really understand the macros in the SYS_GetTemperatureLevel() so I wrote an own function, but it doesnt really matter as the error is visible immitiately in the ADC value without calculations.At room-temperature the result from the ADC_ReadChannels(ADC_CHANNEL_TEMPSENSOR); should be close to the calibration value at 30C, but it isnt.I Wrote the following test-code to see the intermediate calculations more clearly.I noted that I started getting sane values (see comments in code) when single-stepping the code and after a while I isolated it to that a 2-3 seconds (!!!) delay between ADC_Enable() and LL_ADC_REG_StartConversion()Seemed to give much saner values (see comments below).It is like
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.