Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
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
16 changes: 12 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,15 @@ GNUmakefile
# CubeMX Integration
EWARM
.mxproject
*/Core/Src/system_stm32*xx.c
*/*/Core/Src/system_stm32*xx.c
*/Core/Inc/stm32_assert.h
*/*/Core/Inc/stm32_assert.h
*/cmake/stm32cubemx
*/*/cmake/stm32cubemx
*/cmake/CMakeLists.txt
*/*/cmake/CMakeLists.txt
*/cmake/gcc-arm-none-eabi.cmake
*/*/cmake/gcc-arm-none-eabi.cmake
*/cmake/starm-clang.cmake
*/*/cmake/starm-clang.cmake
*/Drivers
*/*/Drivers
*/CMakePresets.json
*/*/CMakePresets.json
151 changes: 129 additions & 22 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,89 @@
{
"version": "0.2.0",
"configurations": [
{
"cwd": "${workspaceFolder}",
"executable": "${command:cmake.buildDirectory}/NucleoG4-Blinky.elf",
"name": "NucleoG4-Blinky",
"request": "launch",
"type": "cortex-debug",
"servertype": "openocd",
"configFiles": [
"interface/stlink.cfg",
"target/stm32g4x.cfg"
],
"searchDir": [],
"preLaunchTask": "CMake: configure and build NucleoG4-Blinky",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G474.svd",
"openOCDLaunchCommands": [
"reset_config srst_only separate connect_assert_srst",
],

Check failure on line 21 in .vscode/launch.json

View workflow job for this annotation

GitHub Actions / Configuration Files

Syntax Error

error at line 21 column 5: invalid character ']' looking for beginning of value
"runToEntryPoint": "main",
"showDevDebugTimestamps": true
},
{
"cwd": "${workspaceFolder}",
"executable": "${command:cmake.buildDirectory}/NucleoG4-Hello.elf",
"name": "NucleoG4-Hello",
"request": "launch",
"type": "cortex-debug",
"servertype": "openocd",
"configFiles": [
"interface/stlink.cfg",
"target/stm32g4x.cfg"
],
"searchDir": [],
"preLaunchTask": "CMake: configure and build NucleoG4-Hello",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G474.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 160000000,
"swoFrequency": 2000000,
"source": "probe",
"decoders": [
{
"type": "console",
"label": "ITM",
"showOnStartup": true,
"port": 0,
"encoding": "ascii"
}
]
}
},
{
"cwd": "${workspaceFolder}",
"executable": "${command:cmake.buildDirectory}/NucleoG4-Echo.elf",
"name": "NucleoG4-Echo",
"request": "launch",
"type": "cortex-debug",
"servertype": "openocd",
"configFiles": [
"interface/stlink.cfg",
"target/stm32g4x.cfg"
],
"searchDir": [],
"preLaunchTask": "CMake: configure and build NucleoG4-Echo",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G474.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 160000000,
"swoFrequency": 2000000,
"source": "probe",
"decoders": [
{
"type": "console",
"label": "ITM",
"showOnStartup": true,
"port": 0,
"encoding": "ascii"
}
]
}
},
{
"cwd": "${workspaceFolder}",
"executable": "${command:cmake.buildDirectory}/ECU.elf",
Expand All @@ -15,7 +98,7 @@
"searchDir": [],
"preLaunchTask": "CMake: configure and build ECU",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32G474.svd",
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G474.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 160000000,
Expand Down Expand Up @@ -46,7 +129,7 @@
"searchDir": [],
"preLaunchTask": "CMake: configure and build CUBEMXTESTING",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32G474.svd",
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G474.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 160000000,
Expand Down Expand Up @@ -77,7 +160,7 @@
"searchDir": [],
"preLaunchTask": "CMake: configure and build CCU",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32G474.svd",
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G474.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 170000000,
Expand Down Expand Up @@ -108,7 +191,7 @@
"searchDir": [],
"preLaunchTask": "CMake: configure and build DashPanel",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32G474.svd",
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G474.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 170000000,
Expand Down Expand Up @@ -139,7 +222,7 @@
"searchDir": [],
"preLaunchTask": "CMake: configure and build CANine",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32G474.svd",
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G474.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 170000000,
Expand Down Expand Up @@ -170,7 +253,7 @@
"searchDir": [],
"preLaunchTask": "CMake: configure and build TireTemp FL",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32G431.svd",
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G431.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 160000000,
Expand Down Expand Up @@ -201,7 +284,7 @@
"searchDir": [],
"preLaunchTask": "CMake: configure and build TireTemp FR",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32G431.svd",
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G431.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 160000000,
Expand Down Expand Up @@ -232,7 +315,7 @@
"searchDir": [],
"preLaunchTask": "CMake: configure and build TireTemp RL",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32G431.svd",
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G431.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 160000000,
Expand Down Expand Up @@ -263,7 +346,7 @@
"searchDir": [],
"preLaunchTask": "CMake: configure and build TireTemp RR",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32G431.svd",
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G431.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 160000000,
Expand Down Expand Up @@ -294,7 +377,7 @@
"searchDir": [],
"preLaunchTask": "CMake: configure and build BrakeTemp FL",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32G431.svd",
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G431.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 160000000,
Expand Down Expand Up @@ -325,7 +408,7 @@
"searchDir": [],
"preLaunchTask": "CMake: configure and build BrakeTemp FR",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32G431.svd",
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G431.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 160000000,
Expand Down Expand Up @@ -356,7 +439,7 @@
"searchDir": [],
"preLaunchTask": "CMake: configure and build BrakeTemp RL",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32G431.svd",
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G431.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 160000000,
Expand Down Expand Up @@ -387,7 +470,7 @@
"searchDir": [],
"preLaunchTask": "CMake: configure and build BrakeTemp RR",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32G431.svd",
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G431.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 160000000,
Expand Down Expand Up @@ -418,7 +501,7 @@
"searchDir": [],
"preLaunchTask": "CMake: configure and build G4HELLO",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32G474.svd",
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G474.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 170000000,
Expand Down Expand Up @@ -449,7 +532,7 @@
"searchDir": [],
"preLaunchTask": "CMake: configure and build G4ECHO",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32G474.svd",
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G474.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 170000000,
Expand Down Expand Up @@ -480,7 +563,7 @@
"searchDir": [],
"preLaunchTask": "CMake: configure and build G4BLINKY",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32G474.svd",
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G474.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 170000000,
Expand Down Expand Up @@ -511,7 +594,7 @@
"searchDir": [],
"preLaunchTask": "CMake: configure and build U5BLINKY",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32U5A9.svd"
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32U5A9.svd"
},
{
"cwd": "${workspaceFolder}",
Expand All @@ -527,7 +610,7 @@
"searchDir": [],
"preLaunchTask": "CMake: configure and build L4BLINKY",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32L476.svd"
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32L476.svd"
},
{
"cwd": "${workspaceFolder}",
Expand Down Expand Up @@ -558,7 +641,7 @@
}
]
},
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32L476.svd"
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32L476.svd"
},
{
"cwd": "${workspaceFolder}",
Expand All @@ -574,7 +657,7 @@
"searchDir": [],
"preLaunchTask": "CMake: configure and build W3_G4SPI_Receive",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32G474.svd"
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G474.svd"
},
{
"cwd": "${workspaceFolder}",
Expand All @@ -590,7 +673,7 @@
"searchDir": [],
"preLaunchTask": "CMake: configure and build W3_G4SPI_Transmit",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32G474.svd"
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G474.svd"
},
{
"cwd": "${workspaceFolder}",
Expand All @@ -606,7 +689,7 @@
"searchDir": [],
"preLaunchTask": "CMake: configure and build G4NEOTESTING",
"showDevDebugOutput": "raw",
"svdPath": "${workspaceFolder}/Lib/Vendor/CMSIS_5/SVD/STM32G474.svd",
"svdPath": "${workspaceFolder}/Lib/Vendor/SVD/STM32G474.svd",
"swoConfig": {
"enabled": true,
"cpuFrequency": 170000000,
Expand All @@ -623,5 +706,29 @@
]
}
}
],
"inputs": [
{
"id": "pickSeries",
"description": "Pick the series of the STM32 device to debug",
"type": "pickString",
"options": [
"stm32g4x",
"stm32l4x",
"stm32u5x"
],
},
{
"id": "pickSvd",
"description": "Pick the SVD file for the STM32 device to debug",
"type": "pickString",
"options": [
"STM32G431",
"STM32G474",
"STM32H523",
"STM32L476",
"STM32U5A9"
],
}
]
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
"files.trimTrailingWhitespace": true,
"files.eol": "\n",
"cmake.useCMakePresets": "always",
"cortex-debug.variableUseNaturalFormat": true
"cortex-debug.variableUseNaturalFormat": false
}
27 changes: 27 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,33 @@
"type": "shell",
"command": "cmake --preset ${command:cmake.activeConfigurePresetName} -DNODE:STRING=RR"
},
{
"label": "CMake: configure and build NucleoG4-Blinky",
"type": "shell",
"dependsOrder": "sequence",
"dependsOn": [
"CMake: configure"
],
"command": "cmake --build --preset ${command:cmake.activeBuildPresetName} --target NucleoG4-Blinky"
},
{
"label": "CMake: configure and build NucleoG4-Hello",
"type": "shell",
"dependsOrder": "sequence",
"dependsOn": [
"CMake: configure"
],
"command": "cmake --build --preset ${command:cmake.activeBuildPresetName} --target NucleoG4-Hello"
},
{
"label": "CMake: configure and build NucleoG4-Echo",
"type": "shell",
"dependsOrder": "sequence",
"dependsOn": [
"CMake: configure"
],
"command": "cmake --build --preset ${command:cmake.activeBuildPresetName} --target NucleoG4-Echo"
},
{
"label": "CMake: configure and build ECU",
"type": "shell",
Expand Down
Loading
Loading