EmbDev.net

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


von John S. (john77)


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

von Martin Thomas (Guest)


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

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.