- Note
- The steps on this page should be done each time EVM is power cycled or when a new IAR session is started.
Prerequisites
A quick recap of the steps that need to have been done before you proceed
Load and run example binaries in IAR Embedded Workbench
- Launch IAR Embedded Workbench IDE
- POWER-ON the EVM
- Make sure the
SBL NULL is flashed on the board, and ensure the UART logs of SBL NULL get printed. Refer IAR Embedded Workbench Does Not Support GEL Scripts
- When using IAR EW for build
- Open the workspace and project need to be flashed.
- Build the project.
- Navigate to Toolbar >
Project > Download and Debug
Download and Debug Program
- Now the program will be halted at
main()
- Navigate to Toolbar >
View > Terminal IO to open the terminal to view the console logs
Terminal IO
- Click Go button on the toolbar to run the program and debug using various IAR debug options.
Debug Options
- The program output can be seen on the UART and Terminal log.
- Below shows the output of the "hello world" example
Hello world program output
- When using Makefile for build
- Open any existing project
- Right click on the project and select the option Add external binary and browse to the .out file location.
Add external binary
- Now the binary is loaded to the project, Right click on the .out file and make sure the "Set as Debug Target" is enabled.
Set Target binary for debug
- Click on Project > Download and Debug to load the binary. Continue as the steps in the previous section.