|
Thank you for your advices. I tried with the SAM-BA manually, well I select the connect type usb/ARM0, and I choose the board type 'AT91CAP9-DK MEM33', and no error popped out, but no main window popped out either. Then I tried the demo project with the IAR Embedded Workbench and with a SAM-ICE connected to the JTAG port of the board. I built the project, no error popped out of course. So I went with the 'download and debug', then there showed two errors both as "Error:Operation Error", then I clicked on the error which opens the file 'at91cap9-dk-sram.mac', and the following codes, the mouse cursor stopped at the first "__sleep(10000)" line; _____________________________________________________________ __writeMemory32(0xFFFFFFFF,0xFFFFFC64,"Memory"); //* AT91C_PMC_PCDR ((AT91_REG *) 0xFFFFFC14) //(PMC) Peripheral Clock Disable Register __writeMemory32(0xFFFFFFFF,0xFFFFFC14,"Memory"); // Disable all clock only Processor clock is enabled. __writeMemory32(0xFFFFFFFE,0xFFFFFC04,"Memory");
// AT91C_PMC_MCKR ((AT91_REG *) 0xFFFFFC30) // (PMC) Master Clock Register __writeMemory32(0x00000001,0xFFFFFC30,"Memory"); __sleep(10000);
// write reset value to PLLA and PLLB // AT91C_PMC_PLLAR ((AT91_REG *) 0xFFFFFC28) // (PMC) PLL A Register __writeMemory32(0x00003F00,0xFFFFFC28,"Memory");
// AT91C_PMC_PLLBR ((AT91_REG *) 0xFFFFFC2C) // (PMC) PLL B Register __writeMemory32(0x00003F00,0xFFFFFC2C,"Memory"); __sleep(10000); _____________________________________________________________
|