EmbDev.net

Forum: ARM programming with GCC/GNU tools flash routine in STR71x ,must be executed from RAM ?


von Robin (Guest)


Rate this post
useful
not useful
hello friends

in STR710 ,flash routine can be executed only in RAM ?right now i am
running my application from Flash and trying to write  into flash (data
flash that is differnt bank ) but those function hangs when i call those
function in infinite loop .i tried it first writting in RAM and then in
flash but still those hangs my main application .i hv properly init
flash and bank

plz any body give me suggestion

thanks in advance

Robin

von Martin T. (mthomas) (Moderator)


Rate this post
useful
not useful
Robin wrote:
> hello friends
>
> in STR710 ,flash routine can be executed only in RAM ?right now i am
> running my application from Flash and trying to write  into flash (data
> flash that is differnt bank ) but those function hangs when i call those
> function in infinite loop .i tried it first writting in RAM and then in
> flash but still those hangs my main application .i hv properly init
> flash and bank

AFAIK ther STR710 has two flash banks and one of them can be accessed
while data is written into the other one. But to avoid problems I
suggest to execute the Flash-Functions from RAM. Make sure that
functions from the libc used in the flash-routines are also in RAM (see
map-file). Create a minimal example-application to reproduce the
problem, place it on a http/ftp-server and post the URL here.

von Guest (Guest)


Rate this post
useful
not useful
Martin Thomas wrote:

>
> AFAIK ther STR710 has two flash banks and one of them can be accessed
> while data is written into the other one. But to avoid problems I
> suggest to execute the Flash-Functions from RAM. Make sure that
> functions from the libc used in the flash-routines are also in RAM (see
> map-file). Create a minimal example-application to reproduce the
> problem, place it on a http/ftp-server and post the URL here.

Thank for the ans Mr.martin ,can u plz suggest me how i can execute
flash function From RAM (plz tell me the process to place them in RAM
)Do i need to change in linker script ? for that .now my all the
application is in flash(progam flash bank 0) with bootloader and i am
trying to write in data flash (which is bank 1 (16 k )for data flash
.but my task hangs out when i call the flash write function otherwise it
works fine .plz suggest me the process to execute from RAM (some
function)

Robin

von Bob S. (seabrookb)


Rate this post
useful
not useful
plz see topic
http://en.mikrocontroller.net/topic/123713#new

A simple example has been added which works well.
I hope it helps.

Bob

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.