cancel
Showing results for 
Search instead for 
Did you mean: 

How to store data in a STR75x ?

jeremy2399
Associate II
Posted on July 21, 2008 at 18:34

How to store data in a STR75x ?

4 REPLIES 4
jeremy2399
Associate II
Posted on July 16, 2008 at 07:37

Hi everybody,

I want to store data in a STR752 to use it after a reset. So the solution seems to be the bank 1 of the flash but I don't know how to write and read it and I cannot find information about it.

Can somebody help me please ?

Thank you.

jpeacock2
Associate II
Posted on July 16, 2008 at 14:18

The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6XQ&d=%2Fa%2F0X0000000bqC%2FkImpCBE3oYCx4tQajHEblYNne68ZJxi2ALRa_43_2EU&asPdf=false
jeremy2399
Associate II
Posted on July 17, 2008 at 11:07

Hi JakBird,

First thank you for your help.

I have 2 issues.

I try to make a routine which will be copied to RAM on startup as you said but it doesn't work. I use Ride from Raisonance with ST STR7 librairies and I have a report from the ''LD Linker'' which tells me that section .rwcode [20001e4c -> 20001ee7] overlaps section .data [20001e4c -> 20001e5f] and section .bss [20001e60 -> 20001eab] overlaps section .rwcode [20001e4c -> 20001ee7] .

Do you know why the sections are overlapped ?

The second problem is that I didn't find the flash library for STR75x in ST STR7 librairies. Do you know where I can find this library please ?

Thank you.

bkosaraju
Associate
Posted on July 21, 2008 at 18:34

1> You can get the IAP code from ''http://www.st.com/mcu/familiesdocs-86.html'' - STR7 Family Flash Programming Reference Manual section)

2>And to execute from the RAM you can also use __ramfunc compiler directive, just keep __ramfunc before the function definition and the code will get downloaded onto the RAM's CODE_ID section along with other sections during the program loading phase.