cancel
Showing results for 
Search instead for 
Did you mean: 

New official Flash Loader Demo v1.1

16-32micros
Associate III
Posted on August 13, 2008 at 05:51

New official Flash Loader Demo v1.1

7 REPLIES 7
16-32micros
Associate III
Posted on May 17, 2011 at 12:36

Dear all ,

Following your requests posts, I'm pleased to let you enjoy the official new version 1.1 that includes a command line utility and here is the full release notes vs 1.0 :

New Features

************

+ Add SOFTWARE License Agreement file

+ Save the last used configuration for the serial communication

+ Save the last used file names for upload and download operations

+ Add Enable/Diable the Read/Write protection commands

+ Add Option bytes Window for flexible usage

+ Add Option bytes upgrade thru files option to the download operation

+ Add of a Command line version of the flash loader demonstrator

+ Add of Source Files of the command line version

+ Add headers and and library files of common run-time DLLs

+ Support all STM32 family products,STR75x products, and all

STMicroelectronics products implementing the bootloader protocol

Enhancements

************

+ Fix a minor issue of format with the Upload operation in a binary file

+ Fix a minor issue with erase command status update

+ Fix an issue of Download, Upload and erase operations with an image size (>32k)

Full links for Quick Downloads :

Document)

http://www.st.com/stonline/products/literature/um/13916.pdf

Software)

http://www.st.com/stonline/products/support/micro/files/um0462.zip

Cheers,

STOne-32. :D

bob239955
Associate II
Posted on May 17, 2011 at 12:36

Many Thanks. 🙂

(edit)

Download - is now called 'download from file' - much clearer 8-)

Upload - is now called 'upload to file' - much clearer

Bug fixed - when uploading to a new file it no longer complains when no file.

[ This message was edited by: bobz on 09-06-2008 17:41 ]

andrea
Associate II
Posted on May 17, 2011 at 12:36

Hi,

I'm using this new V1.1.1 Flash Loader, it works fine with the user interface but I'm having issues when I try to program from the command line.

I'm using the KEIL MCBSTM32 demo board which comes with the STM32F103RBT6 and when I send this line:

C:\CODE\STMflashloader.exe -c --pn 1 --br 57600 --db 8 --pr EVEN --sb 1 --to 5 -i STM32F10xxBxx -e --all -d --fn C:\CODE\blinky.hex --v

returns:

Connecting [OK]

 

Configuring [OK]

 

erasing all pages [KO]

 

downloading page 0 @0x 8000000 size 1.00 [KO]

 

Th flash may be read protected; use -p --drp to disable write protection.

 

[KO]

Then I type:

C:\CODE\STMflashloader.exe -c --pn 1 --br 57600 --db 8 --pr EVEN --sb 1 --to 5 -i STM32F10xxBxx -p --drp --dwp

returns:

 

Connecting [OK]

 

Configuring [OK]

 

disabling read protection [OK]

 

disabling write protection [OK]

 

reseting device [OK]

 

I go back to step one and it gives me the same answer...

So I decided to take away the all from erase (--a):

C:\CODE\STMflashloader.exe -c --pn 1 --br 57600 --db 8 --pr EVEN --sb 1 --to 5 -i STM32F10xxBxx -e -d --fn C:\CODE\blinky.hex --v

And it returns:

 

Connecting [OK]

 

Configuring [OK]

 

downloading page 0 @0x 8000000 size 1.0 [OK]

 

downloading page 1 @0x 8000400 size 1.0 [OK]

 

downloading page 2 @0x 8000800 size 1.0 [OK]

 

downloading page 3 @0x 8000C00 size 1.0 [OK]

 

downloading page 4 @0x 8001000 size 1.0 [OK]

 

downloading page 5 @0x 8001400 size 1.0 [OK]

 

verifying page 0 @0x 8000000 size 1.0 [KO]

 

some pages may be write protected; use -p --dwp to disable write protection.

 

[KO]

 

Finally I decided to take away the verify(--v) parameter and it actually works... well... sometimes...

C:\CODE\STMflashloader.exe -c --pn 1 --br 57600 --db 8 --pr EVEN --sb 1 --to 5 -i STM32F10xxBxx -e -d --fn C:\CODE\blinky.hex

 

Connecting [OK]

 

Configuring [OK]

 

downloading page 0 @0x 8000000 size 1.0 [OK]

 

downloading page 1 @0x 8000400 size 1.0 [OK]

 

downloading page 2 @0x 8000800 size 1.0 [OK]

 

downloading page 3 @0x 8000C00 size 1.0 [OK]

 

downloading page 4 @0x 8001000 size 1.0 [OK]

 

downloading page 5 @0x 8001400 size 1.0 [OK]

 

My question is... what am I doing wrong? is there any way I can verify if my code has been sucessfully downloaded if I can't use the verify (--v) command?

Thank you!

dhandzic
Associate II
Posted on May 17, 2011 at 12:36

Hi,

I have downloaded and installed the latest 1.1.1 version. I try to connect to the target using an USB-RS232 converter from FTDI called TTl-232R-3V3. This is COM11 on the computer. Using hyperterminal I am able to send characters using this interface. Using the Flash Loader Demo COM11 shows up, but I am not able to establish a connection to the target. I have checked with an oscilloscope and there is nothing transmitted from the PC. I have tried the command line option too.

STMflashloader -c --pn 11 --br 57600 --db 8 --pr EVEN --sb 1 --to 5 -i STM32F10xxBxx -e -p --drp --drw

Connecting [OK]

Configuring [KO]

Anyone any ideas what could be wrong?

jj
Associate II
Posted on May 17, 2011 at 12:36

Andrea-

Stay with simplest program possible - suggest that you create two versions of blinky - yielding different blink rates & repetitions. In this way you can easily verify Erase & Reprogram attempts.

Often data-transfer problems occur when the transfer is at too high a speed. Can you half/quarter your transfer rate & observe/report?

I use the IAR tools - we have not used the Flash Loader yet.

andrea
Associate II
Posted on May 17, 2011 at 12:36

jj,

I've tried different data-transfer rates and it is the same, my problem is not connectivity (I think) but that I can't verify that my file has been successfully downloaded.

I was using blinky to isolate the problem from the code, however when I use my code (which is longer and more complicated) it seems to download it fine, but I can't verify the download from the bootloader, I have to put it to run in my application.

This works fine for just one time but I need more efficient method for production...

Does anyone have a suggestion?

dhandzic
Associate II
Posted on May 17, 2011 at 12:36

I reply to my own message.

Flash Loader Demo 1.1.1 seems not to be able to handle COM ports bigger than COM9. My USB to serial adapter was initially on COM11 and did not work with Flash Loader Demo 1.1.1. After changing the COM port to COM7 it is working.