Can't Get USB Mouse Example Code working on AT91SAMS7-EK
The burned in USB Mouse code works fine on my AT91SAMS7-EK Evaluation Board. However, I can't get the
AT91SAM7S64-BasicMouseUSB-IAR4_11A-1_1.zip example code to work. I want to use this as the basis of a new project.
I am using the 4.30 version of the IAR Kickstart IDE Compiler/Debugger/Etc. which I just downloaded from the IAR web site. (I previously tried the version on the CD that came with the Eval board).
Two issues are occurring:
1) The #define AT91C_AIC_SRCTYPE_INT_LEVEL_SENSITIVE does not exist. So the compile has errors. No big deal, I just hardcoded it to 0 to continue on.
2) After downloading and single stepping, it gets into:
Code:
AT91F_LowLevelInit()
when executing the line:
Code:
pPMC->PMC_MCKR = AT91C_PMC_PRES_CLK_2 ;
I get the error message:
Code:
Memory access timed out @ 0x00003FFC -> JTAG speed too high?
This is fairly early on in the code, before the DBGU port gets initialized and before the #define that I fixed up gets used.
TIA for any help, I'm on a tight schedule, Phil