EmbDev.net

Forum: ARM programming with GCC/GNU tools ARM Board with the AT91SAM7S128 and basic usb


Author: John S. (john77)
Posted on:

Rate this post
0 useful
not useful
Hi Folks,
I 've been using the eblock ARM Board with the AT91SAM7S128 and WINARM.
Now I want to test the Basic-USB-Project example from Martin Thomas.
What I have to change normally ? I think about the board.h? But that
can't be the only one.
For downloading I use a Program named mLoader. Always this error occurs:
'Binary file not found'. What can be the problem? Is there anyone who
can help me? I'm a newbie...
Thanks and cheers
John

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 useful
not useful
John S. wrote:
> I 've been using the eblock ARM Board with the AT91SAM7S128 and WINARM.
> Now I want to test the Basic-USB-Project example from Martin Thomas.

I did not write this example. It's written by "Atmel Rousset". I have
just ported it for the GNU-Toolchain.

> What I have to change normally ? I think about the board.h? But that
> can't be the only one.

The SAM7S are very similar. To adapt the example you may only need to
adjust the LENGTH of DATA and the ORIGIN of STACK in the linker-scripts.

> For downloading I use a Program named mLoader. Always this error occurs:
> 'Binary file not found'. What can be the problem? Is there anyone who
> can help me? I'm a newbie...

I don't know this tool. But it may need the data to be transfered to the
controller's flash in binary format. In the example there is still an
old style makefile which does not support the format-option correcty.
Workaround: set format in makefile to binary do make clean, make all and
rename the main.hex to main.bin

Martin Thomas

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.