2021-03-11 10:52 AM
There's a file STM32Cube_Demo-STM32H735G-DK-V1.0.0 on the website, but it's not the one referenced in the accompanying .bat file (which has a name ending in "FULL") and seems to just (sometimes) load up the selection screen but mostly gives me a blank screen, and any selection leads to a blank screen.
Is there a documented way to restore the board entirely to factory starting condition?
2021-03-11 01:04 PM
Hello,
the hex file is ok,
i had to modify "program_hexfile.bat"
it could not load the external loader file, because of the SPACE in "Program Files"
1. changed the path to my programmer directory
2. copy the external loader file "MX25LM51245G_STM32H735G-DK.stldr" from the prgrammer directory to the batch file directory.
3 changed the path of the external loader file in the batch file
...
:: C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer-2-6-0\bin\STM32_Programmer_CLI.exe
::@SET STM32_PROGRAMMER_PATH="%ProgramFiles(x86)%\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin"
@SET STM32_PROGRAMMER_PATH="C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer-2-6-0\bin"
...
::@SET STM32_EXT_FLASH_LOADER=%STM32_PROGRAMMER_PATH%\ExternalLoader\%EXT_LOADER2%.stldr
@SET STM32_EXT_FLASH_LOADER=%EXT_LOADER%.stldr
...
then you should get the following output freom the batch file
C:\work\arm\stm32\temp\en.STM32H735G-DK_demo\STM32H735G-DK_demo\Binary>program_hexfile.bat
=================================================
Erase and Flash all memories and reboot the board
=================================================
-------------------------------------------------------------------
STM32CubeProgrammer v2.6.0
-------------------------------------------------------------------
ST-LINK SN : 002700373438510C34313939
ST-LINK FW : V3J7M2
Board : STM32H735G-DK
Voltage : 3.31V
SWD freq : 24000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x483
Revision ID : Rev Z
Device name : STM32H72x/STM32H73x
Flash size : 1 MBytes
Device type : MCU
Device CPU : Cortex-M7
Mass erase ...
Mass erase successfully achieved
Memory Programming ...
Opening and parsing file: STM32Cube_Demo-STM32H735G-DK-V1.0.0.hex
File : STM32Cube_Demo-STM32H735G-DK-V1.0.0.hex
Size : 31505827 Bytes
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sector 0
Erasing memory corresponding to segment 1:
Erasing internal memory sectors [4 7]
Erasing memory corresponding to segment 2:
Erasing external memory sectors [0 45]
Erasing memory corresponding to segment 3:
Erasing external memory sectors [128 140]
Erasing memory corresponding to segment 4:
Erasing external memory sector 144
Erasing memory corresponding to segment 5:
Erasing external memory sectors [144 147]
Erasing memory corresponding to segment 6:
Erasing external memory sectors [176 587]
Download in Progress:
██████████████████████████████████████████████████ 100%
File download complete
Time elapsed during download operation: 00:02:39.826
Hard reset is performed
C:\work\arm\stm32\temp\en.STM32H735G-DK_demo\STM32H735G-DK_demo\Binary>
if you have still problems, post the batch file output
2021-03-11 04:46 PM
Thanks!
Still doesn't work from the bat file for some reason, but I got it to work by selecting the correct loader, erasing and programming it directly from the programmer (and putting SW1 in the right position).
-------------------------------------------------------------------
STM32CubeProgrammer v2.5.0
-------------------------------------------------------------------
ST-LINK SN : 003300213438510734313939
ST-LINK FW : V3J7M2
Board : STM32H735G
Voltage : 3.28V
SWD freq : 24000 KHz
Connect mode: Under Reset
Reset mode : Hardware reset
Device ID : 0x483
Revision ID : Rev Z
Device name : STM32H72x/STM32H73x
Flash size : 1 MBytes
Device type : MCU
Device CPU : Cortex-M7
Mass erase ...
Error: Mass erase operation failed.
Please verify flash protection
Memory Programming ...
Opening and parsing file: STM32Cube_Demo-STM32H735G-DK-V1.0.0.hex
File : STM32Cube_Demo-STM32H735G-DK-V1.0.0.hex
Size : 31505827 Bytes
Address : 0x08000000
Erasing memory corresponding to segment 0:
Erasing internal memory sector 0
Erasing memory corresponding to segment 1:
Erasing internal memory sectors [4 7]
Erasing memory corresponding to segment 2:
Erasing external memory sectors [0 45]
Error: failed to erase memory
Error: failed to erase memory
Hard reset is performed