Categories

{{ selectedCategory.name }}

{{ topic.Title }} {{ topic.Ddate | formatDate }}

{{ topic.Content }}

No topics found!

Python modify() call not working with raw address (cache RAM)

23-Sep-2020

To be able to write to SFR register you need to use modify()call.

Possible solution: 

1. Drag and drop D0 to the Watch Window to get the correct syntax and to find out the name for the SFR.


2. Use this syntax in Python.

NOTE: 

  • 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’.

 3. Use modify() function to write to SFR register.  writeRegister() is used for writing in 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.

Was this answer helpful?

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.

Similar topics

{{ topic.Title }} {{ topic.Ddate | formatDate }}

{{ topic.Content }}

No similar topics found!

Other topics in the same category

{{ topic.Title }} {{ topic.Ddate | formatDate }}

{{ topic.Content }}

No topics found!