I had the same problem when I tried using the sample code you mentioned.
Why not trying easier code?
When you look in the S5_Blinker Code you see the following:
#define LED_AF 0xC02200E0
#define LED_GR 0xC02200DC
#define LED_OR 0xc02200D8
#define LED_WR 0xc02200D4
void led_on()
{
volatile long *p;
p=(void*)LED_GR;
*p=0x46;
p=(void*)LED_WR;
*p=0x46;
}
I frequently switch two LED on and off, just to see if the normal routine is working.
What about extending the led_on function with more LED addresses?
#define LED_01 0xc0220060
#define LED_02 0xc0220064
#define LED_03 0xc0220068
#define LED_04 0xc022006C
#define LED_05 0xc0220070
#define LED_06 0xc0220074
...
void led_on()
{
volatile long *p;
p=(void*)LED_01;
*p=0x46;
p=(void*)LED_02;
*p=0x46;
p=(void*)LED_03;
*p=0x46;
p=(void*)LED_04;
*p=0x46;
p=(void*)LED_05;
*p=0x46;
p=(void*)LED_06;
*p=0x46;
...
}
What do you think? Should we give it a try?
Best regards,
tommi
P.S.: Sorry, I didn't find your Wiki-Entry before! Now I've found it.