You can set the memory for testing the embedded environment by setting the virtual memory address.

1. Top menu [Window] – [Preferences] – [Unit Test] – [Virtual Address] – [Add…] Selection

2. After entering the name and range of the virtual address, click the [Add(A)] button

3. Right-click the project [Properties] – [Unit Test] – [Virtual Address] and select the registered virtual address range in the [Configuration Name] combo box

4. Using a macro to set a value to a virtual address in [Before call code] of the test structure editor

Macro form input value
CS_ADDR_ASSIGN(_t,_a,_v)
CS_ADDR_SET(_t,_a,_v)
Assign a value (_v) of type (_t) to address (_a)
CS_ADDR_GET(_t,_a) Get value of type (_t) from address (_a)

5. Edit test case values

Need more help with this?
Don’t hesitate to contact us here.

Thanks for your feedback.