Skip to content

Commit

Permalink
minor VSCode and boards cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
giseburt committed Jul 26, 2020
1 parent 490eb6c commit c2ad9d0
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ g2core/compile_commands.json
.vscode/.cortex-debug.registers.state.json
.vscode/.cortex-debug.peripherals.state.json
.vscode/ipch
g2core.code-workspace
76 changes: 73 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,76 @@
},
"preLaunchTask": "Build CONFIG=MiniMill Debug"
},
{
"name": "Debug CONFIG=MiniMill Quintic revG (J-Link/Semihosting)",
"type": "cortex-debug",
"request": "launch",
"servertype": "jlink",
"cwd": "${workspaceRoot}/g2core/",
"executable": "./bin/MiniMill-gquintic-g/g2core.elf",
"device": "ATSAMS70N20",
"svdFile": "${workspaceRoot}/Motate/MotateProject/motate/cmsis/TARGET_Atmel/sams70/ATSAMS70N20B.svd",
"interface": "swd",
"showDevDebugOutput": false,
"osx": {
"armToolchainPath": "${workspaceRoot}/Motate/Tools/osx/gcc-arm-none-eabi-7u2/bin/"
},
"linux": {
"armToolchainPath": "${workspaceRoot}/Motate/Tools/linux/gcc-arm-none-eabi-9m/bin/"
},
"swoConfig": {
"enabled": true,
"source":"probe",
"swoFrequency": 8000000,
"decoders": [
{
"port": 0,
"type": "console",
"label": "SWO output",
"encoding": "ascii"
}
]
// "decoders": [
// {
// "type": "graph",
// "port": 0,
// "encoding": "float",
// "graphId": "1",
// "scale": 1
// },
// {
// "type": "graph",
// "port": 1,
// "encoding": "float",
// "graphId": "2",
// "scale": 1
// },
// ],
},
// "graphConfig": [
// {
// "label": "Graph 1",
// "timespan": 5,
// "type": "realtime",
// "annotate": false,
// "maximum": 1,
// "minimum": 0,
// "plots": [
// {
// "graphId": "1",
// "label": "data 1",
// "color": "#53753c"
// },
// {
// "graphId": "2",
// "label": "1.0-data 1",
// "color": "#3557c3"
// },
// ]
// },
// ],
"preLaunchTask": "Build CONFIG=MiniMill DebugSemihosting"
},
{
"name": "Debug CONFIG=MiniMill Quintic revG (J-Link)",
"type": "cortex-debug",
Expand Down Expand Up @@ -181,9 +251,9 @@
"request": "launch",
"servertype": "jlink",
"cwd": "${workspaceRoot}/g2core/",
"executable": "./bin/AxiDrawv3-quint-gquintic-d/g2core.elf",
"device": "ATSAMS70N19",
"svdFile": "${workspaceRoot}/Motate/MotateProject/motate/cmsis/TARGET_Atmel/sams70/ATSAMS70N19.svd",
"executable": "./bin/AxiDrawv3-quint-gquintic-g/g2core.elf",
"device": "ATSAMS70N20",
"svdFile": "${workspaceRoot}/Motate/MotateProject/motate/cmsis/TARGET_Atmel/sams70/ATSAMS70N20B.svd",
"interface": "swd",
"showDevDebugOutput": false,
"osx": {
Expand Down
12 changes: 12 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@
"fileLocation": ["relative", "${workspaceRoot}/g2core"]
}
},
{
"label": "Build CONFIG=MiniMill DebugSemihosting",
"type": "process",
"command": "make",
"args": ["CONFIG=MiniMill", "VERBOSE=2", "COLOR=0", "DEBUG=3",
"RECORD=1"],
"group": "build",
"problemMatcher": {
"base": "$gcc",
"fileLocation": ["relative", "${workspaceRoot}/g2core"]
}
},
{
"label": "Build CONFIG=MiniMill Production",
"type": "process",
Expand Down
2 changes: 1 addition & 1 deletion g2core/boards.mk
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ ifeq ("$(CONFIG)","AxiDrawv3")
endif
ifeq ("$(CONFIG)","AxiDrawv3-quint")
ifeq ("$(BOARD)","NONE")
BOARD=gquintic-d
BOARD=gquintic-g
endif
SETTINGS_FILE="settings_axidraw_v3.h"
endif
Expand Down

0 comments on commit c2ad9d0

Please sign in to comment.