EmbDev.net

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


von Mike Kriegel (Guest)


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

von Martin T. (mthomas) (Moderator)


Rate this post
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/examples/SAM7S256Test/#_trunk_testing_examples_SAM7S256Test_
Take care to configure the remapping correctly when using interrupts.
See the Atmel software-package AT91SAM7S-EK for examples how this can be
done.

von Mike Kriegel (Guest)


Rate this post
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/examples/SAM7S256Test/#_trunk_testing_examples_SAM7S256Test_
> 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

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.