Hello all.
I charenged to control GPB5~GPB8 (LED conected) by this program.
################################################
//ledtest.c
#define GPBCON (*(volatile unsigned long *)0x56000010)
#define GPBDAT (*(volatile unsigned long *)0x56000014)
int main()
{
GPBCON = 0x00005400;
GPBDAT = 0x00000000;
return 0;
}
################################################
But on mini2440, this program is not excecuted,and made Segmentation fault.
I have no idea how to control GPBx.
control LED(GPB5~8) mini2440
Search for keywords like "memory management unit", or "virtual / physical addresses", or "memory mapping" and also read the manpage of the mmap() system call to make your program work.

