Actions

EmSys

FreeRTOS Demo Project Debug Configuration

From EdWiki

FreeRTOS Demo Project Debug Configuration

Debug Config Menu

We don't have a valid Debug configuration when we created a new CCS GCC project.

► Select Run > Debug Configurations...




CCS Debug Configuration

Under "Code Composer Studio - Device Debugging" we didn't have any, so we have to create one:

Apparently you need a .ccxml file. We will use one of the configuration from Tivaware ek-tm4cgxl board examples:

CCS Debug Configuration

► In the next Dialog Box, Double click on Code Composer Studio - Device Debugging in the left pane




► Name : type freertos_on_tm4c123
► Target Configuration : Click on the File System..., browse to your TivaWare_C_Series-x.x.x.x/examples/boards/ek-tm4c123gxl/blinky/ccs folder and select target_config.ccxml.
► Click OK button




Debug Program Configuration

► Select Program tab from the right pane
Project : Click on Workspace... button and in next pop-up window Select freertos_on_tm4c123
Program : ${build_artifact:freertos_on_tm4c123}
Loading options : select → Load Program






Debug Target Configuration

► Select Target tab from the right pane
► Select Reset the target on connect and Reset the target on a program load or restart
► Click on the Apply button
► Click on the Close button









Debug Target Configuration

And to use this new config, we can just hit the debug button.... or if we add it to the "favorites" we can select it in the debug icon's dropdown menu:


By default, it will auto-run but breakpoint at main, which is the typical behavior:

Debug Target Configuration