cancel
Showing results for 
Search instead for 
Did you mean: 

Flash Tool

p_
Associate II
Posted on November 04, 2008 at 06:06

Flash Tool

9 REPLIES 9
p_
Associate II
Posted on October 30, 2008 at 05:55

Hello,

I want to programm my STR752 with a *.hex file by IAP programming (UART).

So i just wanted to ask if there is a (free) flash tool for the PC (like Flash Magic or something) for the STR75 Family.

Or do i have to write such a software myself? Because i never written PC Software before and so i have no idea.

Thanks

ibtissem
Associate II
Posted on October 30, 2008 at 06:29

Hello,

I beleive the following links can be helpful.

http://www.st.com/mcu/contentid-102.html

http://www.st.com/mcu/inchtml-pages-str7_tools.html

Best Regards,

Ibtissem.

[ This message was edited by: ibtissem.malouche on 30-10-2008 11:01 ]

p_
Associate II
Posted on October 30, 2008 at 10:22

OK thany you.

Thats what i am looking for. But i dont need such a professional and expensive solution.

Isnt there a simple, easy and cheap way to programm the controllers flash with its boot pins and UART?

Or how difficult is it to wirte such a PC software for a newbie.

Thanks.

sjo
Associate II
Posted on October 30, 2008 at 15:18

Try the following it is the stm32 loader gui but is may support the str75x. Not tested myself but i know the STBLLIB.dll used does support the str75x and the src is also included.

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

If not have a look in the Raisonance ride package - they used to support the str73x serial bootloader and may have added support for the str75x.

Cheers

sjo

p_
Associate II
Posted on October 31, 2008 at 04:41

OK, thank you all. This helps.

Just one more Question.

In the User Manual: ''UM0116 - STR7 Family Flash Programming'' is written on the first page:

''... IAP can use any communication interface supported by the MCU (I/Os, USB, CAN, UART) to download the data to be programmed in the memeory. IAP allows you to re-program the Flash memory while the application is executing. Nevertheless, part of the application has to have been previously programmed in one of the Flash banks using ICP.''

Does that mean i cant programm a brand new controller by IAP (UART)? And i have to programm him at least one time by ICP (JTAG) before IAP works?

Thanks.

sjo
Associate II
Posted on October 31, 2008 at 13:52

The str73x/75x have a factory uart bootloader so yes you can program a blank device.

details of the str75x bootloader are here:

http://www.st.com/stonline/products/literature/an/12678.pdf

Cheers

Spen

[ This message was edited by: sjo on 31-10-2008 18:23 ]

p_
Associate II
Posted on November 03, 2008 at 02:44

Thanks, that Application note is exactly what i was looking for.

p_
Associate II
Posted on November 04, 2008 at 03:46

Hello again,

i got some problems with the Write Memory Command in AN2430.

One line of a intel hex file for example:

:10150400FDFFFFEA80B5FFF7F3FF019802B0004743

Number of Data: 0x10

Adress: 0x15 0x04

Type: 0x00

Data: 0xFD, 0xFF ..... 0x47

Chechsum: 0x43

First of all the Memory Write Command wants a start address with 4 bytes before it continues. But intel hex has only 2 bytes. What does that mean?

And 2nd:

The Application note says:

''When adresss is valid, the bootloader:

- Gets a byte which describes the amount of data to be written (N bytes)

- Receives the user data ((N + 1)bytes)

....''

What is N + 1 byte?

In this case N is 0x10 which is 16 dec. So the command wants 17 Data bytes.

But we have only 16 data bytes. So what is the + 1 byte? I dont think it is the cecksum, because it doesnt matter what i write as the 17th byte. I allways get an ACK back.

Can someone help me out.

Thanks.

[ This message was edited by: p.diemer on 04-11-2008 08:17 ]

sjo
Associate II
Posted on November 04, 2008 at 06:06

The intel hex format supports s variety of record type's.

a normal data record only has the lower part of the address as you have noticed, you hex file will also include record type 2/4 where the upper part of the address is obtained.

scan the web for more info on intel hex file format.

I would guess that the +1 is just the way the internal bootloader works, any dummy data for the last byte would be ok.

Cheers

sjo