Olimex sam7-p64 board example

Hi All

Olimex has some software examples for his board http://olimex.com/dev/sam7-p64.html

The first one is “Blinking LED project”, there are IAR project and binary file for SAM-BA dowloading.

When I programm my sam7 with this binary file, everything is fine, LEDs blink.

But when I compile IAR project into binary myself and downoad it into arm, it doesn’t work, no LED blinks at all.

Have anyone experienced such problem?

andrew

The problem’s solved!

It turns out that Olimex have incorrect source code example for his sam7-p64 board. Pay attention when using it.

this is very informative post, thank you very much

Tsvetan

feomathar

I have the same problem, but using SAM7-P256.

binary works, but compiled - not

Where is this error in source code exactly ?

I don’t know exactly what is wrong.

Someone says that problem is about startup file.

I used IAR blinking led example, it works. So, I gave up finding out whay is wrong with Olimex example.

When I compile the blinking lights example it seems to stop execution when it tries to program the main clock.

pPMC->PMC_MOR = (( AT91C_CKGR_OSCOUNT & (0x06 << 8) | AT91C_CKGR_MOSCEN ));

This is in a sample that has comments in the header indicating it was last updated in Sept. 2004.

I’m using insight as my debugger for the moment. I notice this is consistent with comments that the compiled sample code doesn’t run for others. Did this ever get resolved? I can’t seem to find updated examples for my AT91SAM7S256.

Likewise if I don’t call LowLevelInit() and then explicitly call the blink function rather than going through the timer interrupts, it hangs when it gets to the line where it tries to write to the PIO to turn on LED1.

the line is effectively this:

AT91C_BASE_PIOA->PIO_CODR = LED1;

I am using the AT91SAM7S256.h dated Nov. 2005.

Any help appreciated.

Tim