Skip to main content
Ebun.1
Senior
December 2, 2020
Solved

Boot loader with stm32CubeProgrammer

  • December 2, 2020
  • 5 replies
  • 1504 views

Thank you for helping.

environment:

MCU: STM32F769BI

Programmer: stm32CubeProgrammer Ver2.6.0

I booted with the BOOT pin of the MCU set to H level and tried to write the hex file by the boot loader using USART1.

It's progressing halfway, but I always get an error and the write fails.

What is the cause?

Attach the log file.

Thank you.

This topic has been closed for replies.
Best answer by Houda GHABRI

Hi @Ebun.1​ 

Your Hex file contain an area in External Falsh memory : segment[1]: address= 0x90000000, size= 0x90C0

The Bootloader doesn't support external memory programming.

If you want to program the external memory to have to pass throw JTAG/SWD.

Hope it helps you.

Houda

5 replies

Tesla DeLorean
Guru
December 2, 2020

Make sure that you have selected a suitable External Loader for the board being used.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Ebun.1
Ebun.1Author
Senior
December 2, 2020

Hi Clive1

I am always indebted.

This time, I designed my own board.

AN2606 states that STM32F76xxx can use the bootloader functionality with USART1.

The MCU is connected with USART1 --USB-Serial Converter --PC (personal computer).

Leave the BOOT pin of the MCU at H level.

Select UART in the Programmer's combo box.

Select the COM port assigned to USB-Serial in the Port combo box.

When you press the Connect button, Data read successfully is displayed in the log, so you can connect.

Select the hex file from Open file and press Download.

Data transmission / reception starts. (I can check it because the LED is attached to the transmission / reception line.)

The log will display Download in Progress and writing will begin.

Sending and receiving will continue up to about 83%, but an error will occur around that point.

The following message is displayed in red in the log.

Error: Write address not acknowledged: 0x90000000

Error: failed to download Segment [1]

Error: failed to download the File

I don't think there is a problem with the interface.

Please tell me the cause of what is wrong.

Thank you.

Ebun.1
Ebun.1Author
Senior
December 3, 2020

Thank you for helping.

> Error: Write address not acknowledged: 0x90000000

The flash area is 0x8000000 - 0x81FFFFF

it might be?

Is the programmer accessing outside the range?

I think there is one more 0.

Houda GHABRI
Houda GHABRIBest answer
ST Employee
December 10, 2020

Hi @Ebun.1​ 

Your Hex file contain an area in External Falsh memory : segment[1]: address= 0x90000000, size= 0x90C0

The Bootloader doesn't support external memory programming.

If you want to program the external memory to have to pass throw JTAG/SWD.

Hope it helps you.

Houda

Ebun.1
Ebun.1Author
Senior
December 10, 2020

Hi Houda Ghabri

I see.

understood.

Thank you for your response.