Ask questions and discuss STM32 wireless solutions and their implementation for running Bluetooth LE, Zigbee, LoRaWAN applications.
Most recent activity
..
Which Cluster may use to send and receive data or string between Router and Coord?And how do I coding for that.Thank you.
The given example on LoRaWAN_End_Node software pack is transmit temperature, humidity, and pressure data. My main objective is to do the same thing but instead of send those three datas, I want to send the parsed GNSS data like how the SimOsGetPos did.My attemptI've replaces the SendTxData functinon with my own approach to replicate how SimOsGetPos works. Called both CUSTOM_GNSS_Init and GNSS_PARSER_Init and then set up a loop that will stop once the received data is valid.ResultThe program only done one data parsing and then it just stops (image attached).QuestionsWhy did my program stops after the first iteration and how do I fix that?I've attached my main.c and lora_app.c. I also attached the app_gnss.c that I used as reference to modify my lora_app.c file.Thank you.
Hello thereI am completely new in STM32, I need to use two SX1262MB2CAS shield to tx with one of them and rx from the other one.Do you know which drivers i will need and how to configure the stm32cubeide project to have acces to two stm32?
Hello, I tested the VL53L4CD with the Nucleo-STM32F401 using the ST-Example and I got Ranging readings. However, when I port the code to use the STM32WL55JC, I always get an I/O Error.I use the same pin configurations to drive the sensor as in the Example(STM32F4) but with no luck.The I2C is working but the Ranging is not, I noticed that CubeMX doesn't activate the NVIC interrupt-line for the GPIO1(The Sensor-interrupt-pin) and I can't enable it. I have 2 Questions:1- Are there any special configurations related to the STM32WL55JC when dealing with the GPIOs that I should take care of?2- How I can enable the EXTI-Lines for the interrupt pins that I'm using?Thank youAmir
Before this I'm launching my modified version of LoRaWAN_End_Node firmware, but my Nucleo Board keeps restarting and heating up so I unplugged the USB cable. When I tried to connect my board back I get a FAILS.txt file with the following contentThe interface firmware FAILED to reset/halt the target MCUI tried to connect my MCU to the STM32Cube Programmer with under reset configuration and trying all reset mode configuration but got no luck.Other things that I've tried:Disconnect JP1Connecting while pushing the reset buttonDoing point 1 and 2 at the same timeAnd still got no luck.Update:Connecting the JP1 jumper back and the heating issue is back (the MCU isn't dead, I guess(?))
Hey,I try to change the device name for my broadcast inside the initialization of the Ble_Hci_Gap_Gatt_Init() funtion. My implementation is the following:static void Ble_Hci_Gap_Gatt_Init(void){ uint8_t index; uint16_t gap_service_handle, gap_dev_name_char_handle, gap_appearance_char_handle; const uint8_t *bd_addr; uint16_t appearance[1] = { BLE_CFG_GAP_APPEARANCE }; /** * Initialize HCI layer */ /*HCI Reset to synchronise BLE Stack*/ hci_reset(); /** * Write the BD Address */ bd_addr = BleGetBdAddress(); aci_hal_write_config_data(CONFIG_DATA_PUBADDR_OFFSET, CONFIG_DATA_PUBADDR_LEN, (uint8_t*) bd_addr ); /** * Set TX Power to 0dBm. */ aci_hal_set_tx_power_level(1, CFG_TX_POWER); /** * Initialize GATT interface */ aci_gatt_init(); /** * Initialize GAP interface */ const char *name = "STM32WB"; aci_gap_init(GAP_PERIPHERAL_ROLE, 0, APPBLE_GAP_DEVICE_NAME_LENGTH, &gap_service_handle, &gap_dev_
We have a product that uses the STM32WB55RGV6 controller. Some of the boards start up without issue, some of them occasionally fail with the STM32WB55RGV6 processor not starting up, and others never start. We don't know if it is a grounding issue with the processor or perhaps the layout/capacitance of the external crystal, or another reason. There is a full ground plane on an inner layer, but I wonder if the ground plane under the processor should have more vias. Any help would be appreciated. Thanks, Bernie
Im using the Thread_Coap_Generic Example for the STM32WB5MM-DK (CUBEWB version 1.15.0). THe CPU2 Binary is as it is descibed in the readme.txt "stm32wb5x_Thread_FTD_fw.bin". I want to change the logging level of the Openthread. The Change of OPENTHREAD_CONFIG_LOG_LEVEL OT_LOG_LEVEL_WARNin openthread_api_config_ftd.h has no effect at all. If im using the function 'otLoggingSetLevel()' in runtime it does not give an error, but does not change the log level as well. It is hardcoded to Log level Info or what am i doing wrong?The AN5289 does also not really help, it describes a function 'otSetDynamicLogLevel()' that does not exist.
thanks. -wq
I had my NUCLEO-WB15CC running stack full v1.15 and today I decided to upgrade it to v1.16 and got "Warning: FUS_STATE_ERR_UNKNOWN". And now I have no stack and I'm unable to install it.And I can't even start FUS, when I try, I get those errors:Error: FUS_STATE_ERR_UNKNOWN: Unknown error Start FUS failed !Error: Start FUS Operation Failure! Please, try againMy problem is very similar to this, but I have latest FUS. IPCCDBA is 0x00, SBRV is 0x8400 and SFSA 0x31
Good afternoon everybody,I would like to determine acceleration values (in micro g's) by means of the EVAL-ADXL1002Z (analog single-axis accelerometer) evaluation board and the NUCLEO- WL55JC1 development board. Once this is done, I would like to transmit this data to TTN (The Things Network) network server. I should mention that I already have my own LoRaWAN network working correctly after following the LoRaWAN_End_Node example.I would really appreciate any help or example given to carry out these two tasks.Thank you for your time,Carlos
Ideally using something like the HCI_RESET command is preferable for our application rather than simply cycling power or resetting the system. Is there some procedure for recycling the M0 processor in the stm32wb while leaving the application processor running? I'm not finding any informatio on what to do after issuing HCI_RESET to try to get the BLE radio back up.Thank you.
Hello, I have been trying to send and receive data through UART using DMA on STM3WB55. Everything was working properly but suddenly HAL_UART_Transmit_DMA started to work unproperly: the program gets stuck in the Hard Fault function. I am calling HAL_UART_Transmit_DMA inside the function HAL_UART_RxCpltCallback. When I call it in the while loop in the main.c file, the program works good. My buffers are 71 and 273 long. Later I tried HAL_UART_Transmit and HAL_UART_Transmit_IT inside HAL_UART_RxCpltCallback but none of them works anymore. When I comment this line, the program works good.I attached the main.c , stm32wbxx_it.c and usart.c files.Here is the call stack untill it falls into the hard fault function:What I want to do is to send data after the reception is complete. The reception through HAL_UART_Receive_DMA seems to be correct. Just the transmit. Any clue? Thank you.
Currently I am using the firmware LocalNetwork_Concentrator and LocalNetwork_Sensor. The maximum Sensor nodes are 14. I wish to connect around 200 LocalNetwork_sensor. Kindly help me to make the required changes in the software.
HiI changed my old files(1.13) to the new files from 'heart rate ble free rtos' (1.15)Files: shci.h , app_conf.hCpu2 will not wake up. When I revert everything works.What is causing this?
Using either the default program or programming the BLE_TransparentMode default hex file results in this error. I have both a windows 10 and macOS 10.14.4 machine that I get this result. The VCOM port doesn't seem to be the issue as I can program and see the units. Any help would be much appreciated!
Hello,I have an ultra low power application and must share SRAM2a with BLE. For power reasons, RAM1, and SRAM2b cannot be used. The CubeProgrammer refuses to re-program SBRSA to anything but 0xA.More details:I am using Full BLE wireless stack: 'stm32wb5x_BLE_Stack_full_fw.bin'. SBRSA is programmed to 0xA, which matches the 10K provided to RAM_SHARED from the linker file. I believe, that means SRAM2a is completely occupied by RAM_SHARED (10 KB) plus the Secure section (22 KB).I would like to shrink RAM_SHARED based on the map file, and push SBRSA up to make room for my application's data. I need about 10 KB, but it will be nice to get more.I basically have three issues:1) What is the procedure/tool to reprogram SBRSA as CubeProgrammer refuses to program anything but 0xA.2) How much actual memory Full BLE Stack take from the Secure section. All 22KB?3) Is there anything in RAM_SHARED that is not specified by the map file?Thank you in advance.
Hi, I would like to ask how to remove bonded devices permanently on P-NUCLEO-WB55 eval kit and on dongle?Right now I have a situation, that after reset, even if I used 'aci_gap_remove_bonded_device' in a previous session, I see still bonded devices. I used also 'aci_gap_clear_security_db', but it works only in a current session. If I restart the board the bonded devices are still there - 'aci_gap_get_bonded_devices' returns 'Num_of_Addresses > 0'.In 'app_conf.h' I changed values of CFG_BLE_IRK and CFG_BLE_ERK to {0x00..0x00} or to {0xFF..0xFF} to enforce clear a non-volatile memory (clear LTK), but it didn't help too.Could you help?BR,Krystian
/* Flash Init */ uint32_t GetPage(uint32_t Addr) { uint32_t page = 0; if (Addr < (FLASH_BASE + FLASH_BANK_SIZE)) { /* Bank 1 */ page = (Addr - FLASH_BASE) / FLASH_PAGE_SIZE; } else { /* Bank 2 */ page = (Addr - (FLASH_BASE + FLASH_BANK_SIZE)) / FLASH_PAGE_SIZE; } return page; } void FLASH_init(void) { /* Initialise test status */ MemoryProgramStatus = PASSED; /* Unlock the Flash to enable the flash control register access *************/ HAL_FLASH_Unlock(); /* Clear OPTVERR bit set on virgin samples */ __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_OPTVERR); /* Get the number of the start and end pages */ StartPage = GetPage(FLASH_USER_START_ADDR); EndPage = GetPage(FLASH_USER_END_ADDR); } /* Erase operation */ void FLASH_erase(uint32_t page_address) { /* The desired pages are not write protected */ /* Fill EraseInit structure************************************************/ EraseInitStruct.TypeErase = FLASH_TYPEERASE_PAGES; // Mass erase or Page erase Erase
I've just gotten a Nucleo-WL55JC1 and am having a bit of trouble getting the dual core example applications working out of the box. The single core AT_Slave and End_Node examples do however compile, program and run on the M4 core with no issue. We are able to set up the node and get it joined to our lrwan network. I am using the CubeIDE toolchain. This is my first go at working with a dual core STM32 so it's quite possible I'm just missing something fundamental.The first issue seems to be in the program size for the M0+. With the default project configuration, the binary for this core ends up taking overflowing its 128k allocated ROM by 7360bytes. I am able to correct for this by either turning on any degree of compiler optimization, or by adjusting the ROM regions defined in the linker script for the M4 and M0+ cores to give the M0+ more space.After implementing either of the above changes to allow the build to complete, I set up a debug configuration flash both images and attach the
Hello,I am using STM32L412CBT6 MCU with STM32CubeIDE and STM32CubeFW_L4 V1.17.2.I am using en.i-cube_lrwan for our project. I am using same structure of libraries used in this en.i-cube_lrwan package.I am using below libraries for rtc:1)rtc_if.c2) rtc.c3) stm32_systime.c4) stm32_timer.cI use the SysTimeSet() function for time sync, and to get time I used SysTimeGet() function.For sync time, I have to send command through uart, containing current time, which will call SysTimeSet() function.I have set date time of 13 January 2023 in all devices, and on today (3 March 2023), all devices shows time of 13 January 2023.So, what causes this type of issue after 49 days?.Please help us to solve this problem, this is very critical issue for us.Thank You
Hello, currently I am working on stm32wb55 MCU. I want to read, write and notify the sensors data to peripheral(phone) from the central device(stm32wb55). I have done read and write characteristics in service but I didn't know how to enable notify characteristic and how to send data from to notify to a peripheral device.
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.