2017-02-20 07:11 PM
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 #stm32f76Solved! Go to Solution.
2017-06-22 02:28 AM
Hi, problem resolved.
I change STMap file as:
[Product]
Name=STM32F7_46_1024K_RAMPID=0449BID=1FF0EDBEFlashSize=0400 ;;ADDR_FLASH_SIZE=FFFFFFFF; TO BE DONE !!!!PacketSize=80ACKVAL=79MAPNAME=SectorsPagesPerSector=1family = 6;;; InternalRAM[InternalRAM]Name=userRAMAddress=20010000
Size=0001D000Type=111UFO=1112017-02-20 11:14 PM
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=falseTo give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2017-02-21 01:25 AM
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
(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.
2017-02-21 12:33 PM
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?
2017-06-21 10:29 AM
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.
i get Error: can not erase or can not download.
I change .STmap file for my MCU:
;;-------
[Product]
Name=STM32F7_46_1024KPID=0449BID=1FF0EDBEFlashSize=0400 ;;ADDR_FLASH_SIZE=FFFFFFFF; TO BE DONE !!!!PacketSize=80ACKVAL=79MAPNAME=SectorsPagesPerSector=1family = 6;;; InternalRAM[InternalRAM]Name=userRAMAddress=20003000Size=0001D000Type=111UFO=111;;---------
what is wrong?
2017-06-22 02:28 AM
Hi, problem resolved.
I change STMap file as:
[Product]
Name=STM32F7_46_1024K_RAMPID=0449BID=1FF0EDBEFlashSize=0400 ;;ADDR_FLASH_SIZE=FFFFFFFF; TO BE DONE !!!!PacketSize=80ACKVAL=79MAPNAME=SectorsPagesPerSector=1family = 6;;; InternalRAM[InternalRAM]Name=userRAMAddress=20010000
Size=0001D000Type=111UFO=1112018-09-17 04:55 AM
Hi, Do you have the newer version of Flash loader demonstrator for STM32F76X devices? Kindly share
2018-09-17 06:38 AM
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.