2024-04-04 10:47 PM - edited 2024-04-05 01:49 AM
Hi all,
I am using STM32F769I-DISCO Board
IDE : 1.12.1
CubeMx : 6.10.0
ST CUBE programer version 2.15.0
I am not able to flash, I am getting following error during flash,
I tried changing SWD freq and Connect mode: Under_reset
Log output file: C:\Users\MQSTEC~1\AppData\Local\Temp\STM32CubeProgrammer_a11412.log
ST-LINK SN : 0673FF555551847167202052
ST-LINK FW : V2J43M28
Board : 32F769IDISCOVERY
Voltage : 3.22V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x451
Revision ID : Rev A
Device name : STM32F76x/STM32F77x
Flash size : 2 MBytes
Device type : MCU
Device CPU : Cortex-M7
BL Version : 0x93
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a11412.srec
File : ST-LINK_GDB_server_a11412.srec
Size : 2.11 MB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sectors [0 6]
Error: failed to erase memory
Error: failed to erase memory
Encountered Error when opening C:\ST\STM32CubeIDE_1.12.0\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.0.600.202301161003\tools\bin\STM32_Programmer_CLI.exe
Error in STM32CubeProgrammer
Shutting down...
Exit.
I tried Erasing memory through STCubeProgrammer
I disabled flash protections RDP level 0, Write protection disabled and nDBANK bit disabled but still not able to Erase full chip memory
what's the state of my MCU I'm not getting how can I flash again please suggest..
2024-04-05 09:50 AM
Hi @lavanya ,
You can use STM32CubeProgrammer directly to check what happens.
You can try a mass erase, sector erase, and check the flash content
Best regards
Jocelyn
2024-04-05 10:44 AM
What were you doing immediately prior to this failure?
Are you connected to other external circuitry? Shorted the board out on a conductive surface?
Might have been electrically damaged, or an issue with the power supply / regulators.
Try a different board, perhaps different USB cable / port.
2024-04-05 10:18 PM - edited 2024-04-05 11:15 PM
@Jocelyn RICARD Thank you for replay,
I tried with ST Cube Programmer but it didn't worked, later I tried with ST Utility, I Erased Chip memory. By setting option bytes
Now I am able to Flash the code. But MCU state is halted
-------------------------------------------------------------------
STM32CubeProgrammer v2.13.0
-------------------------------------------------------------------
Log output file: C:\Users\MQSTEC~1\AppData\Local\Temp\STM32CubeProgrammer_a11792.log
ST-LINK SN : 0673FF555551847167202052
ST-LINK FW : V2J43M28
Board : 32F769IDISCOVERY
Voltage : 3.22V
SWD freq : 4000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x451
Revision ID : Rev A
Device name : STM32F76x/STM32F77x
Flash size : 2 MBytes
Device type : MCU
Device CPU : Cortex-M7
BL Version : 0x93
Memory Programming ...
Opening and parsing file: ST-LINK_GDB_server_a11792.srec
File : ST-LINK_GDB_server_a11792.srec
Size : 4.54 KB
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sector 0
Download in Progress:
File download complete
Time elapsed during download operation: 00:00:00.357
Verifying ...
Download verified successfully
Shutting down...
Exit.
But code is not executing, I tried debug but
After flash I connected again to ST Utility to check MCU state.
PC should point to 0x80000000 it is pointing to some other address, How can i set it back ?
2024-04-05 11:14 PM
Hi @Tesla DeLorean, Thank for your replay,
a month ago, I was working on SBSFU Secure bootloader, I tried examples code given from SBSFU latest Package(v 2.6.2)
it was working properly,
I didn't connected any external circuitry,
Shorted the board out on a conductive surface? --> NO
power supply / regulators.--------------------------------> Checked Supply No issue with it.
Try a different board --------------------------------------->I have only one board.
perhaps different USB cable / port.--------------------->I tried, No use :(.
2024-04-08 01:29 AM
Hi @lavanya ,
please check the option byte configuration to check which boot mode is activated and what is the boot address.
Br,
Frantz