cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 Flash Loader Demonstrator - Support for STM32F76X

Jason Orchard
Associate
Posted on February 21, 2017 at 04:11

Hi Everyone,

I was looking for a tool that was able to bootload an STM32F767 microcontroller via USART which I thought I found when I came across the STM Flash Loader Demonstrator (version 2.8.0). However, there was no '.STMap' memory map file for this processor family, the closest was STM32F74X/5X.  

I created a new memory map file for the 

STM32F767 (see attached) which allowed me to successfully connect to my micro using the Flash Loader Demonstrator. However, I cannot perform an erase, program or download. The error message that I receive says 'Fail. Check read/write protections'. However, when checking the flash readout and write protections they are disabled. 

Has anyone had success getting this flash loader tool to work for STM32F76X parts?

Also, does anyone know the meaning and significance of 'BID' in an '.STMap' file? I am currently using 'BID' for

STM32F74X/5X parts - maybe this could be the source of the problem?

#stm32 #flash-loader #flash #usart #bootloader #stm32f76
1 ACCEPTED SOLUTION

Accepted Solutions
mn
Associate III
Posted on June 22, 2017 at 09:28

Hi, problem resolved.

I change STMap file as:

[Product]

Name=STM32F7_46_1024K_RAM

PID=0449

BID=1FF0EDBE

FlashSize=0400    ;;ADDR_FLASH_SIZE=FFFFFFFF;  TO BE DONE !!!!

PacketSize=80

ACKVAL=79

MAPNAME=Sectors

PagesPerSector=1

family = 6;

;; InternalRAM

[InternalRAM]

Name=userRAM

Address=20010000

Size=0001D000

Type=111

UFO=111

View solution in original post

7 REPLIES 7
Amel NASRI
ST Employee
Posted on February 21, 2017 at 08:14

Hi

,

You find attached a newer version of the FlashLoader demonstrator supporting STM32F7 devices.

Please try it and keep me informed if it is working as expected or you faced any issue using it.

This version will be available soon on the web.

-Amel

________________

Attachments :

STMFlashLoader Demo_V2.9.0RC4.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyuT&d=%2Fa%2F0X0000000bDl%2FPFtATt_1p3PVGzmau8Yp2.MQQOT.samCQzDgE3UdIwc&asPdf=false

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.

Posted on February 21, 2017 at 09:25

Also, does anyone know the meaning and significance of 'BID' in an '.STMap' file?

BID: it is the Bootloader ID.

The information about its value for each product could be found in

http://www.st.com/content/ccc/resource/technical/document/application_note/b9/9b/16/3a/12/1e/40/0c/CD00167594.pdf/files/CD00167594.pdf/jcr:content/translations/en.CD00167594.pdf

(table 3).

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.

Posted on February 21, 2017 at 20:33

Hi Amel,

Thank you for your fast reply and for the new version of the flash loader tool - I will let you know if I have any problems with it. As it turns out I have managed to put my stm32F767 into an odd state by using my modified '.STMap' file. The NRST line is being pulled low over and over again. I have verified that there is no other MCU external circuitry that is causing this to happen. I can still program and execute code using TRUEStudio and the NRST line is fine (stay high) when the processor is halted or if you step through code line by line. However, if you remove break points and continue execution the NRST line starts to be pulled over and over again. 

This problem seemed to happen immediately following the command '-p --drp' (Deactivate read protection) issued via the command line tool of the stm flash loader version 2.8.0. 

Do you have any idea of how to fix this problem?

Cause this have been caused by an incorrect BID memory location in the '.STMap' file?

Posted on June 21, 2017 at 17:29

Hi

I am going to program qspi flash using UART boatloader that can use for future update from internet,

My MCU is STM32F746BG, I change sample project of AN2606 and make new .bin file. but i can not program RAM of stm32f746 using flash loader.

0690X00000603trQAA.jpg

i get Error: can not erase or can not download.

0690X00000603tmQAA.jpg

I change  .STmap file for my MCU:

;;-------

[Product]

Name=STM32F7_46_1024K

PID=0449

BID=1FF0EDBE

FlashSize=0400    ;;ADDR_FLASH_SIZE=FFFFFFFF;  TO BE DONE !!!!

PacketSize=80

ACKVAL=79

MAPNAME=Sectors

PagesPerSector=1

family = 6;

;; InternalRAM

[InternalRAM]

Name=userRAM

Address=20003000

Size=0001D000

Type=111

UFO=111

;;---------

what is wrong?

mn
Associate III
Posted on June 22, 2017 at 09:28

Hi, problem resolved.

I change STMap file as:

[Product]

Name=STM32F7_46_1024K_RAM

PID=0449

BID=1FF0EDBE

FlashSize=0400    ;;ADDR_FLASH_SIZE=FFFFFFFF;  TO BE DONE !!!!

PacketSize=80

ACKVAL=79

MAPNAME=Sectors

PagesPerSector=1

family = 6;

;; InternalRAM

[InternalRAM]

Name=userRAM

Address=20010000

Size=0001D000

Type=111

UFO=111
Abilash Shahin
Associate

Hi, Do you have the newer version of Flash loader demonstrator for STM32F76X devices? Kindly share

They don't, it has been replaced/superseded with the STM32 Cube Programmer in USART mode

https://www.st.com/en/development-tools/stm32cubeprog.html

The protocol remains the same so you could use your own solutions too.

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