Skip to content

Commit

Permalink
Adds support for Discovery machines as well as advanced status and le…
Browse files Browse the repository at this point in the history
…d light strip. (#108)

* Added support for Discovery GR machines.

* A few small fixes.
  • Loading branch information
smohekey authored Jun 24, 2024
1 parent e50a651 commit bd290a6
Show file tree
Hide file tree
Showing 51 changed files with 1,740 additions and 411 deletions.
99 changes: 64 additions & 35 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,66 @@
{
// 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": [
{
"cwd": "${workspaceRoot}",
"executable": "${workspaceRoot}/build/Swordfish.elf",
"name": "Debug Swordfish",
"request": "launch",
"type": "cortex-debug",
"servertype": "jlink",
"serverpath": "C:/Program Files/SEGGER/JLink/JLinkGDBServerCL.exe",
"armToolchainPath": "C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin",
"device": "ATSAMD51P20A",
"interface": "swd",
"serialNumber": "", // add J-Link serial number if having multiple attached the same time.
"runToEntryPoint": "main",
"svdFile": "${workspaceRoot}/ATSAMD51P20A.svd",
"preRestartCommands": [
"monitor reset"
],
"rttConfig": {
"enabled": true,
"address": "auto",
// "clearSearch": false // OpenOCD users may have to un-comment this
"decoders": [
{
"port": 0,
"type": "console"
}
]
}
}
]
// 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": [
{
"cwd": "${workspaceRoot}",
"executable": "${workspaceRoot}/build/Swordfish.elf",
"name": "Launch Swordfish",
"request": "launch",
"type": "cortex-debug",
"servertype": "jlink",
"serverpath": "C:/Program Files/SEGGER/JLink/JLinkGDBServerCL.exe",
"armToolchainPath": "C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin",
"device": "ATSAMD51P20A",
"interface": "swd",
"serialNumber": "", // add J-Link serial number if having multiple attached the same time.
"runToEntryPoint": "main",
"svdFile": "${workspaceRoot}/ATSAMD51P20A.svd",
"preRestartCommands": [
"monitor reset"
],
"rttConfig": {
"enabled": true,
"address": "auto",
// "clearSearch": false // OpenOCD users may have to un-comment this
"decoders": [
{
"port": 0,
"type": "console"
}
]
}
},
{
"cwd": "${workspaceRoot}",
"executable": "${workspaceRoot}/build/Swordfish.elf",
"name": "Attach Swordfish",
"request": "attach",
"type": "cortex-debug",
"servertype": "jlink",
"serverpath": "C:/Program Files/SEGGER/JLink/JLinkGDBServerCL.exe",
"armToolchainPath": "C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin",
"device": "ATSAMD51P20A",
"interface": "swd",
"serialNumber": "", // add J-Link serial number if having multiple attached the same time.
"runToEntryPoint": "main",
"svdFile": "${workspaceRoot}/ATSAMD51P20A.svd",
"preRestartCommands": [
"monitor reset"
],
"rttConfig": {
"enabled": true,
"address": "auto",
// "clearSearch": false // OpenOCD users may have to un-comment this
"decoders": [
{
"port": 0,
"type": "console"
}
]
}
}
]
}
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ target_compile_definitions(${PROJECT_NAME}.elf
ARDUINOSTL_M_H
MACHINE_TYPE=${SWORDFISH_MACHINE_TYPE}
MACHINE_NAME=${SWORDFISH_MACHINE_NAME}
INVERT_ENDSTOPS=${SWORDFISH_INVERT_ENDSTOPS}
)

target_include_directories(${PROJECT_NAME}.elf
Expand Down
Loading

0 comments on commit bd290a6

Please sign in to comment.