Hello everyone,
I need some help with reading/writing some of the registers on the 69 using DSS.
I have the following methods written in Java:
public void SetDSSRegisterValue(String regName, long value) { try { debugSession.memory.writeRegister(regName, value); System.out.println("register " + regName + " written to: " + value); } catch(Exception e) { System.out.println(e); } }
public long GetDSSRegisterValue(String regName) { System.out.println("========> DSS GetDSSRegisterValue...."); long val = 0; try { val = debugSession.memory.readRegister(regName); System.out.println(regName + " = " + val); } catch(Exception e) { System.out.println("ex: " + e); val = -1; } return val; }
When I call SetDSSRegisterValue("GPIO_GPACTRL", 111) I read back 111 using GetDSSRegisterValue("GPIO_GPACTRL") .
When I call SetDSSRegisterValue("ePWM1_TBPRD", 111) i read back 0 using GetDSSRegisterValue("ePWM1_TBPRD").
No PWM registers seem to be updating. GPIO registers are working. Is there anything I'm missing?
I'm not having issues with reading and writing variables.
I'm using Example_2806xCpuTimer example from the Control Suite.
Thanks,