cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7A3LIH6Q External loader

ma-hara
Associate II

Hello.

We are creating an external loader with STM32H7A3LIH6Q microcontroller and FlashROM is MX25L51245G (64MB).

The development environment is as follows
CubeIDE : v1.9.0
CubeProgrammer: v2.13.0
Microcontroller :STM32H7A3LIH6Q
External FlashROM :X25L51245GXDI-08G

Create external loader for FlashROM with CubeIDE,
I created a FlashROM external loader with CubeIDE and built it into CubeProgrammer(v2.13.0) to check the operation, However, I get an Error on Download.

The following is the log when I run it with CubeProgrammer.
10:33:18 : Memory Programming ...
10:33:18 : Opening and parsing file: UpdateBinary_4kb.BIN
10:33:18 : File : UpdateBinary_4kb.BIN
10:33:18 : Size : 4.00 KB
10:33:18 : Address : 0x90000000
10:33:18 : Erasing memory corresponding to segment 0:
10:33:19 : Erasing external memory sector 0
10:33:20 : Download in Progress:
10:33:21 : Error: failed to download Segment[0]
10:33:21 : Error: failed to download the File

And when 0x90000000 is read out
I wrote 4KByte of binary data,
I was able to confirm that 2KB of the data was written.

The cause of the error and, I do not know why only half of the data that I am trying to write is being written.
I am having difficulty investigating the cause.
Thank you in advance for any advice you may be able to provide.

1 REPLY 1

Debug and test the flash code from application space.

If you have an available UART you can output diagnostic information to understand what happening internally.

What pins are you using to connect the MX25L51245G ?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..