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.