OpenOCD flashing to RAM ?

Guest #1174208
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
Moderator
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.
Guest
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

Reply

A question of your own? This thread is over 18 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.