I've been trying to get my AM3359 to run using starterware and control the EHRPWM outputs. I get the following runtime error:
[CortxA8] in handle: 0x0.
Main stack base: 0x800121ac.
Main stack size: 0x2000.
R0 = 0x00000002 R8 = 0x000a0000
R1 = 0x44e00004 R9 = 0x00000000
R2 = 0x44e00000 R10 = 0x000298d0
R3 = 0x00000000 R11 = 0x000298d0
R4 = 0x4030cfd8 R12 = 0xffffffff
R5 = 0x0001dbc3 [CortxA8] SP(R13) = 0x800141a0
R6 = 0x48040000 LR(R14) = 0x80006454
R7 = 0x4030fca0 PC(R15) = 0x800059b0
PSR = 0x2000019f
ti.sysbios.family.arm.exc.Exception: line 176: E_dataAbort: pc = 0x800059b0, lr = 0x80006454.
xdc.ru[CortxA8] ntime.Error.raise: terminating execution
My research has shown that EHRPWM needs to be first brought out of local reset by enabling the module inthe Power Sleep Controller by using PSCModuleControl(). as per the ti wiki http://processors.wiki.ti.com/index.php/StarterWare_EHRPWM however I'm having trouble finding the location of this command to avoid linking error. Any help would be greatly appreciated. Thanks in advanced.
Thanks,
NJSysEng