Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Config files for Visual Studio Code
- Loading branch information
Showing
10 changed files
with
296 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "pca10040/s132", | ||
"includePath": [ | ||
"${workspaceFolder}/pca10040/s132/config", | ||
"${env:NRF_SDK}/**" | ||
], | ||
"defines": [ | ||
"BOARD_PCA10040", | ||
"CONFIG_GPIO_AS_PINRESET", | ||
"FLOAT_ABI_HARD", | ||
"NRF52", | ||
"NRF52832_XXAA", | ||
"NRF52_PAN_74", | ||
"NRF_SD_BLE_API_VERSION=6", | ||
"S132", | ||
"SOFTDEVICE_PRESENT", | ||
"SWI_DISABLE0" | ||
], | ||
"compilerPath": "${env:GNU_GCC}/arm-none-eabi-gcc.exe", | ||
"cStandard": "c11", | ||
"cppStandard": "c++17", | ||
"intelliSenseMode": "clang-x64" | ||
}, | ||
{ | ||
"name": "pca10056/s140", | ||
"includePath": [ | ||
"${workspaceFolder}/pca10056/s140/config", | ||
"${env:NRF_SDK}/**" | ||
], | ||
"defines": [ | ||
"BOARD_PCA10056", | ||
"CONFIG_GPIO_AS_PINRESET", | ||
"FLOAT_ABI_HARD", | ||
"NRF52840_XXAA", | ||
"NRF_SD_BLE_API_VERSION=6", | ||
"S140", | ||
"SOFTDEVICE_PRESENT", | ||
"SWI_DISABLE0" | ||
], | ||
"compilerPath": "${env:GNU_GCC}/arm-none-eabi-gcc.exe", | ||
"cStandard": "c11", | ||
"cppStandard": "c++17", | ||
"intelliSenseMode": "clang-x64" | ||
} | ||
], | ||
"version": 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"name": "BLE Example Blinky", | ||
"path": "." | ||
}, | ||
{ | ||
"name": "PCA10056/s140", | ||
"path": "pca10056/s140/armgcc" | ||
}, | ||
{ | ||
"name": "PCA10040/s132", | ||
"path": "pca10040/s132/armgcc" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
// 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": "(gdb) Launch", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"program": "_build/nrf52832_xxaa.out", | ||
"cwd": "${workspaceFolder}", | ||
"MIMode": "gdb", | ||
"miDebuggerPath": "${env:GNU_GCC}/arm-none-eabi-gdb.exe", | ||
"targetArchitecture": "arm", | ||
"customLaunchSetupCommands": [ | ||
{ "text": "-environment-cd ${workspaceFolder}", "description": "set cwd", "ignoreFailures": false }, | ||
{ "text": "-file-exec-and-symbols _build/nrf52832_xxaa.out", "description": "set executable", "ignoreFailures": false }, | ||
{ "text": "-interpreter-exec console \"set pagination off\"", "description": "set pagination off", "ignoreFailures": false }, | ||
{ "text": "-target-select remote localhost:2331", "description": "connect target", "ignoreFailures": false }, | ||
{ "text": "-break-insert main", "description": "break on main", "ignoreFailures": false }, | ||
{ "text": "-interpreter-exec console \"monitor reset\"", "description": "reset target", "ignoreFailures": false }, | ||
], | ||
"stopAtEntry": true, | ||
"miDebuggerServerAddress": "localhost:2331", | ||
"debugServerPath": "${env:SEGGER_TOOLS}/JLinkGDBServerCL.exe", | ||
"debugServerArgs": "-select USB=${env:PCA10040_SN} -device nRF52840_xxAA -if SWD -speed 1000 -noir", | ||
"serverStarted": "Connected to target", | ||
// "logging": { | ||
// "engineLogging": true, | ||
// "exceptions": true, | ||
// "moduleLoad": true, | ||
// "programOutput": true, | ||
// "trace": true, | ||
// "traceResponse": true | ||
// } | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "build", | ||
"type": "shell", | ||
"command": "${env:GNU_TOOLS}/make", | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "clean", | ||
"type": "shell", | ||
"command": "${env:GNU_TOOLS}/make clean", | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "flash", | ||
"type": "shell", | ||
"command": "${env:GNU_TOOLS}/make flash", | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "flash_softdevice", | ||
"type": "shell", | ||
"command": "${env:GNU_TOOLS}/make flash_softdevice", | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"problemMatcher": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
// 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": "(gdb) Launch", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"program": "_build/nrf52840_xxaa.out", | ||
"cwd": "${workspaceFolder}", | ||
"MIMode": "gdb", | ||
"miDebuggerPath": "${env:GNU_GCC}/arm-none-eabi-gdb.exe", | ||
"targetArchitecture": "arm", | ||
"customLaunchSetupCommands": [ | ||
{ "text": "-environment-cd ${workspaceFolder}", "description": "set cwd", "ignoreFailures": false }, | ||
{ "text": "-file-exec-and-symbols _build/nrf52840_xxaa.out", "description": "set executable", "ignoreFailures": false }, | ||
{ "text": "-interpreter-exec console \"set pagination off\"", "description": "set pagination off", "ignoreFailures": false }, | ||
{ "text": "-target-select remote localhost:2331", "description": "connect target", "ignoreFailures": false }, | ||
{ "text": "-break-insert main", "description": "break on main", "ignoreFailures": false }, | ||
{ "text": "-interpreter-exec console \"monitor reset\"", "description": "reset target", "ignoreFailures": false }, | ||
], | ||
"stopAtEntry": true, | ||
"miDebuggerServerAddress": "localhost:2331", | ||
"debugServerPath": "${env:SEGGER_TOOLS}/JLinkGDBServerCL.exe", | ||
"debugServerArgs": "-select USB=${env:PCA10056_SN} -device nRF52840_xxAA -if SWD -speed 1000 -noir", | ||
"serverStarted": "Connected to target", | ||
// "logging": { | ||
// "engineLogging": true, | ||
// "exceptions": true, | ||
// "moduleLoad": true, | ||
// "programOutput": true, | ||
// "trace": true, | ||
// "traceResponse": true | ||
// } | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "build", | ||
"type": "shell", | ||
"command": "${env:GNU_TOOLS}/make", | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "clean", | ||
"type": "shell", | ||
"command": "${env:GNU_TOOLS}/make clean", | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "flash", | ||
"type": "shell", | ||
"command": "${env:GNU_TOOLS}/make flash", | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "flash_softdevice", | ||
"type": "shell", | ||
"command": "${env:GNU_TOOLS}/make flash_softdevice", | ||
"options": { | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
"problemMatcher": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
rem Location of Nordic SDK | ||
set NRF_SDK=V:/Nordic/nRF5_SDK_15.0.0_a53641a | ||
|
||
rem Location of Nordic Command Line tools (nrfjprog) | ||
set NRF_TOOLS=C:/Program Files (x86)/Nordic Semiconductor/nrf5x/bin | ||
|
||
rem location of GCC Cross-compiler https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads | ||
set GNU_GCC=V:/Nordic/gcc-arm-none-eabi-7-2018-q2-update-win32/bin | ||
|
||
rem Location of Gnu Tools (make) https://github.com/gnu-mcu-eclipse/windows-build-tools/releases | ||
set GNU_TOOLS=V:/Nordic/GNU/Tools/2.11-20180428-1604/bin | ||
|
||
rem Location of SEGGER JLink tools | ||
set SEGGER_TOOLS=C:/Program Files (x86)/SEGGER/JLink_V620i | ||
|
||
rem Serial numbers of nRF development boards | ||
set PCA10056_SN=683798348 | ||
set PCA10040_SN=682645815 | ||
|
||
"C:/Program Files/Microsoft VS Code/Code.exe" ble_app_blinky.code-workspace |