Thanks for your answers. I tried to include coldfire.h and m5282sim.h but I have the same error.
With the ssvhwa module it works so I'm going to use this. Regards Valentin 2008/8/15 Greg Ungerer <[EMAIL PROTECTED]> > Hi Valentin, > > > Valentin Favreau wrote: > >> I'm new on uClinux/coldifre and I have a problem with the GPIO. >> >> I found, on the Internet, that I just need to set up a pointer to the I/O >> address to access to the I/O but when I run my application on uClinux the >> error message "Memory Fault" appears and my application quit. >> >> Here is my simple test code: >> >> #define GPTADR (*(volatile unsigned char *)0x401a001d) >> #define GPTADDR (*(volatile unsigned char *)0x401a001e) >> >> int main(void){ >> GPTADDR = 0xFF; >> >> return 0; >> } >> >> I'm working on the DNP/5280 board, Coldfire 5282. >> I use this command to compile my code: >> m68k-uclinux-gcc –Wall –m5307 –Wl,-elf2flt –Os –o hello hello.c –lc >> >> Does anyone has an idea to solve my problem? >> > > On some platforms, this can be due to the protection register > settings of some ColdFire CPU's. They will generate a trap on > user mode access to system registers. (You can change this > behavior so that they are allowed ofcourse - but the kernel > will have to do it). > > Regards > Greg > > > ------------------------------------------------------------------------ > Greg Ungerer -- Chief Software Dude EMAIL: [EMAIL PROTECTED] > Secure Computing Corporation PHONE: +61 7 3435 2888 > 825 Stanley St, FAX: +61 7 3891 3630 > Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com > > _______________________________________________ > uClinux-dev mailing list > uClinux-dev@uclinux.org > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev > This message was resent by uclinux-dev@uclinux.org > To unsubscribe see: > http://mailman.uclinux.org/mailman/options/uclinux-dev >
_______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev