2025-01-17 10:52 PM
Hi evryone,
I'm trying to start a project with Trustzone activated, so I followed that tutorial by ST and I'm using exactly the same board the STM32L562E-DK but when I'm trying to flash the programm on the board I got that error:
And there is the log file:
STMicroelectronics ST-LINK GDB server. Version 7.9.0 Copyright (c) 2024, STMicroelectronics. All rights reserved. Starting server with the following options: Persistent Mode : Disabled Logging Level : 1 Listen Port Number : 61234 Status Refresh Delay : 15s Verbose Mode : Disabled SWD Debug : Enabled InitWhile : Enabled Waiting for debugger connection... Debugger connected Waiting for debugger connection... Debugger connected Waiting for debugger connection... ------------------------------------------------------------------- STM32CubeProgrammer v2.18.0 ------------------------------------------------------------------- Log output file: C:\Users\louis\AppData\Local\Temp\STM32CubeProgrammer_a23140.log ST-LINK SN : 003100443137511733333639 ST-LINK FW : V3J15M7 Board : STM32L562E-DK Voltage : 3.30V SWD freq : 8000 KHz Connect mode: Under Reset Reset mode : Hardware reset Device ID : 0x472 Revision ID : Rev Z Reconnecting with the recommended frequency (1000 kHz)! ST-LINK SN : 003100443137511733333639 ST-LINK FW : V3J15M7 Board : STM32L562E-DK Voltage : 3.30V SWD freq : 1000 KHz Connect mode: Under Reset Reset mode : Hardware reset Device ID : 0x472 Revision ID : Rev Z Reconnected with the recommended frequency (1000 kHz)! Device name : STM32L5xx Flash size : 512 KBytes (default) Device type : MCU Device CPU : Cortex-M33 BL Version : -- Opening and parsing file: ST-LINK_GDB_server_a23140.srec Memory Programming ... File : ST-LINK_GDB_server_a23140.srec Size : 35.88 KB Address : 0x08040000 Erasing memory corresponding to segment 0: Erasing internal memory sectors [128 145] Download in Progress: Error: flash loader cannot be loaded. Error: failed to download Segment[0] Error: failed to download the File Encountered Error when opening C:\ST\STM32CubeIDE_1.16.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.2.0.202409170845\tools\bin\STM32_Programmer_CLI.exe Error in STM32CubeProgrammer ------------------------------------------------------------------- STM32CubeProgrammer v2.18.0 ------------------------------------------------------------------- Log output file: C:\Users\louis\AppData\Local\Temp\STM32CubeProgrammer_a23140.log ST-LINK SN : 003100443137511733333639 ST-LINK FW : V3J15M7 Board : STM32L562E-DK Voltage : 3.30V SWD freq : 8000 KHz Connect mode: Under Reset Reset mode : Hardware reset Device ID : 0x472 Revision ID : Rev Z Reconnecting with the recommended frequency (1000 kHz)! ST-LINK SN : 003100443137511733333639 ST-LINK FW : V3J15M7 Board : STM32L562E-DK Voltage : 3.30V SWD freq : 1000 KHz Connect mode: Under Reset Reset mode : Hardware reset Device ID : 0x472 Revision ID : Rev Z Reconnected with the recommended frequency (1000 kHz)! Device name : STM32L5xx Flash size : 512 KBytes (default) Device type : MCU Device CPU : Cortex-M33 BL Version : -- Opening and parsing file: ST-LINK_GDB_server_a23140.srec Memory Programming ... File : ST-LINK_GDB_server_a23140.srec Size : 5.31 KB Address : 0x0C000000 Erasing memory corresponding to segment 0: Erasing internal memory sectors [0 2] Erasing memory corresponding to segment 1: Erasing internal memory sector 124 Download in Progress: Error: flash loader cannot be loaded. Error: failed to download Segment[0] Error: failed to download the File Encountered Error when opening C:\ST\STM32CubeIDE_1.16.1\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.2.0.202409170845\tools\bin\STM32_Programmer_CLI.exe Error in STM32CubeProgrammer Shutting down... Exit.
I have followed all the steps including the Cube Programmer configuration.
I also get the same error when trying to creat my own programm on an other board, the NUCLEO-L552ZE-Q.
All the same problems on the forum seems to occur with custom boards but it is not my case.
Can you help me please?