OSX project fixes
This commit is contained in:
parent
1606e32ebd
commit
a9560f14dd
84
.vscode/launch.json
vendored
84
.vscode/launch.json
vendored
@ -1,46 +1,58 @@
|
|||||||
{
|
{
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{ /* Common configuration for all OS */
|
||||||
"name": "debug",
|
"name": "C++ Launch",
|
||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"windows": {
|
"program": "${workspaceRoot}/BUILD/${workspaceRootFolderName}.elf",
|
||||||
"miDebuggerPath": "c:/dev/gcc-arm-6.2/bin/arm-none-eabi-gdb.exe"
|
"targetArchitecture": "arm",
|
||||||
|
"args": [],
|
||||||
|
"stopAtEntry": true,
|
||||||
|
"cwd": "${workspaceRoot}",
|
||||||
|
"environment": [],
|
||||||
|
"externalConsole": false,
|
||||||
|
|
||||||
|
// This does not do shit
|
||||||
|
//"debugServerArgs": "-f /usr/local/share/openocd/scripts/board/st_nucleo_f4.cfg -f /usr/local/share/openocd/scripts/interface/stlink-v2-1.cfg -c init -c 'reset init'",
|
||||||
|
"debugServerArgs":"",
|
||||||
|
|
||||||
|
"serverLaunchTimeout": 20000,
|
||||||
|
"filterStderr": true,
|
||||||
|
"filterStdout": false,
|
||||||
|
"serverStarted": "GDB\\ server\\ started",
|
||||||
|
"preLaunchTask": "build",
|
||||||
|
"setupCommands": [
|
||||||
|
{ "text": "-target-select remote localhost:3333", "description": "connect to target", "ignoreFailures": false },
|
||||||
|
{ "text": "-file-exec-and-symbols ${workspaceRoot}/BUILD/${workspaceRootFolderName}.elf", "description": "load file", "ignoreFailures": false},
|
||||||
|
{ "text": "-interpreter-exec console \"monitor endian little\"", "ignoreFailures": false },
|
||||||
|
{ "text": "-interpreter-exec console \"monitor reset\"", "ignoreFailures": false },
|
||||||
|
{ "text": "-interpreter-exec console \"monitor halt\"", "ignoreFailures": false },
|
||||||
|
{ "text": "-interpreter-exec console \"monitor arm semihosting enable\"", "ignoreFailures": false },
|
||||||
|
{ "text": "-target-download", "description": "flash target", "ignoreFailures": false }
|
||||||
|
],
|
||||||
|
"logging": {
|
||||||
|
"moduleLoad": true,
|
||||||
|
"trace": true,
|
||||||
|
"engineLogging": true,
|
||||||
|
"programOutput": true,
|
||||||
|
"exceptions": true
|
||||||
},
|
},
|
||||||
"linux": {
|
"linux": {
|
||||||
"miDebuggerPath": "/usr/bin/arm-none-eabi-gdb"
|
"MIMode": "gdb",
|
||||||
|
"MIDebuggerPath": "/usr/bin/arm-none-eabi-gdb"//,
|
||||||
},
|
},
|
||||||
"targetArchitecture": "arm",
|
"osx": {
|
||||||
"program": "${workspaceRoot}/outdir/nucleo_f411re/zephyr.elf",
|
"MIMode": "gdb",
|
||||||
// A delay is needed to start the debug_server here as the OCD server
|
"MIDebuggerPath": "/Users/philip/.platformio/packages/toolchain-gccarmnoneeabi/bin/arm-none-eabi-gdb"
|
||||||
// is not fully started when gdb tries to connect
|
//"debugServerPath": "/usr/local/bin/openocd"
|
||||||
//"preLaunchTask": "debug_server",
|
},
|
||||||
"debugServerArgs": "",
|
"windows": {
|
||||||
"stopAtEntry": false,
|
"preLaunchTask": "make.exe",
|
||||||
"setupCommands": [
|
"MIMode": "gdb",
|
||||||
{ "text": "file ${workspaceRoot}/outdir/nucleo_f411re/zephyr.elf" },
|
"MIDebuggerPath": "C:\\Program Files (x86)\\GNU Tools ARM Embedded\\4.9 2015q3\\bin\\arm-none-eabi-gdb.exe",
|
||||||
{ "text": "set remotetimeout 30" },
|
"debugServerPath": "pyocd-gdbserver.exe"
|
||||||
{ "text": "target remote localhost:3333" },
|
}
|
||||||
{ "text": "monitor halt" },
|
|
||||||
{ "text": "monitor reset init" },
|
|
||||||
{ "text": "load" },
|
|
||||||
{ "text": "info target" }
|
|
||||||
],
|
|
||||||
"externalConsole": false,
|
|
||||||
"cwd": "${workspaceRoot}"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
//"type": "gdb",
|
|
||||||
//"request": "attach",
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// For OpenOCD which has to run when gdb tries to connect
|
|
||||||
// $ PATH_TO_OPENOCD/bin/openocd
|
|
||||||
// -f PATH_TO_OPENOCD/scripts/board/stm32f4discovery.cfg
|
|
||||||
// -f PATH_TO_OPENOCD/scripts/interface/stlink-v2-1.cfg
|
|
||||||
// -c init
|
|
||||||
// -c "reset init"
|
|
59
.vscode/tasks.json
vendored
59
.vscode/tasks.json
vendored
@ -14,16 +14,16 @@
|
|||||||
{
|
{
|
||||||
"taskName": "clean",
|
"taskName": "clean",
|
||||||
"suppressTaskName": true,
|
"suppressTaskName": true,
|
||||||
"args": ["source ${workspaceRoot}/include/zephyr-RC/zephyr-env.sh && make clean && echo DONE"]
|
"args": ["make clean && echo DONE"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"taskName": "build",
|
"taskName": "build",
|
||||||
"suppressTaskName": true,
|
"suppressTaskName": true,
|
||||||
"isBuildCommand": true,
|
"isBuildCommand": true,
|
||||||
"args": ["source ${workspaceRoot}/include/zephyr-RC/zephyr-env.sh && make BOARD=nucleo_f411re && echo DONE"],
|
"args": ["make"],
|
||||||
"problemMatcher": {
|
"problemMatcher": {
|
||||||
"owner": "cpp",
|
"owner": "cpp",
|
||||||
"fileLocation": ["relative", "${workspaceRoot}"],
|
"fileLocation": ["relative", "${workspaceRoot}/mbed-os"],
|
||||||
"pattern": {
|
"pattern": {
|
||||||
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
|
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
|
||||||
"file": 1,
|
"file": 1,
|
||||||
@ -37,13 +37,60 @@
|
|||||||
{
|
{
|
||||||
"taskName": "deploy",
|
"taskName": "deploy",
|
||||||
"suppressTaskName": true,
|
"suppressTaskName": true,
|
||||||
"args": ["source ${workspaceRoot}/include/zephyr-RC/zephyr-env.sh && make BOARD=nucleo_f411re flash"]
|
"args": ["not implemented"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
// This task will never end. So it will never go through to the next!!!
|
||||||
"taskName": "debug_server",
|
"taskName": "debug_server",
|
||||||
|
//"isBackground": true,
|
||||||
"suppressTaskName": true,
|
"suppressTaskName": true,
|
||||||
//"args": ["source ${workspaceRoot}/include/zephyr-RC/zephyr-env.sh && openocd -s /usr/local/share/openocd/scripts -f ${ZEPHYR_BASE}/boards/arm/nucleo_f411re/support/openocd.cfg -c 'init' -c 'targets' -c 'reset halt'"]
|
"args": ["openocd -f /usr/share/openocd/scripts/board/st_nucleo_f4.cfg -f /usr/share/openocd/scripts/interface/stlink-v2-1.cfg -c init -c 'reset init'"]
|
||||||
"args": ["source ${workspaceRoot}/include/zephyr-RC/zephyr-env.sh && openocd -s /usr/local/share/openocd/scripts -f ${ZEPHYR_BASE}/boards/arm/nucleo_f411re/support/openocd.cfg -c 'init' -c 'targets' -c 'reset init'"]
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"osx" : {
|
||||||
|
"command": "bash",
|
||||||
|
"suppressTaskName": true,
|
||||||
|
"isShellCommand": true,
|
||||||
|
"showOutput": "always",
|
||||||
|
"args": [
|
||||||
|
"-c"
|
||||||
|
],
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"taskName": "clean",
|
||||||
|
"suppressTaskName": true,
|
||||||
|
"args": ["make clean && echo DONE"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"taskName": "build",
|
||||||
|
"suppressTaskName": true,
|
||||||
|
"isBuildCommand": true,
|
||||||
|
"args": ["make"],
|
||||||
|
"problemMatcher": {
|
||||||
|
"owner": "cpp",
|
||||||
|
"fileLocation": ["relative", "${workspaceRoot}/mbed-os"],
|
||||||
|
"pattern": {
|
||||||
|
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
|
||||||
|
"file": 1,
|
||||||
|
"line": 2,
|
||||||
|
"column": 3,
|
||||||
|
"severity": 4,
|
||||||
|
"message": 5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"taskName": "deploy",
|
||||||
|
"suppressTaskName": true,
|
||||||
|
"args": ["not implemented"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// This task will never end. So it will never go through to the next!!!
|
||||||
|
"taskName": "debug_server",
|
||||||
|
//"isBackground": true,
|
||||||
|
"suppressTaskName": true,
|
||||||
|
"args": ["openocd -f /usr/local/share/openocd/scripts/board/st_nucleo_f4.cfg -f /usr/local/share/openocd/scripts/interface/stlink-v2-1.cfg -c init -c 'reset init'"]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user