debug: add sam3x8e svd file
This commit is contained in:
parent
552688b9a0
commit
33439b2e37
4 changed files with 100361 additions and 11 deletions
15
.vscode/launch.json
vendored
15
.vscode/launch.json
vendored
|
@ -2,24 +2,19 @@
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "Release",
|
"name": "openocd",
|
||||||
"cwd": "${workspaceRoot}",
|
"cwd": "${workspaceRoot}",
|
||||||
"executable": "./build/ardix.elf",
|
"executable": "./build/ardix.elf",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "cortex-debug",
|
"type": "cortex-debug",
|
||||||
"servertype": "openocd",
|
"servertype": "openocd",
|
||||||
"configFiles": [
|
"configFiles": [
|
||||||
"${workspaceRoot}/openocd.cfg"
|
"${workspaceRoot}/arch/at91sam3x8e/openocd.cfg"
|
||||||
],
|
],
|
||||||
|
"device": "AT91SAM3X8E",
|
||||||
"runToMain": false,
|
"runToMain": false,
|
||||||
"gdbPath": "/usr/bin/arm-none-eabi-gdb",
|
"gdbPath": "/usr/bin/arm-none-eabi-gdb",
|
||||||
"preRestartCommands": [
|
"svdFile": "${workspaceRoot}/arch/at91sam3x8e/SAM3X8E.svd"
|
||||||
"file ./build/ardix.elf",
|
|
||||||
"load",
|
|
||||||
"add-symbol-file ./build/ardix.elf",
|
|
||||||
"enable breakpoint",
|
|
||||||
"monitor reset"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
100355
arch/at91sam3x8e/SAM3X8E.svd
Normal file
100355
arch/at91sam3x8e/SAM3X8E.svd
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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")
|
set(CMAKE_C_FLAGS "-nodefaultlibs -nostartfiles -mcpu=cortex-m3 -mthumb -mabi=aapcs")
|
||||||
if(DEBUG)
|
if(DEBUG)
|
||||||
set(CMAKE_C_FLAGS "-g -O0 ${CMAKE_C_FLAGS}")
|
set(CMAKE_C_FLAGS "-g -ggdb -Og ${CMAKE_C_FLAGS}")
|
||||||
else()
|
else()
|
||||||
set(CMAKE_C_FLAGS "-Os ${CMAKE_C_FLAGS}")
|
set(CMAKE_C_FLAGS "-Os ${CMAKE_C_FLAGS}")
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue