Hello,
i am using the ICE Board with AM3359 and did not found any driver for the eQEP Module.
To use the eQEP2 i must configure the registers. My application does the following:
1. mmuEntries: {(void*)0x48300000,0}, //PWM - Non bufferable| Non Cacheable
2. PinMuxing: mode 4 for eQep 2.
{ 0x0830 , 4 , AM335X_PIN_OUTPUT }, // gpmc_ad12
{ 0x0834 , 4 , AM335X_PIN_OUTPUT }, // gpmc_ad13
{ 0x0838 , 4 , AM335X_PIN_OUTPUT }, // gpmc_ad14
{ 0x083C , 4 , AM335X_PIN_OUTPUT }, // gpmc_ad15
3. write to eQEP2 Registers (baseadress: 0x4830_4180)
Writing to register (28h)QDECCTL, (2Ah)QEPCTL, (2Ch)QCAPCTL to configure the EQEP.
I think that i have to write to this registers will be enough, correct me if i am wrong.
When the value is written to the register i got an error (see below) and when i want to check the Register from CCS, then i see only "Error: unable to read" instead the value of the eQEP registers
Thank you.
Exception occurred in ThreadType_Main.
Main handle: 0x0.
Main stack base: 0x8000d20c.
Main stack size: 0x4000.
R0 = 0x483041a8 R8 = 0xffffffff
R1 = 0xffffffff R9 = 0xffffffff
R2 = 0x00000000 R10 = 0xffffffff
R3 = 0x80011103 R11 = 0xffffffff
R4 = 0xffffffff R12 = 0x00000000
R5 = 0xffffffff SP(R13) = 0x80011188
R6 = 0xffffffff LR(R14) = 0x800008f0
R7 = 0xffffffff PC(R15) = 0x800008f8
PSR = 0x2000019f
ti.sysbios.family.arm.exc.Exception: line 176: E_dataAbort: pc = 0x800008f8, lr = 0x800008f0.
xdc.runtime.Error.raise: terminating execution