debug: add sam3x8e svd file

This commit is contained in:
anna 2021-08-03 00:05:23 +02:00
parent 552688b9a0
commit 33439b2e37
Signed by: fef
GPG key ID: EC22E476DC2D3D84
4 changed files with 100361 additions and 11 deletions

13
.vscode/launch.json vendored
View file

@ -2,24 +2,19 @@
"version": "0.2.0",
"configurations": [
{
"name": "Release",
"name": "openocd",
"cwd": "${workspaceRoot}",
"executable": "./build/ardix.elf",
"request": "launch",
"type": "cortex-debug",
"servertype": "openocd",
"configFiles": [
"${workspaceRoot}/openocd.cfg"
"${workspaceRoot}/arch/at91sam3x8e/openocd.cfg"
],
"device": "AT91SAM3X8E",
"runToMain": false,
"gdbPath": "/usr/bin/arm-none-eabi-gdb",
"preRestartCommands": [
"file ./build/ardix.elf",
"load",
"add-symbol-file ./build/ardix.elf",
"enable breakpoint",
"monitor reset"
]
"svdFile": "${workspaceRoot}/arch/at91sam3x8e/SAM3X8E.svd"
}
]
}

100355
arch/at91sam3x8e/SAM3X8E.svd Normal file

File diff suppressed because it is too large Load diff

View file

@ -18,7 +18,7 @@ set(CMAKE_STRIP ${TOOLCHAIN_PATH}/arm-none-eabi-strip${CMAKE_EXECUTABLE_SUFFIX}
set(CMAKE_C_FLAGS "-nodefaultlibs -nostartfiles -mcpu=cortex-m3 -mthumb -mabi=aapcs")
if(DEBUG)
set(CMAKE_C_FLAGS "-g -O0 ${CMAKE_C_FLAGS}")
set(CMAKE_C_FLAGS "-g -ggdb -Og ${CMAKE_C_FLAGS}")
else()
set(CMAKE_C_FLAGS "-Os ${CMAKE_C_FLAGS}")
endif()