From cc195babdb48e16df626ce7684d1d131bd6f8333 Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Wed, 16 Oct 2019 10:46:44 +0200 Subject: [PATCH] Update Readme and launch config --- .vscode/launch.json | 12 +++++++----- README.md | 8 ++++++++ 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 5726f1f..12a76eb 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,16 +1,13 @@ { - // 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": "Launch TCM", + "name": "Launch", "type": "cppdbg", "request": "launch", "program": "${workspaceFolder}/exe/blinky.axf", "args": [], - "stopAtEntry": true, + "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [], "MIMode": "gdb", @@ -37,6 +34,11 @@ "text": "file ${workspaceFolder}/exe/blinky.axf", "ignoreFailures": false }, + { + "description": "Load.", + "text": "load", + "ignoreFailures": false + }, { "description": "Set stack pointer", "text": "set $sp = g_pfnVectors[0]", diff --git a/README.md b/README.md index 4175665..b6b8d9b 100644 --- a/README.md +++ b/README.md @@ -34,3 +34,11 @@ to turn the LEDs on and off. 1. Run the reference application. * Open the project in CCS/IAR. Build the application and debug to load to the device, or flash the binary using [UniFlash](http://processors.wiki.ti.com/index.php/CC3100_%26_CC3200_UniFlash_Quick_Start_Guide). 2. Verify the LaunchPad LEDs (D5, D6 and D7) toggle on and off. + +## Debug + +1. Start debug server: + + ```shell + docker run --privileged -p 3333:3333 cc3200-env sh /bin/start_openocd.sh + ```