2024-09-03 08:01 AM
I am currently facing an issue with my STM32H743BITB microcontroller while using the STM32CubeProgrammer. I can successfully load the bootloader, and the software indicates that the boot has been loaded correctly. However, when I attempt to read the data, I encounter the following error message: "Error: Data read failed."
I would greatly appreciate your assistance in resolving this issue. Please let me know if there are any specific steps or settings I should verify.
2024-09-03 08:09 AM
I encounter this error when trying to load the program from Keil.
2024-09-03 08:33 AM
STM32 Cube Programmer is indicating there's no voltage on the target.
Perhaps take a step back, and describe exactly what you've built, what ST-LINK you're using, and how you've wired up the debug header.
Pin 1 of the 20-pin ARM JTAG header should be connected to the 3V / 3.3V supply of the Target.
Failure to program can result due to inadequate power supply, or VCAP implementation.
2024-09-03 10:43 AM
Thank you for your response, but where do you see this voltage information?
2024-09-03 10:59 AM - last edited on 2024-09-03 12:26 PM by Tesla DeLorean
Erase Done.
Programming Done.
Contents mismatch at: 08004000H (Flash=00H Required=2DH) !
Contents mismatch at: 08004001H (Flash=00H Required=22H) !
Contents mismatch at: 08004002H (Flash=00H Required=02H) !
....
Too many errors to display !
Error: Flash Download failed - "Cortex-M7"
What could be the problem?
2024-09-03 11:05 AM
It looks like your hex file contains area starting with 0x08000000 more than once. Which isn't going to work.
2024-09-03 12:24 PM
A couple of lines of the same error would have sufficed.
Perhaps you need to check you're using the correct Flash Algorithm for the way you have the banking enabled (see option bytes)
Look under Debug -> Settings -> Flash Download
2024-09-04 06:50 AM
No, here's the full error message.
Load "C:\\Keil_v5\\workspace\\CPU64OS+USB2+ETH2\\Objects\\cpu64.axf"
Erase Done.
Programming Done.
Contents mismatch at: 08000000H (Flash=FFH Required=E8H) !
Contents mismatch at: 08000001H (Flash=FFH Required=97H) !
Contents mismatch at: 08000002H (Flash=FFH Required=00H) !
Contents mismatch at: 08000003H (Flash=FFH Required=24H) !
Contents mismatch at: 08000004H (Flash=FFH Required=09H) !
Contents mismatch at: 08000005H (Flash=FFH Required=04H) !
Contents mismatch at: 08000006H (Flash=FFH Required=00H) !
Contents mismatch at: 08000007H (Flash=FFH Required=08H) !
Contents mismatch at: 08000008H (Flash=FFH Required=D1H) !
Contents mismatch at: 08000009H (Flash=FFH Required=E9H) !
Contents mismatch at: 0800000AH (Flash=FFH Required=00H) !
Contents mismatch at: 0800000BH (Flash=FFH Required=08H) !
Contents mismatch at: 0800000CH (Flash=FFH Required=19H) !
Contents mismatch at: 0800000DH (Flash=FFH Required=E6H) !
Contents mismatch at: 0800000EH (Flash=FFH Required=00H) !
Contents mismatch at: 0800000FH (Flash=FFH Required=08H) !
Contents mismatch at: 08000010H (Flash=FFH Required=CDH) !
Contents mismatch at: 08000011H (Flash=FFH Required=E9H) !
Contents mismatch at: 08000012H (Flash=FFH Required=00H) !
Contents mismatch at: 08000013H (Flash=FFH Required=08H) !
Contents mismatch at: 08000014H (Flash=FFH Required=91H) !
Contents mismatch at: 08000015H (Flash=FFH Required=9DH) !
Contents mismatch at: 08000016H (Flash=FFH Required=00H) !
Contents mismatch at: 08000017H (Flash=FFH Required=08H) !
Contents mismatch at: 08000018H (Flash=FFH Required=21H) !
Contents mismatch at: 08000019H (Flash=FFH Required=23H) !
Contents mismatch at: 0800001AH (Flash=FFH Required=01H) !
Contents mismatch at: 0800001BH (Flash=FFH Required=08H) !
Contents mismatch at: 0800001CH (Flash=FFH Required=00H) !
Contents mismatch at: 0800001DH (Flash=FFH Required=00H) !
Contents mismatch at: 0800001EH (Flash=FFH Required=00H) !
Contents mismatch at: 0800001FH (Flash=FFH Required=00H) !
Contents mismatch at: 08000020H (Flash=FFH Required=00H) !
Contents mismatch at: 08000021H (Flash=FFH Required=00H) !
Contents mismatch at: 08000022H (Flash=FFH Required=00H) !
Contents mismatch at: 08000023H (Flash=FFH Required=00H) !
Contents mismatch at: 08000024H (Flash=FFH Required=00H) !
Contents mismatch at: 08000025H (Flash=FFH Required=00H) !
Contents mismatch at: 08000026H (Flash=FFH Required=00H) !
Contents mismatch at: 08000027H (Flash=FFH Required=00H) !
Contents mismatch at: 08000028H (Flash=FFH Required=00H) !
Contents mismatch at: 08000029H (Flash=FFH Required=00H) !
Contents mismatch at: 0800002AH (Flash=FFH Required=00H) !
Contents mismatch at: 0800002BH (Flash=FFH Required=00H) !
Contents mismatch at: 0800002CH (Flash=FFH Required=89H) !
Contents mismatch at: 0800002DH (Flash=FFH Required=04H) !
Contents mismatch at: 0800002EH (Flash=FFH Required=00H) !
Contents mismatch at: 0800002FH (Flash=FFH Required=08H) !
Contents mismatch at: 08000030H (Flash=FFH Required=35H) !
Contents mismatch at: 08000031H (Flash=FFH Required=9FH) !
Contents mismatch at: 08000032H (Flash=FFH Required=00H) !
Contents mismatch at: 08000033H (Flash=FFH Required=08H) !
Contents mismatch at: 08000034H (Flash=FFH Required=00H) !
Contents mismatch at: 08000035H (Flash=FFH Required=00H) !
Contents mismatch at: 08000036H (Flash=FFH Required=00H) !
Contents mismatch at: 08000037H (Flash=FFH Required=00H) !
Contents mismatch at: 08000038H (Flash=FFH Required=23H) !
Contents mismatch at: 08000039H (Flash=FFH Required=05H) !
Contents mismatch at: 0800003AH (Flash=FFH Required=00H) !
Contents mismatch at: 0800003BH (Flash=FFH Required=08H) !
Contents mismatch at: 0800003CH (Flash=FFH Required=33H) !
Contents mismatch at: 0800003DH (Flash=FFH Required=05H) !
Contents mismatch at: 0800003EH (Flash=FFH Required=00H) !
Contents mismatch at: 0800003FH (Flash=FFH Required=08H) !
Contents mismatch at: 08000040H (Flash=FFH Required=49H) !
Contents mismatch at: 08000041H (Flash=FFH Required=04H) !
Contents mismatch at: 08000042H (Flash=FFH Required=00H) !
Contents mismatch at: 08000043H (Flash=FFH Required=08H) !
Contents mismatch at: 08000044H (Flash=FFH Required=49H) !
Contents mismatch at: 08000045H (Flash=FFH Required=04H) !
Contents mismatch at: 08000046H (Flash=FFH Required=00H) !
Contents mismatch at: 08000047H (Flash=FFH Required=08H) !
Contents mismatch at: 08000048H (Flash=FFH Required=49H) !
Contents mismatch at: 08000049H (Flash=FFH Required=04H) !
Contents mismatch at: 0800004AH (Flash=FFH Required=00H) !
Contents mismatch at: 0800004BH (Flash=FFH Required=08H) !
Contents mismatch at: 0800004CH (Flash=FFH Required=49H) !
Contents mismatch at: 0800004DH (Flash=FFH Required=04H) !
Contents mismatch at: 0800004EH (Flash=FFH Required=00H) !
Contents mismatch at: 0800004FH (Flash=FFH Required=08H) !
Contents mismatch at: 08000050H (Flash=FFH Required=49H) !
Contents mismatch at: 08000051H (Flash=FFH Required=04H) !
Contents mismatch at: 08000052H (Flash=FFH Required=00H) !
Contents mismatch at: 08000053H (Flash=FFH Required=08H) !
Contents mismatch at: 08000054H (Flash=FFH Required=49H) !
Contents mismatch at: 08000055H (Flash=FFH Required=04H) !
Contents mismatch at: 08000056H (Flash=FFH Required=00H) !
Contents mismatch at: 08000057H (Flash=FFH Required=08H) !
Contents mismatch at: 08000058H (Flash=FFH Required=49H) !
Contents mismatch at: 08000059H (Flash=FFH Required=04H) !
Contents mismatch at: 0800005AH (Flash=FFH Required=00H) !
Contents mismatch at: 0800005BH (Flash=FFH Required=08H) !
Contents mismatch at: 0800005CH (Flash=FFH Required=49H) !
Contents mismatch at: 0800005DH (Flash=FFH Required=04H) !
Contents mismatch at: 0800005EH (Flash=FFH Required=00H) !
Contents mismatch at: 0800005FH (Flash=FFH Required=08H) !
Contents mismatch at: 08000060H (Flash=FFH Required=49H) !
Contents mismatch at: 08000061H (Flash=FFH Required=04H) !
Contents mismatch at: 08000062H (Flash=FFH Required=00H) !
Contents mismatch at: 08000063H (Flash=FFH Required=08H) !
Too many errors to display !
Error: Flash Download failed - "Cortex-M7"
Flash Load finished at 10:06:38
2024-09-04 06:58 AM
When I took the photo, my microcontroller was locked (RDP). Now it's okay, I can delete the sector in the flash, but I received this information (see photo). I think the sector is locked because I can successfully load the .hex file via STM32CubeProgrammer, but right after that, nothing happens, and I get a 'failed to read data' error.
2024-09-04 07:14 AM