When trying to write a value into a specific Special Function Register (SFR
register) using the writeRegister() SDK function an error occurs,
stating that the specified register doesn't exist.
Method CDataController::writeRegister() can write to Core Registers only. For SFRs method CDataController::modify() should be used.
dataCtrl.modify(ic.IConnectDebug.fMonitor, '@TIM1\\CCR1', '12')
To get full name of the SFR, which is required by the method:
1. Drag and drop the SFR from the SFR Window into the Watch Window
to get the exact strings needed for the script.
2. Copy the string from the Watch Window into your script:
Sorry this article didn't answer your question, we'd love to hear how we can improve it.
Note: This form won't submit a case. We'll just use it to make this article better.