cancel
Showing results for 
Search instead for 
Did you mean: 

Device information for STM32H5 MCU on stm32flash0.7

nama
Associate II

Hi all,
I am using an STM32H563 (device ID 0x484).
When attempting to update the MCU firmware using stm32flash 0.7, I am encountering the following error.

=============
stm32flash 0.7

http://stm32flash.sourceforge.net/

Interface serial_posix: Baud Rate : 115200, Data Bit : 8, Parity : E, Stop Bit : 1
GET returns unknown commands (0x50)
Unknown/unsupported device (Device ID: 0x484)

 

I would like to know what the 0x50 command is and what content should be added to devices[] for the STM32H.The following is what I found through a search, but I don't know if it's accurate.

=============
const stm32_dev_t devices[] = {
/* ID "name" SRAM-address-range FLASH-address-range PPS PSize Option-byte-addr-range System-mem-addr-range Flags */
/* H5 */
/* {0x474, "STM32H503xx" , 0x20004000, 0x20008000, x , x , x, x, , x , x , 0x0BF87000, 0x0BF90000, x}, */
/* {0x484, "STM32H563xx/573xx , 0x20000000, 0x200A0000, x , x , x, x, , x , x , 0x0BF97000, 0x0BFA0000, x}, */
/* {0x478, "STM32H523xx/33xxx , 0x20004000, 0x20044000, x , x , x, x, , x , x , 0x0BF97000, 0x0BFA0000, x}, */

 

thanks, nama

1 ACCEPTED SOLUTION

Accepted Solutions
mƎALLEm
ST Employee

Hello,

This is not a ST solution. You need to contact its developper.

The log says: "Unknown/unsupported device (Device ID: 0x484)". 

More likely that "stm32flash 0.7" doesn't support the device yet. So please use STM32CubeProgrammer instead.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

8 REPLIES 8
Issamos
Lead II

Hello @nama 

I suggest you to try using the STM32CubeProgrammer.

Best Regards.

II

mƎALLEm
ST Employee

Hello,

This is not a ST solution. You need to contact its developper.

The log says: "Unknown/unsupported device (Device ID: 0x484)". 

More likely that "stm32flash 0.7" doesn't support the device yet. So please use STM32CubeProgrammer instead.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Hello,

The solution we are developing includes a HOST AP(Linux OS) connected to an STM32H MCU via serial.
This HOST AP must perform MCU upgrade via serial communication.
I was unable to find the open-source version of STM32CubeProgrammer for Linux.
Does ST provide the source code?

thanks for your quickly response.

Hello,

Unfortunately STM32CubeProgrammer tool is not an open source solution.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

Hello, mƎALLEm

I would first like to know the exact values for the SRAM address range, FLASH address range, PPS, PSize, Option byte address range, System memory address range, and Flags items.

I expect you to inform me about this.

thanks,

nama
Associate II

Dear all,

As you mentioned, using STM32CubeProgrammer would be ideal, but we need to control the STM32H MCU by integrating a flash programmer into the host.
Therefore, despite some potential issues, I believe we should use “stm32flash 0.7”.

Anyway, I have compiled the device information based on the contents of the following capture file and I successfully performed flash writing and verification.
However, for some reason, the STM32H MCU does not boot.
I suspect the settings below might be incorrect.

I need advice on whether these settings are correct.

==========

SRAM-address-range : 0x20000000 ~ 0x20040000

FLASH-address-range : 0x08000000 ~ 0x08200000

PPS : 1

PSize : p_8k

Option-byte-addr-range : 0   // I couldn't find this information.

System-mem-addr-range Flags : 0x0BF97000 ~ 0x0BFA0000

Flags : 0 

 

 

configuration_in_boot_mode.pngflash.pngsram.png

 

 

nama
Associate II

Dear all,

The STM32H MCU has just successfully booted up.
Thank you all for your help.

 

 

Hello @nama 

"jeson" is a spammer.

So please provide the exact steps you followed to solve the issue and mark it as solution, otherwise we will select the answer from our side.

Thank you.

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.