Developer support experience survey - We value your feedback
Join discussions in the Product Forums. Ask questions, learn from your peers, and share insights on ST solutions to accelerate your design journey.
Most recent activity
Started project (using STM32CubeMX) with STM32C011J4M6 (SO8 package, 16K flash).Using STM32CubeIDEVersion: 1.19.0Build: 25607_20250703_0907 (UTC)Application now requires >16K (flash (code+flash data space) so replaced MCU part with STM32C011J6M6 (SO8 package, 32K flash).After adding content to project source code (a font file, taking the expected total flash space over 16384 bytes) build does not complete.I believe the root cause is that I've not told STM32CubeIDE of change to the larger-flash version of the chip (same family, just larger flash).What file(s) need to be edited to enable the larger flash size (or do I need to revert to STM32CubeMX and then splice the now under-development project source code into the new project? C:/ST/STM32CubeIDE_1.19.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.13.3.rel1.win32_1.0.0.202411081344/tools/bin/../lib/gcc/arm-none-eabi/13.3.1/../../../../arm-none-eabi/bin/ld.exe: (MY PROJECT NAME).elf section `.d
Hi,I want clarification on STM32 option byte programming.When we write new values to FLASH_OPTR and other option registers:Where are these FLASH option registers physically located?Are they inside the FLASH peripheral (0x4002xxxx region) and not in the option byte Flash area (0x1FFF8000)?When OPTSTRT is set, does the CPU erase/program the option byte pages, or does the FLASH controller hardware automatically erase the option byte Flash area and program it using the values in the FLASH option registers?I want to clearly understand the internal flow between:Option byte Flash memoryFLASH option registersFLASH controller hardwareThank you.
Hey guys I am currently looking for an mcu to get started developing a live stream camera board which should be in 7x80 mm dimensions what mcu should I get ? I think 5x5 footprint should be ok but not sure 6x6 also be ok. I am open any advice also new to hardware design so thanks for all the supports:)
I am trying to bring up the GFX01M2 on a WB55RG board. Following any of the Custom, FlashLoader, or HelloWorld applications (from the X-CUBE-DISPLAY_3-0-0 download) using STM32CubeIDE merely results in a blank LCD. I feel I'm missing something simple, but just can't find it. In each case I have compiled and loaded the files as per the ReadMe instructions. Any pointers appreciated...
Dear community,where can I find the source code for this generated MX66UW1G45G_STM32H7S78-DK_XSPIM1-SFIx.stldr file?I need to load binary files on an sd/emmc flash passing through the OEMiRoT boot that loads the specific external loader I want to implement based on this MX66UW1G45G_STM32H7S78-DK_XSPIM1-SFIx example. I have already implemented a custom external loader for my sdcard which works fine when loading the binary directly from CubeProgrammer or IAR ide (no mapping mode), however it fails to load the external loader in RAM through OEMiRoT bootloader through a UART serial interface with this command: .\STM32_Programmer_CLI.exe -c port=COMxx br=xxx -elbl "my_loader.stldr" -w my_encrypted_file.bin "my_custom_address". The same command works fine with the above example when the firmware update new binary is loaded in the macronix flash. Thank you for help
Hello,I am working with the STM32L476 and would like some clarification regarding the One-Time Programmable (OTP) area.From the reference manual, I understand that STM32L4 devices provide 1 KB of user OTP memory (128 double words). I would like to better understand the following:What exactly is stored in the OTP area? Is the OTP region purely user-programmable, or does ST also store factory calibration or security-related data in this region? Is OTP used internally by the MCU for enforcing Flash security mechanisms such as RDP, WRP, or PCROP, or is it strictly for user data? How is OTP protected ? I am trying to understand the architectural role of OTP in relation to Flash protection and secure boot mechanisms.Thank you.
Hi Because our recorded LG acceleration data shows strong aliasing artifacts we tried differten sensor configurations but nothing realy helped. Even worse we coud not see any effect of the LPF2 filter despide ODR and filter frequency settings. So we wunder if we have an error in our configuration or if the LPF2 not works as expected. With the following LSM configuration we expectect that the spectogram of the LG sensosr data would not show any artifacts of frequency above 250Hz.But what we see:- Frequencies below 250Hz apear as expected - Frequencies above 250Hz are folded down into the range 0-250HzWe are using the FIFO buffer to achieve constand sampling while retriving the data from the sensor with the MCU via I2C in a batch abaut 5 times per secound. For the sensor control we use the mems c-driver from gitHub (https://github.com/STMicroelectronics/STMems_Standard_C_drivers/tree/master/lsm6dsv320x_STdC).The current LMS configuration :- High Accuracy Operation Mode- OD
I have the Nucleo-144 board N657X0Q.It appears to work (i believe there is demo code pre-installed - it is flashing a red led and the frequency changes when I press the user button). However, I cannot get the Cube IDE or Cube Programmer to work with it. I am just trying to read memory using the cube programmer as a test. It connects, gets the information about the board, uploads the loader firmware, and then when it tries to read it gets an error and disconnects.The log file is attached. I have tried using two different machines as hosts, and tried 2 different usb cables (both are suggestions from several posts I found). I have tried reducing the speed, and using the "under reset" and "hotplug" modes to no avail. I have selected the correct external loader before doing the check. I am using a separate power supply on the user USB to rule out any problems with enough power from the host machines on the USB port.I don't know what to try
Hi,we are trying to get SDMMC1 running on our evaluation boards (STM32H757-EVAL) but without any success so far.To further investigate the issue we started a new project from scratch, using CubeMX with sdmmc1 enabled. It doesn't work neither.btw: board and SD interface are OK. i.e.the demo that came with the board is reading video files from SD card successfully.Please, can someone provide a ruuning setup for Cube-MX (STM32H7 firmware 11 or 12) with the specific settings for Clock Configuration and SDMMC1.We are using CubeMX 1.15, STM32H7 firmware package V. 12.1.The error happens during SD PowerOn(), i.e. there is no response from CMD8, CMD55...Thanks for your helpTom
I need gateway firmware binary for EU433 + Loriot.for my PNUCLEO LRWAN 3 gateway
Heyho,when enabling the INSTRUCTION cache in STM32H7(33), what must be taken care of?Any cache handling required? Any MPU settings required?As far as I understood that's only required for DATA cache?
In the STM32WB09's Reference Manual, RM0505 Rev 3, Table 8: PA10 and PA11 have SWD modes for their AF4.However, in the STM32WB09 datasheet, DS14210 Rev 6, Table 6 and Table 7: PA10 and PA11 have no AF4. Which one is correct?
I have setup HAL, systems clocks, etc. ADC 1 & 2 work PC4 (channel 14). ADC3 with PF3 (channel 9) PF4 (channel 14) or PF5 (channel 15) don't work with the same code. Port C & F enabled, ADC1-3 clocks enabled. Thanks for your help! { GPIO_TypeDef *ThePort; int ThePin, TheChannel; ADC_TypeDef *TheADC; ADC_HandleTypeDef hadc; __HAL_RCC_GPIOC_CLK_ENABLE(); __HAL_RCC_GPIOF_CLK_ENABLE(); //PF3 Thermisor ADC3_CHANNEL_9 //PF4 Thermisor ADC3_CHANNEL_14 //PF5 Thermisor ADC3_CHANNEL_15 //PC4 Power ADC12_CHANNEL_14 /* works ThePort = GPIOC; ThePin = GPIO_PIN_4; TheChannel = ADC_CHANNEL_14; TheADC = ADC1; // or ADC2; */ ThePort = GPIOF; ThePin = GPIO_PIN_4; TheChannel = ADC_CHANNEL_14; TheADC = ADC3; // Configure PF3 as Analog Input GPIO_InitTypeDef GPIO_InitStruct = {0}; GPIO_InitStruct.Pin = ThePin; GPIO_InitStruct.Mode = GPIO_MODE_ANALOG; GPIO_InitStruct.Pull = GPIO_NOPULL; HAL_GPIO_Init(ThePort, &GPIO_InitStruct); // Enable ADC3 Clock __HAL_RCC_ADC1_C
Hi ST Team, First of all, I would like to thank you for your support on my previous project based on the STM32MP255D series, which has now successfully moved into production. First of all, I would like to thank you for your support on my previous project based on the STM32MP255D series, which has now successfully moved into production.Currently, I am working on a new project that is entirely focused on Ethernet-based communication. Below is my design requirement and a clarification request:Project RequirementThe system requires three Ethernet interfaces in total:Ethernet 1: Operates in standalone mode (independent network).Ethernet 2 and Ethernet 3: Should function as switch ports, supporting STP (Spanning Tree Protocol) for loop prevention.Network Topology and Data FlowEthernet 1 is used for independent communication (standalone).Ethernet 2 connects to Device A, which is daisy-chained to Device B.The last device (Device B) connects back to Ethernet 3, forming a potential loo
Hi everyone,I am experiencing an issue with STM32CubeMX version 6.16.0 while working on an STM32U375xx based project.When I set the Toolchain/IDE to CMake, the code generation process completes successfully, but the linker script (STM32U375xx_FLASH.ld) is missing from the project structure. I have checked both the root directory and the cmake/ folder, but the file is nowhere to be found.Interestingly, if I switch the Toolchain to STM32CubeIDE, the .ld file is generated as expected. This suggests a potential issue or a change in behavior specifically for the CMake generator with the new U3 series in this version of CubeMX.Environment details:MCU: STM32U375xxSTM32CubeMX Version: 6.16.0Toolchain: CMakeHas anyone else encountered this problem? Is there a specific configuration I should check in the Project Manager to ensure the linker script is included in the CMake output?Thanks for your support!Best regards,Gianni
Hi all,I am a beginner working with the STM32N6570-DK development kit using STM32CubeMX(V6.16.1) and STM32CubeIDE (v2.0.0). I am looking to deploy an AI model from the ST model zoo and need guidance on the proper configuration for integrating the camera and display modules. Could anyone provide a step-by-step cub MX project configuration for camera and display interfacing. RegardsSradha
HiI am new to display and camera interfacing, as well as the STM32N6570-DK. For a project, I want to display the output from the camera (come along with STM32N6570-DK) into the display included with STM32N6570-DK. Could you explain the necessary configurations in STM32CubeMX and how to write the code in STM32CubeIDE to interface these components?My Tool version infoCube IDE 2.0.0Cube MX 6.16.0Best RegardsRanjith
This fault is still happening since Oct 2024. However I found a workaround documented here -->https://stackoverflow.com/questions/78850472/stm32cubeprogrammer-flash-loader-cannot-be-loadedIn case the link has died, you need to do the following...Connect STM32CubeProgrammer to your STM32 device and note the "Device ID" listed in the "Target Information" window bottom right of the CubeProgrammer app, e.g. for an STM32F103 this will be 0x410.cd into your "STM32CubeProgrammer/bin/FlashLoader" folder.duplicate the file that matches your device ID (e.g. for an STM32F103 the file would be 0x410.stldr)and then rename the duplicated file "0x".Then restart STM32CubeProgrammer and it will now work properly.
Hello,I have the issue that the FlashLoader is detected but not set correctly. The error message is:flash loader cannot be loaded. FlashLoaderPath = CubeProgrammer/bin/FlashLoader/0xAs a workaround I can create a copy of the correct FlashLoader and name it 0x, but I think this should work automatically. I am running on Linux and the issue exists for several versions of CubeProgrammer and on multiple Linux distros for me. My current version 2.21.0.The issue is really annoying if you switch boards and forget to copy-rename the correct FlashLoader.
I am using STM32Cube IDE version 1.4.1 where I'm debugging 1st the CM4 Core which is getting debugged and then I tried to debug CM0+ core which is not going into debug mode and showing the error :Target unknown error 32Error in initializing ST-LINK device.Reason: Unknown. Please check power and cabling to target.I tried this tooLaunching the configurationsLaunch the Cortex®‑M4 configuration to download both the Cortex®‑M0+ and Cortex®‑M4 images.Resume the Cortex®‑M4 core until the C2BOOT bit is set in power control register 4 (PWR_CR4) to enablethe Cortex®‑M0+.Launch the Cortex®‑M0+ configuration using the arrow next to the debug icon. The Cortex®‑M0+ is in therunning mode and the user can halt it after the debugger is started.The core CM4 got into debugged mode but then the Core CM0+ is showing :Debugger ConnectedWaiting for debugger connection...Debugger ConnectedWaiting for debugger connection....Debugger ConnectedWaiting for debugger connection...Why is it so?Where is the problem.
I got an angle encoder with SSI interface, which is Synchronized Serial Interface. The output data is 21-bit. No CS signal is needed.I have implemented using SPI1 master mode RX only reading this encoder, with SPI_CLK as the serial clock and SPI_MISO for data input. The data size to read is set to 3 bytes, but the clock is transmitted one more byte as intended. HOW DID THIS HAPPEN? Does the SPI send a dummy address on receiving?The clock is generated immediately upon calling __attribute__((aligned(4))) uint8_t raw_angle[16] = {0}; HAL_SPI_Receive_IT(&hspi1, raw_angle, 3);The data captured by logic analyzer:The CubeMX setting is as below: I found that SPI_SR_RXNE is left triggered after 3 bytes read by the HAL API, so I have to clear the flag before calling HAL_SPI_Receive_IT. while((SPI1->SR & SPI_SR_RXNE)){ SPI1->DR; } HAL_SPI_Receive_IT(&hspi1, raw_angle, 3); I have also tried DMA mode using HAL_SPI_Receive_DMA(&hspi1,
Hello,I am currently using the X-NUCLEO-53L7A1 expansion board together with the NUCLEO-F401RE development board.I would like to add a Bluetooth module (HC-05 or HC-06) to this setup in order to transmit measurement data wirelessly.Could someone please advise on the following:What is the recommended way to connect an HC-05/HC-06 module to the NUCLEO-F401RE when the X-NUCLEO-53L7A1 expansion board is mounted?Are there any potential hardware conflicts (e.g., UART pin usage, power supply limitations, or pin mapping issues)?Are there any known compatibility or performance issues when using the Bluetooth module together with the VL53L7CX sensor?
Split from STM32H503 incorrectly marked as having CORDIC/FMAC - this is a different topic.Thank you, I will try this.But in the meantime, the Windows standalone MCU Finder app has just become broken.Selecting any entry of the PRODUCT INFO -> Segment options, return no results. i.e. if I reset, then choose STM32H5 series, or STM32U5 series, no results are shown. This definitely used to work. The Android app still works, but still shows the incorrect H503 entries.
Dear ST Support Team,I am currently working on verifying a LoRaWAN proof of concept using STM32 hardware.My setup consists of a LoRaWAN end node and a gateway connected to the Loriot network server. From the Loriot dashboard, I can confirm that the gateway comes online successfully whenever powered and is in a ready state, waiting for packets.However, my end node has not been able to successfully join the network.I have carefully verified the following possible causes:Frequency configuration (ensured no mismatch between node and gateway region)LoRaWAN region settingsDevEUI, AppEUI (JoinEUI), and AppKey configurationNetwork activation method (OTAA)Gateway operational status on Loriot dashboardAll parameters appear to be correctly configured, yet the end node consistently fails to join.I would appreciate your guidance on:Additional debugging steps to determine why the join procedure is failing.Recommended methods to confirm whether Join Requests are actually being transmitted from the en
Hi I am just getting started with STM32CubeIDE for a project I am doing at my university!I have made an account and installed the software, and I got the board (NUCLEO-L552ZE-Q), I wanted to start a new project with the board to try and blink and LED.But somehow I cant find it anywhere where to create a new project that is not an empty project because I want my board automatically connected to my project, because I have read some online where they said a question "Initialize all peripherals with their default Mode?" will appear once you created a new project and want to connect the board.The alternatives I get when pressing Create/Import STM32 Project is:1. STM32CubeIDE Empty Project2. C++ Project3. C project4. STM32 CMake ProjectPlease let me know if I have done something wrong with the installation or if there is something I missed.Thanks in advance!
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.