[En-Nut-Discussion] Start on AT91SAM7X256
def at fea.kiev.ua
def at fea.kiev.ua
Thu Jan 11 16:59:33 CET 2007
В письме от Чтв, 11 Янв 2007, 17:33 Harald Kipp пишет:
> def at fea.kiev.ua schrieb:
>> Hi All!
>>
>>
>> I try run on my own board (AT91SAM7X256) ethernut 4.2.1.
>>
>>> From all peripherals there is only a quartz (18.432) and PLL filter.
>>>
>> It is compiled on http://ethernut.de/en/documents/at91sam7x256.html
>> After programming the processor does not carry out the program 8(
>> In what my mistake?
>>
>>
>
> No idea actually. The program is really simple and should work. Without
> debugger and the capability to find out where the CPU is currently running,
> there is not much you can do.
>
> With the Turtelizer (free and open design based on the ATmega8)
> http://jtagomat.sourceforge.net/use.html
> the HALT command will help. The SAMICE provides similar commands.
>
> Harald
>
>
> _______________________________________________
> http://lists.egnite.de/mailman/listinfo/en-nut-discussion
>
>
Thanks Harald!
For programming I use jLink-JTAG
On my board well work program compiled under CrossWorksARM(last version):
#include "lib/AT91SAM7X256.h"
#include "lib/lib_AT91SAM7X256.h"
void delay_ms(int c) {
int i;
for (i=0;i< c;i++);
}
int main() {
AT91F_PIOA_CfgPMC();
AT91F_PIO_CfgOutput(AT91C_BASE_PIOA, AT91C_PIO_PA0);
AT91F_PIO_Enable(AT91C_BASE_PIOA, AT91C_PIO_PA0);
AT91F_PIO_CfgPullup(AT91C_BASE_PIOA, AT91C_PIO_PA0);
AT91F_PIO_SetOutput(AT91C_BASE_PIOA, AT91C_PIO_PA0);
AT91F_PIO_ClearOutput(AT91C_BASE_PIOA, AT91C_PIO_PA0);
for (;;) {
AT91F_PIO_SetOutput(AT91C_BASE_PIOA, AT91C_PIO_PA0);
delay_ms(1000000);
AT91F_PIO_ClearOutput(AT91C_BASE_PIOA, AT91C_PIO_PA0);
delay_ms(1000000);
}
}
....
PLL filter and quartz same that in Atmel-EK.
May be for get running ethernut on at91sam7x256 I must do something else?
More information about the En-Nut-Discussion
mailing list