Other Parts Discussed in Thread: UCD3138
hi,
I've got problem as in topic, device goes to abort_prefetch_exception interrupt as soon as MiscAnalogRegs.IOMUX.all = 0; is executed. I did try to compile in 16 and 32 bit mode.
I want to set GPIO for test and on each of those commands id hands in abort_prefetch_exception
MiscAnalogRegs.IOMUX.all = 0;
MiscAnalogRegs.GLBIOEN.bit.DPWM3A_IO_EN = 1; // Set DPWM3A as GPIO
MiscAnalogRegs.GLBIOOE.bit.DPWM3A_IO_OE = 1; // 1 = output, 0 = input
MiscAnalogRegs.GLBIOVAL.bit.DPWM3A_IO_VALUE = 1; // Set output to high
I did compile simple program and it works:
main{
volatile int i =0;
while(1)
i = i+1;
}
I use TI v5.2.9 compiler and I did change Variant from Generic ARM7 device to UCD3138A
I've got same error on Lab1 example, untouched example file only the Linker command File changed from cyclone_headers.cmd to cyclone.cmd