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 + ```