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
I've been beating my head for a while trying to use OpenOCD to download my program to the chip, and I'm getting error messages which cite a write algorithm error (errors attached below). I'm not really too sure what I'm doing wrong, and would greatly appreciate any help and insight with resolving this!TL;DR. I'm getting errors likeError: flash write algorithm aborted by target Error: error executing stm32l4 flash write algorithm Error: flash write failed = 00000088 Error: block write failed Error: error writing to flash at address 0x08000000 at offset 0x00000000in the Console log from OpenOCD.I've reproduced the error using OpenOCD with STM32CubeIDE as follows where I set up a fresh project, demonstrate that using ST-LINK (ST-LINK GDB SERVER) works, and finally demonstrate that using OpenOCD fails.I create a new project withFile > New > STM32 ProjectAnd go to "Board Selector", then select the "Commercial Part Number" to NUCLEO-U575ZI-Q.I press "Next >", then fill out the
I'm trying to follow this guidehttps://github.com/jagheterfredrik/meb-preheat I've never used STM32CubeProgrammer or a ST-Link V2 so I don't know what it should look like. I've bought the one at this link https://www.aliexpress.com/item/33010611392.html When I open STM32CubeProgrammer and click "connect" nothing happens, apart from the message in the log windowThe serial number is shown as "E" Do I need to do something to make this device work? Or where can I buy one that works out of the box?
Hi, I am using an STM32N6570-DK running in XIP mode with XSPIM configured in multiplex mode.Setup:XSPIM in multiplex modeXSPI1 / XSPI2 → Port 2 → external flashXSPI3 → Port 1 → PSRAMXSPI2 memory-mapped at 0x70000000FSBL configures external flash and jumps to the application at 0x70100400(VTOR = 0x70100400, MSP = 0x34200000, PC = 0x7010BA01)Everything works correctly in direct XSPIM mode, but in multiplex mode the application HardFaults or hangs immediately after the FSBL jump.The faults occur during early HAL initialization (e.g., in HAL_MspInit() or MX_GPIO_Init()), specifically when executing functions such as: HAL_PWREx_EnableVddIO3();__HAL_RCC_GPIOO_CLK_ENABLE();HAL_RCCEx_PeriphCLKConfig(); If I comment out these lines, the application runs, but then I face issues whenever adding new peripherals (like UART).It seems that reinitializing power domains or clocks related to XSPI pins while executing from external flash triggers a crash. I am using STM32Cube FW
Dear Sir, My board is equipped with STM32G431 MCU. I found that the UART DFU mode of my board does not work after the flash of the MCU has been programmed. The UART DFU mode can only work with a blank MCU that have not been programmed before. I have only used the default setting in the CubeProgrammer. I appreciate if you can give me any suggestion.
Hi all,I am using a nucleo board F412ZG with the Middelware FreeRTOS. I use only one task for now, but I will use others in future.By the way, I set TIM2 as the timer system for FreeTOS:Now I am trying to enable pin PC8 as an external interrupt in order to detect a falling edge: When I generate the code I notice that the TIM2 interrupts is deleted, but I do not understand why. Anyone can help me?Below I leave the screens of the generated code modifies from git:
Hey!I'm trying to run my AI model on my NUCLEO-657X0-Q, following @Julian E. great guide in here.I have 2 questions:1. My model has some running issues during booting.In the FSBL code that suppose to jump to the application (JumpToApplication) there is some crash between the start of __set_MSP() and the start of _set_PRIMASK(), I would say it maybe an error in the pointer to the application code, but when I run it step by step in the IDE's debugger it works just fine.Do you have an idea of why would that happen / how to debug it? (I don't have printings at this stage, and turning in the LEDs in the middle of stack switch makes it fail in the debugger too).2. When my model do run (in the debugger) I get to the point where I start the epoch block, but no outputs / epoch end, and it just gets stuck in the loop. Does it happens because it's in debugger mode, or maybe my model is not compatible? when I validated it in CubeMX AI extension it looked ok.Is there any way to debug
Hi all,I'm trying to use Livetune to make an mp3 player but it only works once connected to a board. I have a custom Nucleo-U5A9 (originally a Nucleo-U575, I replaced the MCU and added xtal). I'm reading UM3297 Getting started with X-CUBE-AUDIO-KIT and on page 6 (picture below) says:"The connection is successful only if the firmware running on the device includes the Designer communication firmware."I would like to include this "Designer communication firmware" into my custom board/firmware but I can't seem to find any reference to it anywhere. I'm pretty sure is part of the examples firmware but I rather not hunt for it that way unless there is an example for the U5A9 which I don't see. Even so ... this "Designer communication firmware" doesn't seem to be designated as such in the example projects.where is this "Designer communication firmware"? How do I integrate it into my custom U5A9 board?Any help is appreciated... thanks.
Hello,I moved an existing project from 1.14 to 2.0.0. To be clear I created a new workspace, then a new project in 2.0.0 in order to prevent any non relevant bit taken from 1.14 (at the project level) and copied only the source files from 1.14 to 2.0.0. The linker file comes from 2.0.0, as well as the startup file (which is not relevant here).When I compile I get the error that elf has LOAD segment with RWX permissions. The linker file has the READONLY moniker where they are needed, but I have 3 functions that are running from RAM, with __attribute__ ((section(".RamFunc"))). Obviously these are executables, so it is expected to have RWX in the .data section, where .RamFunc resides.How can I get rid of this warning, please ?Even though it is not relevant, the MCU is an STM32G0B1CB.
Post edited by ST moderator to be inline with the community rules for the code sharing. In next time please use </> button to paste your code. Please read this post: How to insert source code. Hi,I want to jump to system memory boot with SW using UART1.I tested it using code I found by searching forums and the internet, but it doesn't work.For reference, the STM32G071 shares the BOOT0 and SWCLK pins. By pulling the BOOT0 pin high and resetting the device, I can perform a system memory boot. After that, I connected the UART connect in STM32CubeProgrammer and verified the update. However, after jumping to the code below and pressing the UART connect in STM32CubeProgrammer, the following message appears and the device fails. RTS lowDTR lowSerial Port COM15 is successfully opened.Port configuration: parity = even, baudrate = 115200, data-bit=8, stop-bit=1.0, flow-control=0ffTimeout error occurred while waiting for acknowledgment.Error: Activating device: KO. Please verify the boot mo
Hello. I'm trying to get the LVGL library running on the STM32H7S78. The simple DMA2D variant (LV_USE_DRAW_DMA2D) with 16-bit color depth works perfectly, but it's not very performant. Therefore, I'm trying to get the LV_USE_NEMA_GFX variant running instead. The basis is LVGL version V9.3, which already runs on an STM32U5 with NEMA_GFX. However, the problem is that it always crashes during initialization in lv_draw_nema_gfx_init(). lv_draw_nema_gfx_unit_t * draw_nema_gfx_unit = lv_draw_create_unit(sizeof(lv_draw_nema_gfx_unit_t)); /*Initiallize NemaGFX*/ nema_init(); draw_nema_gfx_unit->base_unit.dispatch_cb = nema_gfx_dispatch; draw_nema_gfx_unit->base_unit.evaluate_cb = nema_gfx_evaluate; draw_nema_gfx_unit->base_unit.delete_cb = nema_gfx_delete; draw_nema_gfx_unit->base_unit.name = "NEMA_GFX"; /*Create GPU Command List*/ draw_nema_gfx_unit->cl = nema_cl_create(); /*Bind Command List*/ nema_cl_bind_circular(&(draw_nema_gfx_unit->cl));
Hello,I am currently designing a custom PCB with the STM32WLE5CC (QFN package) targeting +22 dBm in the 868 MHz frequency band.I have been following the reference design based on the MB1720 board, which is specifically described as being for +22 dBm at 868 MHz. However, I don’t fully understand why, in this high-power configuration, the solder bridge for RFO_LP is closed while RFO_HP is left open.Could you please clarify the reason for this choice in the reference design?Thank you in advance.
Hi : I want to use MTP & HID simultaneously in stm32f103RE, but there is not CompositeBuilder and MTP in stm32f1 STM32_USB_Device_Library, so can I use stm32f4 STM32_USB_Device_Library directly? Or is there any other solution to use MTP & HID simultaneously in stm32f103RE?
Issue SummaryOn STM32N6570-DK, enabling ANY peripheral together with ThreadX or FreeRTOS causes an immediate HardFault, even in a minimal CubeMX-generated project with no user code.This includes peripherals such as:DCMIPPLTDCSDMMCUSBUARTI2CSPIGPIO with interruptsDMAAnything beyond simple GPIO outputThe issue is NOT limited to the camera/display pipeline.EnvironmentBoard: STM32N6570-DKIDE: STM32CubeIDE (latest)CubeMX: latest versionFirmware: STM32N6 HAL/BSP (latest)Security Modes Tested:FSBL + Application (secure/non-secure)Non-secure Application only (no FSBL)Both show the same problem.What Works✔ RTOS disabled → All peripherals work✔ Camera + display pipeline works bare-metal✔ GPIO output works with RTOS (LED blink, simple logic)What Fails:cross_mark:ThreadX + ANY peripheral init → HardFault:cross_mark:FreeRTOS + ANY peripheral init → HardFault:cross_mark:Even minimal projects with zero user code crash before scheduler start:cross_mark:Commenting a peripheral moves the crash to
Device detailsMPU: STM32H753AII6Connection:Probe: J-Link V11.00 / SW version V7.98c STM toolset: STM32 Cube Programmer / Trusted Package Creator v2.20.0SFI programming fails with error:Error: SECURITY State FailError: Invalid state after SFI install !Error: RSS internal system error or License is invalid ! I also tried against the STM32H757I-EVAL board, which has a compatible CPU, with the same result.-----HSM provisioningHSM provisioningFor Personalization Data I chose the group with the H753 in it, and from the 4 options in dropdown list the combination of "SFI" and Device ID "45002001" which is how the STM32H753 identifies.SFI creationFor the simplified example, there is only one section of code starting from default address 0x08000000.Settings for RAM size and continuation token are default, and seem to make sense.Option bytes are, except for RDP level = 0xBB (level 1), identical to the defaults after mass erase.SFI creationSFI flashingSFI flashingComplete log:15:25:
Dear experts,I'm reading RMs for STM32 models with dual flash banks (F4, H7...) and don't quite understand how to use bank switching.Take the firmware update scenario when old firmware is in bank1 and new is programmed to bank2. So it programs some option byte to switch banks and next time should boot from bank2.If the new version is bad, I'd like to boot automatically from bank1. But how? the option byte is written. Is there a way to control bank switch by external pin? On some systems that I've seen before we did it in the following way: we made a simple watchdog (CPLD or whatever) that automatically toggles the boot selector pin. If the CPU does not touch the watchdog in defined time since reset, it will switch the selector pin and reset again.So if the new firmware fails to boot, the system will reboot to the old firmware.I'd like to implement the same on STM32, with external widget if needed, but better without it.On the other hand, for H7 you can define alternative start addresse
cubeide 2.0.0 start touchGFX project, cross compiler prefix: ? cross compiler path: ? MX be removed, how to setup MCU component? first start from MX?
Spoiler (Highlight to read)Spoiler (Highlight to read)Did you find STM32CubeIDE will eat your perfect code when you doze off a while(put into system code segment). Did you find STM32CubeIDE will eat your perfect code when you doze off a while(put into system code segment). Hello,I have a suggestion: I hope STM32CubeIDE can put the deleted code segments into a backup file when user click "Generate Code" button. because sometimes user will wrongly put his code into system Generate code area, or someone can edit the configuration file(*.ioc) to disable the "global interrupt"(for example), this will lead to the interrupt service function codes to be overwritten or lost.sometime, it costs a lot. Second,If I can say freely, there will some wired things happen in the STM32CubeIDE, when I debug an "uint16_t" variable(like: Azimuth, in the blew picture), the value displayed can be a "-3"? I think this should be a bug.
Heyho,do all SAIs in all MCUs offer the SPDIF output feature?CubeMx and online MCU selectors do not show this info, no time to check 20 more datasheets.For the few STM32 I know and worked or played with (G4, F7, H7) the answer is yes.Merci!
Hello,i am Interfacing a module (Radiomaster Ranger Micro) to my MCU (STM32F411) using the UART Interface, but this module has only one Hard-Pin for both TX and RX.Sending packages from the MCU to the module is working already well.Now i want to receive packages from it.I searched the net for a solution and readed that i may use a gate switch (NAND, OR, …) or even MUX, DEMUX.I want to write here and ask for some advices which is the better.I do not want that the MCU heat it self so i want to connect only TX to the module for sending and only RX to the module when receiving.Thanks in advance.
Hello ST Community,I am using a STEVAL-25R200A to do tests with the ST25TV02KC.I am trying to rfalST25xVPollerPresentPassword, with a pwdNumber of 0x00 to enter Configuration Session (As described in the nfc tag datasheet), But keep getting error 5, even though I am passing the default 32-bit password.I am using this function:ReturnCode ST25TAGS_TVC_OpenSecuritySession(const uint8_t * uid, ST25TAG_TVC_SecuritySession_t sessionType, const uint8_t * pPassword) { uint8_t pwdNumber; uint8_t pwdLengthInBytes = 4; ReturnCode errCode; uint8_t rxBuf[ 1 + 2 + 2 ]; /* Flags + Random Number Data + CRC */; uint16_t rcvLen; uint8_t updatedPassword[8]; switch (sessionType) { case CONFIGURATION_SECURITY_SESSION: pwdNumber = 0; break; case USER_AREA1_SECURITY_SESSION: pwdNumber = 1; break; case USER_AREA2_SECURITY_SESSION: pwdNumber = 2; break; case SINGLE_USER_AREA_SECURITY_SESSION: pwdLengthInBytes = 8; pwdNumber = 1; break; case UNTRACEABLE_SECURITY_SESSION: pwdNu
Hello Forum,I'm trying to get a simple application, running on a NUCLEO-U5A5ZJ-Q dev board, to jump to the system bootloader from FreeRTOS. I've also got AN2606 to hand (application note for the STM bootloader) and RM0456 (STM32 U5 reference manual). I have been following this guide. How to jump to system bootloader from application ... - STMicroelectronics CommunityAccording to the guide and reference manuals the bootloader base address on my MCU (STM32U5A5) is at 0x0BF90000. The 32 bit word at that address is the stack location, and the 32bit work at 0x0BF90004 is the entry point for the bootloader. In my setup values are read as:0x200034E8 - this is valid memory (stack)0x0BF98C39 - this is unexpected as lots of the internet says this should be 0x0BF99EFE but I'm guessing this is actually OK.I currently have this code:#define BOOTLOADER_BASE 0x0BF90000 typedef struct boot_vectable { uint32_t Initial_SP; void (*Reset_Handler)(void); } boot_vectable_t; void Ju
Good morning sir Have a nice day Pls identify the components name .I don't identify the components name . I m trying to various type of search tools to identify the components. The component name show N and 24 .pls help N and 24 both components not identified
The marking of M41T62Q6F is as follows. I think the date code is 2013 or 2003 10weeks? How to identify the date code is 2013 or 2003?
Generate code from attached .iocBuild with cmake:cmake --preset Debug && cmake --build --preset DebugInspect NonSecure/build/build.ninja and we find build CMakeFiles/myproject_NS.dir/AZURE_RTOS/App/app_azure_rtos.c.obj: C_COMPILE R__myproject_NS_Debug ... || c make_object_order_depends_target_myproject_NS ... FLAGS = -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -Wall -fdata-sect ions -ffunction-sections -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -Wall -fdata-sections -ffunction-sections -O0 -g3 -std=gnu11 Note that the flags set in gcc-arm-none-eabi.cmake # MCU specific flags set(TARGET_FLAGS "${STM32_MCU_FLAGS}") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${TARGET_FLAGS}") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fdata-sections -ffunction-sections") occurs twice!The reason for this is that the toolchain file gcc-arm-none-eabi.cmake is evaluated multiple times. It is exactly the problem described at [3.31.6] Toolchain file ge
Do all the STM32WL series MCUs support STSAFE ? If yes, how it can be done?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.