SAM7-P64 Development Board

Hi folks, I´ve just received my brand new development board for the AT91SAM64 from Olimex. Of course I was eager to test the sample applications that are available from the Olimex site, but unfortunately none of them would run, although I installed the bootloader and SAM-BA detects the device and is able to connect to it. It´s even possible to upload and (successfully) compare the files.

Do I have to change the source code for use with the Olimex board or should all of this work out of the box? Btw since SAM-BA requires binary files I´ve set the linker output of the IAR workbench to raw-binary, I hope that´s the apropriate setting. So has anyone gotten the examples to work on this board? Any help is apreciated :slight_smile: !

config your IAR to generate extended HEX format file

then use the old DOS HEX2BIN.com to make your hex file to binary and load with SAM-BA

Tsvetan

I have the same board. How do you get samba to work?

Ive

1.) installed samba 1.7,

2.) plugged in SAM7-64 board to USB, the red light comes on

3.) run SAMBA select AT91SAM7S64-EK click USB connection

4.) get error ‘-E- DEVICE NOT FOUND on USB !’

5.) what do I do next?

I got sam-ba working via serial. (it wont work with usb with the included 12mhz crystal)

Now I’m having trouble uploading a program. I compiled the blink light program using IAR eval. Is there another way besides using the old dos hex2bin? I am unable to find hex2bin.com for download.

Ive looked everywhere and determined that its thoroughly impossible to download hex2bin.com!

to run SAM-BA via USB crystal should be 18.432 Mhz, we found this after some boards were produced and sold, now we changed all stock we have to 18.432 Mhz.

go google “hex2bin” and you will get several places where to download from

tsvetan

Will it be ok to change the crystal to that myself if I want to?

The power connector says 6 volts, what is the maximum limit? Will 12 volts work or break everything?

Can you post the binary file of the light blink program so I can see if uploading and running a program works?

On our web is uploaded Binary LED blink example ready for upload with SAM-BA.

Don’t plug 12VDC adapter to connector where is written 6VDC :slight_smile:

It will not guaranteed explode but this will heat excessively the power supply voltage regulator on the board.

Also some 12VDC adapters have up to 15-18VDC unloaded which will blow the vreg on board for sure.

Tsvetan

The blink light program was loaded. To use SAM-BA again, do I have to re-short the tst jumper each time? Also, the reset button, what exactly does it do? It does not seem to interrupt the blink program when I press it.

what do you do with the RESET button? press and hold or just press?

if you just press and release the program will run after the button is released

Tsvetan

I mean, if I press and hold down reset, the program continues as normal. When button is released, program remains unaffected.

Sorry to mislead you :wink:

if you read the SAM7S64 datasheets you will see that RESET is functioning only if you software enable it, the uploaded code does not enable the RESET, this is why your code run is not affceted when you press & hold the RESET button

Tsvetan

Can this be confirmed-

In order for SAM-BA to recognize the SAM7-64P, the test jumper has to be shorted each time. If it is not shorted the message ‘Memory File not found’

Is everything working as normal?

Test pin is the only way for you to activate the SAMBA, it’s written in the datasheets

Tsvetan

Maybe in a later revision the board could short itself to load sam-ba when an attempt is made to program the chip?

OLIMEX:
to run SAM-BA via USB crystal should be 18.432 Mhz, we found this after some boards were produced and sold, now we changed all stock we have to 18.432 Mhz.

go google “hex2bin” and you will get several places where to download from

tsvetan

So, if I order a board from Spark Fun, will it have the 18.432 MHz crystal, or do they still have to sell off old stock before they get to those? Or does Olimex having only the new frequency now automatically mean that Spark Fun does too? I’m not sure what the exact relationship between Olimex and Spark Fun is.

The Spark Fun catalog page still says 12 MHz. The Olimex page for this product also still says 12 MHz.

I just hit the same wall with the 12MHz crystal… so I will order a 18.432 from DigiKey or Mouser today. Up to this point I have been using the Atmel evaluation board with SamBa and GCC as the compiler… and it has worked very well. I don’t see why folks want to use the IAR stuff when the WinARM stuff is available?

Anyway, just for those who are interested, using GCC (WinARM) and programming via the USB using SamBa is a good option if you don’t want to pay for a JTAG interface and proprietary compiler.

Maybe later I can provide some test programs and such for the Olimex board using GCC… and a tutorial.? That only after getting “work” done.

-Paul

Hi,

GCC and SAM-BA is great combination, but can’t be used for any serious work.

You can’t wirte complex codes without bugs (at least I can’t :slight_smile: so you need debugger.

The major trade-off I see with GCC is that nobody made support for flash programing and debugging so far (or I do mistaken)?

This is why commercial debuggers are so popular

Tsvetan

ccruz:
Maybe later I can provide some test programs and such for the Olimex board using GCC… and a tutorial.? That only after getting “work” done.

-Paul

I know I’d be interested in seeing such things. I have a SAM7-H64 sitting on my desk waiting for me to get around to it.

:cry:

Hey there everyone… I’ve got the following problem. I programmed my new Olimex SAM7-P via USB and SAM-BA. Then I accidentally enabled the flash security bit. “O.K. that’s no problem”, I thought and connected the board via RS232. I disconnected the USB. But when starting SAM-BA clicking “DBGU” only thing that happens is a pop up menu saying “Memory File not found”. Setting the Test jumper has no effect… Now what can I do?

cu