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
Hello,starting from the example application of the OEMiRot boot project, I noticed that the NS application size is limited to 640kB in the flash_layout.h (#define FLASH_NS_PARTITION_SIZE (0xA0000) /* 640 KB for NS partition */)Since there is 1MB avalaible in the slot, I would like to increase this size from 640kB to 896kB. A first naive change is just to change the define from 0xA0000 to 0xE0000 which leads to the state that the bootloader doesn't find a bootable image anymore.How do I set a larger non-secure application size to have a benefit of the 1MB flash slot? Best regards,Stefan
I am asking this question because I am a relatively new engineer working with STM32 and Cube IDE. When choosing the MCU to create a new project for my new board containing the STM32F401CCU6, I see that it is not listed and only STM32F401CEU6 appears. Can I create the project based on this model number and will everything work the same? I wanted to try it myself, but today has been a tough day, so I would appreciate your help with an answer tomorrow when I get to the office to save time.Thank you in advance.
I have recently Intigrate GithubCopilot in STM32CubeIDE.Issue is I can not able to change font of copilot chat. Its very small and diffuclt to read.I tried all option in fonts and color menu.I am using On Linux(Ubuntu -24.04 LTS)
Hi all,In my project I use several IOs, I2C, SPI, UART, ADC, DAC and most of them work as expected.However, I have 2 inputs from push buttons (pushing the button would set them to 0 volt), set with pull-ups (not set as EXTI) that sometimes stop working after a while: When I check the voltage I see the level is changing, but when reading these IOs using HAL_GPIO_ReadPin() their state doesn't change anymore until I reset the PCB.The rest of the software still works fine when it happens.Never seen this before on ST, and this project was actually migrated from STM32L031 which never showed the issue. I'm having a hard time reproducing the bug, it seems very random so far.If I called the GPIO Init on a regular basis, would it prevent this issue?Kind regardsP.S: I use GNU tools for STM32 v13.3.rel1
Hello everyone,I'm writing this to provide support for my External Loader project for TouchGFX , which I've been working on for a long time.The External Loader file works good with STM32CubeProgrammer. (Write-Erase-Read operations are possible) LOG OUTPUT IS ATTACHED --> [STM32Cube Programmer LOG Output]When I run my project file LCD_Driver_v10 and my External Loader file together, I get the following errors: The complete error message is attached. --> [STM32Cube IDE CONSOLE Output] Error: failed to download Sector[0]Error: failed to download the FileEncountered Error when opening C:\Users\USER\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.2.300.202508131133\tools\bin\STM32_Programmer_CLI.exeError in STM32CubeProgrammer I also checked this address https://community.st.com/t5/stm32-mcus-touchgfx-and-gui/external-loader-fails-to-download/m-p/136566#M6974 which has a similar problem, but nothing changed.My Mcu is STM32F7
Hello,I'm trying to use STM32CubeProgrammer with STLink Debug Interface on remote Windows Serveur via RDP.I installed the driver, the device is detected via USB Redirectionbut STM32CubeProgrammer doesnt detect the interface:If I directly plug the device on a physical port, it works well. Do someone successfully set up such a configuration ? Is there any special detection on the app ? It would avoid us to install about 60 windows on our clients!Thanks :)
Hello, I have a question about the temperature calibration for the VL53L0X Time-of-Flight sensor.The UM2039 manual states the following:> [Temperature calibration] has only to be done before offset and cross-talk calibrations, after Reference SPADs management and before the first ranging is performed.During assembly of our product, those calibration steps (SPADs, Temperature, Offset, XTalk) are performed in order.To account for possible temperature changes when the device is in use, we call both `VL53L0X_PerformRefSPADManagement` and `VL53L0X_PerformRefCalibration` on device boot to ensure the sensor is ready for use for the current temperature.My question is if this would affect the offset and xtalk calibrations, since the docs state that temperature calibration must be perfomed before those. Or is that sequence merely to ensure the offset and xtalk calibrations are done with the correct temperature calibration.Thank you for your time.
I want to use STM32CubeMonitor-RF's scripting feature to automate BLE tests, but I'm having troubles right from the start: Send(ACI_GAP_CREATE_CONNECTION;0x01D0;0x01D0;0x00;<client address>;0x00;0x0040;0x0040;0x0000;0x015E;0x0015;0x0015)Wait(500)Send(ACI_GATT_DISC_ALL_PRIMARY_SERVICES;<connection handle>)ACI_GATT_DISC_ALL_PRIMARY_SERVICES needs a connection handle, which is only known at runtime, it would need to be extracted from a response to the ACI_GAP_CREATE_CONNECTION command. is this possible, or is it possible to set the handle to a constant value?
Hello everyone, First of all I am kinda new in ARM (I never use), I am working on the STM32H745I-DISCO board (using the CM7 core) and I am facing a persistent issue with UART . No matter what I try, the RX Interrupt never triggers, and the code never enters the HAL_UART_RxCpltCallback. My Setup: Board: STM32H745I-DISCO IDE: STM32CubeIDE (Latest Version) Scenario: UART Loopback Test (Connecting TX to RX physically). Peripheral: USART6 (TX: PC6 / RX: PC7) on the Arduino Headers (D1/D0). Settings: 115200 baud, 8N1, Asynchronous. The Problem: -HAL_UART_Transmit works fine (signals observed). HAL_UART_Receive_IT returns HAL_OK. However, the HAL_UART_RxCpltCallback is never executed. When checking SFRs in Debug mode: RXNE flag stays at 0. What I have verified so far (Step-by-Step): NVIC Settings: USART6 global interrupt is Enabled in CubeMX. Vector Table: USART6_IRQHandler exists in stm32h7xx_it.c and calls HAL_UART_IRQHandler. Initialization Order: I ensured that MX_USART6_
Dear ST, I am using Nano Edge AI Studio for Embedded ML teaching at university. Recently, I faced the problem of installing licenses on class computers reporting that “License has reached its activation limits”.I understand that Nano Edge Ai Studio is free but I cannot activate multiple computers in the classroom with my personal free license. Could you please explain how to solve the issue (activate 10 computers in the classroom).Regards,Žilvinas Nakutis
Hi,I'm trying to drive a 5 in LCD with STM32H757. However the MCU's internal RAM is too small for the frame buffer for this 800x480 LCD. So I have a PSRAM APS6404L on the QUAD SPI bus. I have succeeded in setting the memory mapped mode for reading the PSRAM, but I don't know how to integrate the custom write routine for the touchGFX. The MX configurator seems not allow me to set up a partial frame buffer in the internal RAM. I have tried to use custom LCD type to forcefully set the partial frame buffer, but I'm unable to get the touchGFX task to run.Does the custom LCD type require lot of work? I feel so stuck right now. Please help. Thank you.
Dear STMicroelectronics Team,I am writing to strongly condemn the way power consumption values are presented in the STM32WB55 datasheet.When I choose a wireless SoC, I do so because of its wireless capabilities. If I only needed a microcontroller, I would simply buy an MCU from your STM32 families. The reason I selected WB55 was specifically for its BLE functionality. Therefore, the datasheet must provide power consumption values with BLE active, not just MCU Stop mode currents with BLE disabled.Presenting only the MCU’s low‑power figures while omitting the real BLE consumption is misleading and deceptive. It creates false expectations for developers and leads to serious disappointment in real‑world applications. This practice can only be described as fraudulent.I strongly denounce this approach. Wireless SoCs must be documented transparently, with accurate BLE advertising and connection current profiles. Competing vendors such as Nordic and Telink provide this clarity, and ST should d
Hello,we have a STM32MP157C processor MAC connected to MAX24287 PHY by RGMII interface, what we see that the GTX_CLK duty-cycle higher than 55%Could we decrease this value somehow?Thank you.Zsolt
NUCLEO WB55For an unknown reason I2C1 has just stopped working. The BLE & UART are working but the boards (I've tested on 2 identical boards) are no longer talking to the sensors via I2C.When I scope them up the traces for SCL & SDA are both flat lines (yes I checked the scope is working properly).Frustratingly, this all worked before xmas.Anyone any clue what could cause this?
In the UM2407 Rev 5 (Nucleo-H753ZI user manual) on page 29/54, section 7.6.6 there is a warning:USB Micro-AB connector (CN13) cannot power the Nucleo144 board. To avoid damaging the STM32H7, it is mandatory to power the Nucleo-144 before connecting a USB cable on CN13. Otherwise, there is a risk of current injection on STM32H7 I/Os. However, in an informal empirical test it seems that nothing got damaged when I connected CN13 to a PC/Laptop without powering the Nucleo. So, how big is this "Risk" really and what are potential consequences? And is this risk related to the Nucleo only, or would the same risk apply when integrating a STMH753ZI directly on a PCB. Can anybody provide more detailed information?Note: I do NOT want to power the Nucleo from CN13 but just leave the USB cable connected. Thank you and best regardsDiego
Hello,I’m new to embedded systems and currently learning STM32 + LoRa.I’m using two NUCLEO-F411RE boards and two RA-02 (SX1278) LoRa modules. My goal is to establish basic point-to-point communication.I initially tried using a LoRa.h library, but I couldn’t get it working reliably. To reduce complexity, I decided to verify SPI communication first, before dealing with LoRa TX/RX logic.However, SPI itself does not appear to work as expected, so it’s unclear whether the issue is: SPI configuration Hardware wiring Or the LoRa library integration Below are two minimal examples: A bare SPI register read (RegVersion = 0x42) A minimal LoRa.h initialization without TX/RX logic I would appreciate feedback on: Missing or incorrect SPI configuration Whether the LoRa initialization sequence is reasonable Common SX1278 + STM32 HAL pitfalls Minimal SPI test (RegVersion check) #include "main.h" #include "spi.h" #include "gpio.h" #defin
Split from old thread Debug: "No source available for main()"This is not the same question.Little late to the party but I have the same issue kinda. I switched to other branch in our project and I had the very same result. Then I took all suggested steps and I get when I tried to debug:No source available for "__floatdisf() at 0x800216e" Besides after switching to that branch program compiles just fine but doesn't work. All of this is of some settings that remained in project and weren't covered in git commit, but it's hard to commit every single file in CubeIDE enviroment. All important files were covered like all code files and ioc etc. i always switch when Cube is not running because it also creates issues. Any ideas?
Dear ST Community Team,We are currently working on a project using the STM32N657X0H3Q1 microcontroller and developing the GUI application with TouchGFX.While configuring and generating the TouchGFX project, we are encountering RAM and ROM overflow errors during compilation/linking. The internal SRAM and Flash available on the STM32N657 device are not sufficient to accommodate the TouchGFX framework, graphics assets, and application code.As an alternative solution, our hardware design includes the following external memories:External RAM: S80KS5123GABHB020External Flash (Octal SPI NOR): S28HS512TGABHM0100We would like guidance from the community on the following points:How to properly configure external RAM in STM32CubeMX / TouchGFX so that:FramebuffersTouchGFX heapGraphics buffers are placed in external RAM instead of internal SRAM.How to configure external Flash to store:TouchGFX assets (images, fonts, videos)Read-only GUI resource to reduce internal Flash (ROM) usage.Any re
So far, in all my projects, the MCU has been powered via USB attached to computer. I would like to make a project in which the MCU is powered by a portable power supply. However, I don't know which equipment I need to use for this purpose. I have a power supply module from ELEGOO kit (ELEGOO Upgraded Electronics Fun Kit w/Power Supply Module, Jumper Wire, Precision Potentiometer, 830 tie-Points Breadboard for Arduino, STM32 : Amazon.com.au: Computers), which can output 5/3.3V electricity. Can I connect a powerbank to the supply module, and use the supply module to power the board, or should I look for other options? The board I use is stm32f407g-disc1, and the datasheet (DS8626_STM32F40xxx.book) says that the voltage should be in 1.8-3.6V range and the power of electrical current should be less than 240 mA (p79).
I'll explain Flash Erase Error to the stm32l475rct6 MCU that I'm currently using. Page : 127, Address : 0x0803F800, Bank : FLASH_BANK_1 is defined, and if you try to modify the value after first saving the value in the Flash area, the values already stored in Flash are not erased properly, so the Flash value cannot be modified. SMT32CubeIDE version is 1.19.0 and I'll attach the code I implement, so please check where the problem is and let me know if there is a solution.void AO_SaveCalibration(void){HAL_StatusTypeDef status; printf("Saving calibration to Flash...\r\n");printf("Data size: %u bytes\r\n", sizeof(AO_Calibration_t)); ao_cal.checksum = Calculate_Checksum1(); status = HAL_FLASH_Unlock(); if (status != HAL_OK){printf("ERROR: Flash unlock failed\r\n");return;} __HAL_FLASH_CLEAR_FLAG(FLASH_FLAG_ALL_ERRORS); while(__HAL_FLASH_GET_FLAG(FLASH_FLAG_BSY)){// Flash 작업 완료 대기} FLASH_EraseInitTypeDef EraseInitStruct;uint32_t PageError = 0;EraseInitStruc
In iDE version 1.19, there was an STM32 Project creation feature, but it disappeared when I updated to 2.0.
Hello,we are seeing a systematic offset when using the internal temperature sensor of the STM32G031G8U6.Over the years we have tested ~50 SoCs (different production batches), and all devices show a very consistent temperature reading that is about 2–3 °C too high at room temperature compared to an external reference, higher temperatures weren't tested.Because of this, we are considering programming a temperature offset during flashing. Before doing so, we would like to better understand whether a single-point offset calibration is sufficient, or if the internal slope accuracy is not reliable enough, requiring a full two-point calibration.Example:If the MCU reports 24 °C but the real temperature is 21 °C, can we simply apply a +3 °C offset globally?Or is the internal temperature slope not guaranteed well enough, meaning that a two-point calibration is required?More specifically, regarding the factory calibration values on STM32G0:TS_CAL1:ADC raw value measured at 30 °CTolerance: ±5
Hello ST Community,I am working with the STM32N6570-DK and the USBX Ux_Device_Video example fromSTM32Cube_FW_N6_V1.3.0\Projects\STM32N6570-DK\Applications\USBX\Ux_Device_Video.I followed the README instructions exactly:Built FSBL and Ux_Device_Video projects successfully in STM32CubeIDEGenerated FSBL.bin and Ux_Device_Video.binSigned both binaries using STM32_SigningTool_CLIProgrammed:FSBL-trusted.bin at 0x70000000 (external flash)Ux_Device_Video-trusted.bin at 0x70100000 (external flash)Set BOOT0 and BOOT1 to boot from external flash and reset the boardHowever, the application does not run as expected. When the board is connected to a Windows PC, the Windows Camera application fails with the error: Can't start your camera0xA00F4241 <CameraSwitchFailed> (0xC00DABE7)From my understanding, the Ux_Device_Video example should enumerate as a USB UVC camera and stream video to the Windows Camera app. Since the camera app fails, it seems the firmware may not be executi
Hello,STM32L4+, CubeProgrammer 2.21, ST-Link V2, Windows 10I need to do:* Full flash erase* Write Application image (.hex or .bin)* Write Bootloader image (.hex or .bin)* Set RDP level 1* Start the application at the Bootloader start address.-I am successfully doing this with the CubeProgrammer GUI, but I fail to get it to work with CLI.The "-e all" command works and says "Mass erase successfully achieved":C:\"Program Files"\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe -c port=SWD ap=0 -e all-However, I have tried numerous variants of the following command (and its separate parts alone) without success:C:\"Program Files"\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin\STM32_Programmer_CLI.exe -c port=SWD freq=3900 ap=0 -e all -w C:\SVN\Path\More_path\hex\Application.elf -w C:\SVN\Path\More_path\hex\Bootloader.hex -ob rdp=0xBB -s 0x08000000I have also tried with .bin files and their respective start addresses.The only response I get is the head
I'm using the X-CUBE-EEPROM library on my STM32C031G6Ux to store keys in flash memory. I configured eeprom_emul_conf.h so that the emulated EEPROM starts at 0x08007000, with 2 pages of 2 KB each, and set NB_OF_VARIABLES to 240.When I tried saving 240 variables once using EE_WriteVariable32bits and reading them back with EE_ReadVariable8bits, everything worked fine.However, when I repeat this process three times, writing stops once both pages are full, and the data is no longer read correctly.I experienced similar issues even with 120 variables. Interestingly, adding EE_CleanUp after all writes solved the problem for 120 variables.I then tried the same approach with 240 variables, calling EE_CleanUp after all write operations, but it still didn’t work.Is there a reason for this behavior? Am I limited to storing only 120 variables in flash?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.