Changes

Jump to: navigation, search
Introduction
This article also shows how to configure VSC in order to cross-build a Makefile-based application. This configuration supports cross-toolchain error messages to jump on erroneous lines with a simple click.
 
==Testbed==
To test the procedure, the same testbed described [[BELK-TN-007:_FreeRTOS_on_single-core_Bora_Lite_SoM|here]] was used. Therefore, the application used to validate the procedure is <code>freertos_hello_world</code>.
 
==Integrating VSC e PVRT32==
===Debugging in VSC===
After opening VSC from the root directory of the <code>freertos_hello_world</code> project, install the ''Native Debug'' extension.
 
Then, create a <code>launch.json</code> file by selecting ''Debug->Add Configuration->GDB''. The file should look like this:
<syntaxhighlight lang="text" line="line">
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug (PowerView TRACE32)",
"type": "gdb",
"request": "launch",
//"target": "${workspaceRoot}/Debug/freertos_hello_world.elf",
"target": "r:/home/llandre/devel/formulasae/ecu/boralite/workspace-2019.1/freertos_hello_world/Debug/freertos_hello_world.elf",
"gdbpath": "e:/Xilinx/SDK/2019.1/gnu/aarch32/nt/gcc-arm-none-eabi/bin/arm-none-eabi-gdb.exe",
"cwd": "${workspaceRoot}",
"valuesFormatting": "parseText",
"autorun": [
"target remote localhost:30000",
"symbol-file ${workspaceRoot}/Debug/freertos_hello_world.elf",
]
}
]
}
</syntaxhighlight>
4,650
edits

Navigation menu