Join conversations with your peers and ST experts. Explore the full potential of STM32 microcontrollers for your embedded design.
Most recent activity
Hello there,I am trying to get my Nucleo WBA55 running with the new CubeMX 6.14 and the new MCU package 1.6.0.Generating a project with just the bare minimum BLE GATT Server application, CMake configuration.Importing into VS Code with extension 2.1.1, compiling "debug" version, I get several multiple definition errors.The file is included twice in the makefiles in two different sections it seems.[build] [86/86] Linking C executable LCU_Demo.elf [build] FAILED: LCU_Demo.elf [build] C:\Windows\system32\cmd.exe /C "cd . && C:\ST\STM32CubeCLT_1.17.0\GNU-tools-for-STM32\bin\arm-none-eabi-gcc.exe -mcpu=cortex-m33 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -mcpu=cortex-m33 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -mcpu=cortex-m33 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -Wall -Wextra -Wpedantic -fdata-sections -ffunction-sections -O0 -g3 -mcpu=cortex-m33 -mfpu=fpv4-sp-d16 -mfloat-abi
Hello everyone, I am trying to get an IP for my controller using the DHCP i can able to detect the Link up and link down but i can't able to get the IP. I had refered the example code for the ethernet(lwip https server netconn rtos) But i can't able to integrate with my main code can someone please help to either identify the issue or help me to integrate the example code with the main file. Thank you.Output Of my code LWIP Stack InitializedDHCP Started...DHCP Task StartedLink Task StartedDHCP State Changed: 255 -> 6DHCP State: UNKNOWN (6)Ethernet Cable: CONNECTED DHCP Restarted
There is this errata for STM32G0B12.2.10 Prefetch failure when branching across flash memory banksDescriptionIn rare cases, the code prefetch may fail upon branching and function calls across flash memory banks,regardless of the DUAL_BANK and nSWAP_BANK option byte settings. The failing prefetch then provides anincorrect data to the CPU, which causes code execution corruption and may lead to HardFault interrupt.The workaround is obvious, either disable prefetch when jumping to code in the other bank and enable it again afterwards or use a small "trampoline" function in RAM. We can live with that, as our software is split into separately compiled "core" and "application" parts loaded into separate banks, having only a handful of interface functions there would be e.g. no jumps into library functions in the other bank. What about exceptions and interrupts, how are they affected? The ARM literature generally refers to loading the exception handler address from the vector ta
Good afternoon, I am currently investigating the FHSS in the STM32WLE5JC chip. Using the STM32 SubGHz radio stackversion 1.3.1 I am unable to use any of the settings with LoRa. Enabling the FHSS and settingthe period does not change anything and the messages are transmitted as if this was omitted. It is my understanding that the radio IP is from Semtech, I cannot find much detail on if thehardware is based exactly on a Semtech board (i.e, SX1262) or a custom implementation. Back to LoRa FHSS have looked through the other forums and in 2020 an ST Employee saidit was not possible with the current stack, and in 2025 that it could be done(but the example provided was for LR-FHSS which uses a different modulation scheme GMSK). My questions:Is the STM32WLE5JC hardware comparable to a specific Semtech chip (so I can understand thelimitations)? Are the FHSS settings in the STM32 radio driver enabled for LoRa (it describesthe settings are LoRa specific)? Thank You!
generally i use cubemx choose cubeF1,but the hal driver in github is ahead of official website,for example lateset version of cubef1 is 1.8.6.however hal driver has updated later for bug fix. so if i want to use the newest hal driver,i need download form github,and replace it in local repository. it is ok?
HI,I´ve to design a solution with a custom 5 and 7 inch color displays for a more or less static graphics (just some values and maybe some charts).Which interface / MCU would you recommend? MIPI-DSI? Would be fine to have a quite small MCU (preferrable no BGA or WLCSP)Best regards,Achim
Hi everyone, I am working on an STM32G4 project using the HRTIM1 peripheral. My goal is to generate a burst of exactly 3 PWM pulses on Timer A and Timer B simultaneously, triggered by an External Event (Sync Input / EEV). The Goal: System waits for an external trigger (e.g., from TIM3 via TRGO or physical pin). Upon trigger, HRTIM Timer A and Timer B start. They output exactly 3 PWM cycles. They stop and wait for the next trigger (Single-Shot Retriggerable). The Configuration: I am using STM32CubeIDE and HAL, but I also tried direct register access. Master Timer: Acts as a dummy/pass-through for synchronization. Timer A & B: Mode: Single-Shot Retriggerable. Prescaler: Div1. Period: 1000 ticks. Repetition Counter: 2 (Targeting $N+1 = 3$ pulses). Start on Sync: Enabled. Reset on Sync: Enabled. Preload Enable: Disabled (To force immediate register update). The Problem: Despite setting REPxR = 2, I consistently see only 1 pulse on the scope when t
I have questions:Which C++ std used when building code in TouchGFX Designer? c++11, c++14, c++17?Which C++ std used when building code in MSVC simulator? c++11, c++14, c++17?Which c++ std ST used to verify and release TouchGFX?Can user change and modify the std? Any risk/ side effects to consider?
Hello!I'm working with the flexButton tool and wanted to change the color via eye-dropper. But once I turned on that option, I was unable to turn it off, I can't disable the color picker and it continously changes the color even after deselecting. Isolating the cause a bit I realized it only happens when I move my cursor off screen into another window and click, operating the tool normally (staying within touchGFX window) correctly turns off the tool after selecting. Just a bug I noticed,Thank you
Hello I have a problem compiling TouchGFX for Keil. My procedure:1/ Run TouchGFX Designer 4.252/ Create New project3/ Go to tab – By Partners – select board Riverdi STM32 121STM32H74/ Click to Create5/ Add Button ( for example)6/ Click Generate CODE7/ Go to project Folder and open ioc file Riverdi_121STM32H7_1_6.ioc STM32CubeMx v6.58/ Go to tab Middleware and Software pack Select FreeRTOS M7 Select tab Advanced settings USE_NEWLIB_REENTRAND ← disable !!! ( for keil it must be turned off )9/ Go to project manager Switch toolchain IDE to MDK keil 10/ Save and Generate CODE11/ After generate code by STM32CubeMx I'm going back to Touchgfx Designer and click generate code again TouchGfx generate code for keil.12/ Run project in Keil13/ Go to Option for target Go to tab OUTPUTand uncheck Browse information14/ Project build target15 / Keil linking problem Not enough information to list image symbols.Not enough information to list load addresses in the image map.Finished: 2 information, 0
hi,I am currently using BMP + rgb565 LTDC display for GUI icon creation without Touch GFX ( Everything is on "" C"" only and Manual preparation icon using hex converter ).Already known one is ! for a small size ,BMP is OK but large size BMP icon will increase the size and processing time . Above Picture size is 6.30KB in BMP Above Picture size is 2.03KB in JPEG Visually i could not see any difference BMP and JPEG in my laptop .Now i am using internal memory for small icon (Now working with stm32h723zgt6 and plan to upgrade to stm32u5 series )Please clarify my doubts. 0. Can i use Hardware Inbuilt JPEG decoder for JPEG GUI icon creation with rgb565 format ? . 1. Do you think i can achieve best frame rate by Hardwa
Hi STM32 community, I have ordered those the Evalboards: NUCLEO-G0B1RE X-NUCLEO-SNK1M1 - USB Type-C Power Delivery Sink I have followed all of your existing applications, but none of the had lead to an similar result as displayed by your application descriptions. Lets stick to the newest one:(24) How to build an USBPD Sink application using the X-Cube-TCPP software pack - YouTubeI followed every step accurately several times now, but the result is always the same, Contract -> DEFAULT 5V no current. What am I doing wrong? I have studied all of your AN, watched all Videos, read and did the Wiki but never got any positive result as described..... Im frustrated and hoping for your help. Thank you very much! Br,KUDAThe usbc_test_3.zip is the zipped project.
Hi together,I want to use the Video Widget with the STM32U599 and TouchGFX version 4.25.0, but I can't activate video mode in STM32CubeMX.Are there any new details about this problem?Or is video usage not supported with the STM32U599?
GOAL To use Ethernet + LwIP on the STM32H743 chip without cache. Explanation We don't want to use the cache when using Ethernet because when the cache is enabled and data is sent and received via DMA on the SPI line, the correct data doesn't propagate to the bus due to a cache miss. Disabling the cache resolves this issue, which is why we prefer not to use the cache when using Ethernet. Cube Versions: STMCubeIDE v1.18.1 STMCubeMX v6.14.1 STMCubeFW_H7 v1.12.0 We used the settings in the following link to configure the project by @Adam BERLINGER 's project: https://community.st.com/t5/stm32-mcus/how-to-create-a-project-for-stm32h7-with-ethernet-and-lwip-stack/ta-p/49308. The CubeMX configurations are as follows: CORTEX_M7 configurations ETH configurations LWIP configurations Problems Encountered When Cache is Disabled 1. Usage Fault: The device enters a Usage Fault error when the program execution branches into the function SCB_InvalidateDCache_by_Addr() within the fo
Subject: TouchGFX Custom Application FLASH Overflow Issue & QSPI Memory SetupGreetings Team,I’m new to STM32 TouchGFX and trying to create a custom TouchGFX application following How to integrate TouchGFX in a custom board (The long way round) - YouTubeAfter setting everything up, I encountered the following error during the build:`.text' will not fit in region `FLASH' region `FLASH' overflowed by 296512 bytes I understand that my MCU has only 128KB of Flash, which is insufficient for TouchGFX. I want to configure TouchGFX to use only SDRAM instead of Flash. How does TouchGFX utilize SDRAM, and how can I correctly set it up for this purpose?Additionally, when comparing my custom application to the STM32H7 Dev Board example, I noticed different memory configurations in the Cortex-M7 section under System Core. Specifically, I don’t fully understand how QSPI Flash is mapped as two memory regions starting from 0x90000000.I've attached a screenshot for reference.
Hi,I changed the MCU on my design from STM32 L031 to L051 & L052 to have more flash then have a DAC output.I kept exactly the same ST supplied libraries / APIs for the RFID part, and command them in the exact same way with all MCUs.SPI to RFID chip runs @4Mbit/s.My design is using the ST25r3911 for RFID in NFCV / 15693 standard.Allthough the RFID works perfectly on the old design with L031, the RFID read returns a CRC error on the other 2.The tag detect, ID read & single block write work fine though.(The PCB design is exactly the same for the L031 and L051, only changed for L052 to add more functionalities)Could anyone help please?Kind regards,Yves
Hi,I've been reviewing the documentation for the STM32WBA55, but I haven’t found a clear answer on whether it is possible to directly access the RF registers to tune to a specific RX channel (ex. 2450MHz) and measure the channel's RSSI - specifically, without relying on any protocol-specific signal like Bluetooth LE. Could you please clarify if this is supported? Thank you.
Hello,I am designing a Matter/Zigbee Gateway using an STM32U5 as the host. My planned architecture includes:ST67W: Handling Wi-Fi and Thread (Matter over Wi-Fi/Thread).STM32WBA (or similar): Handling Zigbee (Matter Bridge logic).I have two specific questions regarding the ST67W's coexistence capabilities:Internal Coexistence: Does the ST67W natively support concurrent operation of Wi-Fi and Thread simultaneously without external hardware arbitration?External PTA Support: Does the ST67W expose 3-wire PTA pins (Request/Priority/Grant) to manage coexistence with an external 802.15.4 radio (e.g., the STM32WBA running Zigbee)?Basically, I need to confirm if it supports a "Hybrid Coexistence" setup where it manages internal Wi-Fi/Thread traffic while acting as a PTA Arbiter for an external Zigbee MCU.Thanks in advance.
Hello, I have an STM32H755 nucleo board and I want to use the secure memory area features but I need to clarify my understanding of the reference manual "rm0399" and some follow up questions.My understanding is that:From my normal code (non-secure) in standard mode you enable secure access mode.Then an MCU reset is triggered.Then from my normal code in secure access mode I call RSS_resetAndInitializeSecureAreas that is mentioned in page 258 in the reference manual with the memory area I need to setup to be my secure code and this request triggers a reset.After reset the MCU enters the RSS ROM instead of my normal boot code and then it jumps to my secure code that won't exit it until the API RSS_exitSecureArea.Q1: If I don't call the RSS_exitSecureArea can I keep the secure code running on CM7, Can I run a normal non-secure application on CM4?Q2: Does the RSS have a feature to authenticate a bootloader code and if the answer is yes, where is that documented?
I progrogrammed it to use HSME at 8Mhz, aftar that it was impossible to connect using stlinkv2, injected 3.3V on booth0 but nothing happened. I had to remove the microcontroller.There are 2 ways: it went to a too high speed and burn or was not possible to connect to HSEHere is the code, not use it unless can easily change the micro:void SystemClock_Config(void) { RCC_OscInitTypeDef RCC_OscInitStruct = {0}; RCC_ClkInitTypeDef RCC_ClkInitStruct = {0}; /** Supply configuration update enable */ HAL_PWREx_ConfigSupply(PWR_EXTERNAL_SOURCE_SUPPLY); /** Configure the main internal regulator output voltage */ __HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE0); while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {} /** Initializes the RCC Oscillators according to the specified parameters * in the RCC_OscInitTypeDef structure. */ RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE; RCC_OscInitStruct.HSEState = RCC_HSE_BYPASS; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON
All the provided examples are using USART YMODEM to transfer data. I know, that it really doesn't matter what kind of protocol you use as long as image is placed in a correct place in the memory, but I wonder if I can use DFU feature to update firmware and still use SBSFU. Additionaly is there any reference or resource that supports we only have to upload .sfb file and we can't use .bin file? If we have to use .sfb file only then what is the correct method of downloading it because we can't download .sfb file through cli as it doesnot support .sfb extension and same I am not able to upload it through STM32 CUBE Programmer.
I have seen that it takes about 28 ticks to read registers, so I think my stm32h750 runs really at 17Mhz, it seems is not risk, so perhaps it exists another more fast stm32 micro that have more 17 MIPS
Hi Team,Firmware file are just signed not encrypted through STM32 SigningTool - stm32mcu (STM32_SigningTool_CLI.exe) after generating public and private keys through STM32_KeyGen_CLI.exe.Public key in raw 64 bytes is provided to bootloader_main.c as constant and hash is calculated from firmware data file after placing it at known location.Able to verify magic number as after signing a firmware file a header of 256 bytes is placed at top but failing to verify ECDSA signature. Using API ECDSAverify from legacy_v3 cryptographic library to verify signature.Please anyone help me with example as a reference to know where it is getting wrong.
HelloDo I unterstand correctly that the recommended secure boot option for STM32L4 is SBSFU?It seems that the only resource on how to get started with examples is the playlist on YouTube where a non signed exe from google drive has to be installed.Is there another way to get started with an example that doesn't involve having to install an exe from google drive?Are the scripts shown on the video available without installing the exe?I would really appreciate some guidance.Thank you very much in advance.
Hi everyone,Hi @Jocelyn RICARD, @D.Botelho @Jocelyn RICARDyou made this small bootloader example for testing H7 security features, e.g. RDP:https://community.st.com/ysqtg83639/attachments/ysqtg83639/mcu-security-forum/6051/1/STM32H753_SecureMem_ExampleV1.1.7zIs it possible to provision H5 MCUs and activate the closed product state using UART like the H7 example above?What i want is to implement a custom app that can get commands via UART and provision the device.I would like to have methods like: void setProductState(State state); void provisionDevice(const uin8_t* obkey,size_t obkey_size); // provisionDevice would then provision the device using the obkey send via UART. I see in the reference manual that the RSS offers functions that i can use for the provisioning.But i read somewhere that in PROVISIONING State the flashed application won't run and the device waits to be provisioned via debugger. If that is the case my idea described above won't work because a
ST Community highlights – April to June 2026
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.