Commit 4dede3fa authored by ttwards's avatar ttwards
Browse files

debug files add

readme more specific
parent 22c8c3e0
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -11,5 +11,4 @@ CTestTestfile.cmake
_deps
CMakeUserPresets.json
build
.vscode
.cache
+17 −0
Original line number Diff line number Diff line
{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "${workspaceFolder}/../zephyr/**",
                "${workspaceFolder}/../zephyr/include/**"
            ],
            "defines": [],
            "compilerPath": "${userHome}/zephyr-sdk-0.16.8/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc",
            "cStandard": "c17",
            "cppStandard": "gnu++17",
            "intelliSenseMode": "linux-gcc-x64"
        }
    ],
    "version": 4
}
 No newline at end of file

.vscode/launch.json

0 → 100644
+44 −0
Original line number Diff line number Diff line
{
    "version": "0.2.0",
    "configurations": [

        {
            "name": "Launch",
            "device": "STM32F407IGHx",
            "cwd": "${workspaceFolder}",
            "executable": "build/zephyr/zephyr.elf",
            "request": "launch",
            "type": "cortex-debug",
            "runToEntryPoint": "main",
            "servertype": "openocd",
            "configFiles": [
                "interface/stlink.cfg",
                "target/stm32f4x.cfg"
            ],
            "svdFile": "${workspaceFolder}/boards/dji/robomaster_board_c/support/stm32f407.svd",
            "preRestartCommands": [
                "monitor reset halt"
            ],
            "gdbPath": "${userHome}/zephyr-sdk-0.16.8/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb",
            "liveWatch": {
                "enabled": true,
                "samplesPerSecond": 1
            }
        },
        {
            "name": "Attach",
            "device": "STM32F407IGHx",
            "cwd": "${workspaceFolder}",
            "executable": "build/zephyr/zephyr.elf",
            "request": "attach",
            "type": "cortex-debug",
            "runToEntryPoint": "main",
            "servertype": "openocd",
            "configFiles": [
                "interface/stlink.cfg",
                "target/stm32f4x.cfg"
            ],
            "gdbPath": "${userHome}/zephyr-sdk-0.16.8/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb"
        },
    ]
}
 No newline at end of file

.vscode/settings.json

0 → 100644
+35 −0
Original line number Diff line number Diff line
{
    "VsCodeTaskButtons.tasks": [
        {
            "label": "Build",
            "task": "Build",
            "tooltip": "Build the Zephyr project"
        },
        {
            "label": "Flash",
            "task": "Flash",
            "tooltip": "Flash the Zephyr project to the board"
        },
        {
            "label": "Monitor",
            "task": "Monitor",
            "tooltip": "Monitor via RTT Console"
        }
    ],
    "files.associations": {
        "device.h": "c",
        "pwm.h": "c",
        "kernel.h": "c",
        "log_frontend.h": "c",
        "gpio.h": "c"
    },
    "C_Cpp.errorSquiggles": "disabled",
    "stm32-for-vscode.armToolchainPath": false,
    "cortex-debug.variableUseNaturalFormat": true,
    "terminal.integrated.defaultProfile.linux": "Zephyr IDE Terminal",
    "C_Cpp.default.compileCommands": "${workspaceFolder}/.vscode/compile_commands.json",
    "cmake.configureOnOpen": false,
    "zephyr-ide.use-zephyr-ide-json": true,
    "zephyr-ide.projects": null,
    "mcu-debug.rtos-views.showRTOS": false
}
 No newline at end of file

.vscode/tasks.json

0 → 100644
+49 −0
Original line number Diff line number Diff line
{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Build New",
            "type": "shell",
            "command": "west build -p always -b robomaster_board_c motor",
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "problemMatcher": ["$gcc"],
            "detail": "Build the Zephyr project"
        },
        {
            "label": "Build",
            "type": "shell",
            "command": "west build -p always -b robomaster_board_c motor",
            "group": {
                "kind": "build",
                "isDefault": false
            },
            "problemMatcher": ["$gcc"],
            "detail": "Build the Zephyr project"
        },
        {
            "label": "Flash",
            "type": "shell",
            "command": "west flash",
            "group": {
                "kind": "build",
                "isDefault": false
            },
            "problemMatcher": [],
            "detail": "Flash the Zephyr project to the board"
        },
        {
            "label": "Monitor",
            "type": "shell",
            "command": "pyocd rtt -t STM32F407IGHx",
            "group": {
                "kind": "build",
                "isDefault": false
            },
            "problemMatcher": [],
            "detail": "Monitor via RTT Console"
        }
    ]
}
 No newline at end of file
Loading