- After setting it as a target, right-click the test case in the ‘Unit Test’ view and click ‘Check Debug Information’
- Build the user project directly or execute the build script registered in the ‘target environment’ setting in the controller tester project
- Verify that the build was successful
- Restore the original source by opening the project in Controller Tester
- After running Trace32, open the cmm script file (start.cmm) and execute ‘debug’ (Controller_Tester_project_path/.csdata/target/start.cmm)
- Click the ‘step’ button to go to the first line of the target.cmm script
- Add breakpoint to ‘Go.Hll’ in target.cmm file
- Click ‘Var’ > ‘Show Function’
- Double-click after searching for the function to be tested
- Add breakpoint at the beginning of the function
- Click the ‘step’ button and confirm that the debugging point moves to the location specified in step 10.
- ‘Var’ > ‘Show Local…’ . Click to confirm that the value of the local variable changes
- Run up to the debugging point
Need more help with this?
Don’t hesitate to contact us here.