Hi,
I have adapted y used the source code of "sw_am17x" (See the Post in http://e2e.ti.com/support/embedded/starterware/f/790/p/151682/569258.aspx#569258) to control the HCUSB 1.1 Interrupts. I can compile my aplication with no errors, but when I run it, a "Segmentation Fault" message is printed in the console. I have debugged it using gdb, and this fault occurs in the next call to HWREG macro:
HWREG(SOC_AINTC_0_REGS + AINTC_ECR(cnt)) = AINTC_ECR_DISABLE;
The application runs over a Linux 3.3 embedded in a OMAP L 137, which ARM core is identical to the AM1707 and the register addesses are the same.
My questions are, can not I use that macro from user space? Must I use a module for accessing to registers?
How could I solve this problem? Any idea?