EmbDev.net

Forum: ARM programming with GCC/GNU tools OpenOCD flashing to RAM ?


Author: Mike Kriegel (Guest)
Posted on:

Rate this post
0 useful
not useful
Hello,

I'm using the Yagarto toolchain with OpenOCD for debugging and flashing
my Olimex SAM7-P256 devel board. This far everything works just fine.
What I would like to do is to "flash" my binary into the RAM of the
AT91SAM7S256 and not into FLASH. Is that possible using OpenOCD or do I
have to use SAM-BA for that ?

Thanks and best regards,
Mike

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

Rate this post
0 useful
not useful
Mike Kriegel wrote:
> Hello,
>
> I'm using the Yagarto toolchain with OpenOCD for debugging and flashing
> my Olimex SAM7-P256 devel board. This far everything works just fine.
> What I would like to do is to "flash" my binary into the RAM of the
> AT91SAM7S256 and not into FLASH. Is that possible using OpenOCD or do I
> have to use SAM-BA for that ?

OpenOCD can be used to place a load image into RAM, see for example
http://svn.berlios.de/wsvn/openocd/trunk/testing/e...
Take care to configure the remapping correctly when using interrupts.
See the Atmel software-package AT91SAM7S-EK for examples how this can be
done.

Author: Mike Kriegel (Guest)
Posted on:

Rate this post
0 useful
not useful
Martin Thomas wrote:
> Mike Kriegel wrote:
>> Hello,
>>
>> I'm using the Yagarto toolchain with OpenOCD for debugging and flashing
>> my Olimex SAM7-P256 devel board. This far everything works just fine.
>> What I would like to do is to "flash" my binary into the RAM of the
>> AT91SAM7S256 and not into FLASH. Is that possible using OpenOCD or do I
>> have to use SAM-BA for that ?
>
> OpenOCD can be used to place a load image into RAM, see for example
> 
http://svn.berlios.de/wsvn/openocd/trunk/testing/e...
> Take care to configure the remapping correctly when using interrupts.
> See the Atmel software-package AT91SAM7S-EK for examples how this can be
> done.

Thanks for your quick reply, Martin! I'll try it when I get back from
work. I've already read a couple of things about that remapping, but
haven't understood it completely yet. I just started using ARM a couple
of days ago and I've just managed to blink some LED's and to read some
buttons so far. No interrupts yet, but I'll get there....

thanks by now ...

Mike

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.