To be able to write to SFR
register you need to use modify() call.
Possible solutions
Drag and drop an item to the Watch Window
This way you will get the correct syntax and to find out the name for the SFR.
Use this syntax in Python
- Backslash ''\'' in Python is also used as an instruction (\n \r etc.), use ''\\''.
- Symbol has to be string. Use ‘to capture “. For
example ‘Today “is great” day’.
Use modify() function to write to SFR register
writeRegister() is used for writing to Core Register.
- symbol = '@"Floating-point
registers"\\"Doubleword registers"\\D0'
- debugCtrl.modify(ic.IConnectDebug.fSFR, symbol,
reg_value)
modify()call works same as Watch Window. If you can access in the Watch Window you can use the modify()call.