Keil Logo

Testing HW registers on simulator

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Taylor Hillegeist
Posted
19-Jun-2018 19:24 GMT
Toolset
ARM
New! Testing HW registers on simulator

Sometimes when unit testing the HW registers can make it difficult to tell rather a function is behaving properly.

I am attempting to test some library functions and would like to be able to disable the HW register behavior on the simulator making the memory locations behave as mutable memory.

I was curious if this is possible or even practical.

I have attempted to MAP them as read/write memory for example on the chip i am using:
MAP 0x40021000, 0x40023000 READ WRITE //RCC mutable?
to try and force the registers to be normal memory. This didn't work.

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.