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.

Difference in Setting a value to CAP-2 register in CCS and debug server scripting

Hi,

I am trying to write some value to Capture-2 Register (CAP-2) of eCAN using DSS. I am getting the following error message.

SEVERE: Errors during memory.writeData(): Address: 0x6a06 Error: 0x20000
SEVERE: Error writing memory: Errors during memory.writeData(): Address: 0x6a06 Error: 0x20000

When I tried to get the error code using getErrorID(), I am getting error code 4009, which corresponds to MEMORY_WRITE. I tried to write to same CAP-2 register using CCS (in watch window), I am able to write value to the same register without any issue. Could you please let me know why am I getting an error on DSS and not in CCS?

Just FYI, I am using CCS 4.2.4 and EZDSP 28335.

 

  • That register should be defined in the device/module xml files (available from the register view).  If you use memory. writeRegister() API, does that work? To figure out the register name, look it up in the register view. If it is in a  subgroup, you need to have groupname_register (ex: memory. writeRegister("eCAP1_CAP2", value); )

    Thanks

    ki