Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
preset:
description: >
CMake preset to build the project, run
`cmake --build --list-presets` to see options
`cmake --list-presets` to see options
required: false
type: string
default: 'nucleo-debug'
Expand All @@ -20,7 +20,7 @@ on:
preset:
description: >
CMake preset to build the project, run
`cmake --build --list-presets` to see options
`cmake --list-presets` to see options
required: false
type: string
default: 'nucleo-debug'
Expand Down Expand Up @@ -76,4 +76,4 @@ jobs:
path: out/build/latest.elf
retention-days: 7
compression-level: 0
if-no-files-found: error
if-no-files-found: error
9 changes: 6 additions & 3 deletions .github/workflows/compile-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ jobs:
- board-debug
- board-release
- board-relwithdebinfo
- board-debug-eth
- board-release-eth
- board-relwithdebinfo-eth
- board-debug-eth-ksz8041
- board-debug-eth-lan8700
- board-release-eth-ksz8041
- board-release-eth-lan8700
- board-relwithdebinfo-eth-ksz8041
- board-relwithdebinfo-eth-lan8700
# - simulator
fail-fast: false
uses: ./.github/workflows/build.yml
Expand Down
111 changes: 85 additions & 26 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "0.2.0",
"configurations": [
"version": "0.2.0",
"configurations": [
{
"name": "Build and Debug STM32H723 (OpenOCD + RTT)",
"type": "cortex-debug",
Expand All @@ -16,7 +16,7 @@
"device": "STM32H723ZGTx",
"interface": "swd",
"runToEntryPoint": "main",
"svdFile":"./STM32H723.svd",
"svdFile": "./STM32H723.svd",
"showDevDebugOutput": "parsed",
"postLaunchCommands": [
"monitor rtt setup 0x24000000 0x24080000 \"SEGGER RTT\"",
Expand All @@ -39,8 +39,7 @@
}
]
},
"preLaunchTask": "CMake: build then pre-flash check"

"preLaunchTask": "CMake: build"
},
{
"name": "Debug STM32H723 (OpenOCD + RTT) - No Build",
Expand All @@ -57,7 +56,7 @@
"device": "STM32H723ZGTx",
"interface": "swd",
"runToEntryPoint": "main",
"svdFile":"./STM32H723.svd",
"svdFile": "./STM32H723.svd",
"showDevDebugOutput": "parsed",
"postLaunchCommands": [
"monitor rtt setup 0x24000000 0x24080000 \"SEGGER RTT\"",
Expand All @@ -80,26 +79,86 @@
}
]
},
"preLaunchTask": "Pre-flash check"
// "preLaunchTask": "Pre-flash check"
},
{
"name": "Debug simulator on Rosetta",
"type": "cppdbg",
"request": "launch",
"program": "out/build/latest.elf",
"miDebuggerServerAddress": "localhost:1234",
"miDebuggerPath": "/usr/bin/gdb",
"MIMode": "gdb",
"setupCommands": [
{
"description": "Set architecture to x86-64",
"text": "set architecture i386:x86-64",
"ignoreFailures": false
"name": "Debug simulator on Rosetta",
"type": "cppdbg",
"request": "launch",
"program": "out/build/latest.elf",
"miDebuggerServerAddress": "localhost:1234",
"miDebuggerPath": "/usr/bin/gdb",
"MIMode": "gdb",
"setupCommands": [
{
"description": "Set architecture to x86-64",
"text": "set architecture i386:x86-64",
"ignoreFailures": false
}
],
"preLaunchTask": "Start Debug Server for Simulator on emulated arch",
"cwd": "${workspaceFolder}",
"externalConsole": false
},
{
"type": "cortex-debug",
"request": "launch",
"name": "Build and Debug Project",
"servertype": "stlink",
"cwd": "${workspaceRoot}",
"runToEntryPoint": "main",
"showDevDebugOutput": "raw",
"executable": "out/build/latest.elf",
"device": "STM32H723ZG",
"configFiles": [
".vscode/stlink.cfg",
".vscode/stm32h7x.cfg"
],
"svdFile": ".vscode/STM32H723.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 8000000,
"swoFrequency": 2000000,
"source": "probe",
"decoders": [
{
"type": "console",
"label": "ITM",
"port": 0
}
]
},
"preLaunchTask": "CMake: build"
},
{
"type": "cortex-debug",
"request": "launch",
"name": "Debug Project",
"servertype": "stlink",
"cwd": "${workspaceRoot}",
"runToEntryPoint": "main",
"showDevDebugOutput": "raw",
"executable": "out/build/latest.elf",
"device": "STM32H723ZG",
"configFiles": [
".vscode/stlink.cfg",
".vscode/stm32h7x.cfg"
],
"svdFile": "./STM32H723.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 8000000,
"swoFrequency": 2000000,
"source": "probe",
"decoders": [
{
"type": "console",
"label": "ITM",
"port": 0
}
]
},
"stm32cubeprogrammer": "/opt/st/stm32cubeclt_1.16.0/STM32CubeProgrammer/bin"
}
],
"preLaunchTask": "Start Debug Server for Simulator on emulated arch",
"cwd": "${workspaceFolder}",
"externalConsole": false
}
]
}
]
}
32 changes: 16 additions & 16 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@
"problemMatcher": [],
"isBackground": true
},
{
"label": "Pre-flash check",
"type": "shell",
"command": "${workspaceFolder}/virtual/bin/python",
"windows": {
"command": "${workspaceFolder}/virtual/Scripts/python"
},
"args": [
"${workspaceFolder}/tools/preflash_check.py"
],
"problemMatcher": [],
"presentation": {
"reveal": "always",
"panel": "shared"
}
},
// {
// "label": "Pre-flash check",
// "type": "shell",
// "command": "${workspaceFolder}/virtual/bin/python",
// "windows": {
// "command": "${workspaceFolder}/virtual/Scripts/python"
// },
// "args": [
// "${workspaceFolder}/tools/preflash_check.py"
// ],
// "problemMatcher": [],
// "presentation": {
// "reveal": "always",
// "panel": "shared"
// }
// },
{
"label": "CMake: build then pre-flash check",
"dependsOn": ["CMake: build", "Pre-flash check"],
Expand Down
Loading