EmbDev.net

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


Author: Robin (Guest)
Posted on:

Rate this post
0 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

Author: Martin Thomas (mthomas) (Moderator)
Posted on:

Rate this post
0 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.

Author: Guest (Guest)
Posted on:

Rate this post
0 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

Author: Bob Seabrook (seabrookb)
Posted on:

Rate this post
0 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

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.