Categories

{{ selectedCategory.name }}

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

{{ topic.Content }}

No topics found!

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

18-Apr-2024

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.

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!