This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3359 EHRPWM runtime Error.

Other Parts Discussed in Thread: AM3359, SYSBIOS

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

  • Hi NJSysEng,

    The above mentioned function "PSCModuleControl()" can not be used in the AM335x, since this controller module is different in AM335x.

    Please refer the starterware example "ehrpwm_haptics" to get better idea on EHRPWM module initialization. This example can be found in starterware at the following path “examples\evmAM335x\ehrpwm_haptics”.

    Thanks and Regards,

    M.Jyothi Kiran

  • M.Jyothi Kiran

    I was using the ehrpwm_haptics source code and the above runtime error was what I had recieved.  I really appreciate any additional help you could provide.

    Thanks,

    Bob B