forked from Archive/PX4-Autopilot
Add S32K3 vscode support add Jlink rtos vscode support
This commit is contained in:
parent
16d6e699bb
commit
8b5f35b3fe
|
@ -266,6 +266,16 @@ CONFIG:
|
||||||
buildType: MinSizeRel
|
buildType: MinSizeRel
|
||||||
settings:
|
settings:
|
||||||
CONFIG: nxp_fmuk66-v3_default
|
CONFIG: nxp_fmuk66-v3_default
|
||||||
|
nxp_mr-canhubk3_default:
|
||||||
|
short: nxp_mr-canhubk3_default
|
||||||
|
buildType: MinSizeRel
|
||||||
|
settings:
|
||||||
|
CONFIG: nxp_mr-canhubk3_default
|
||||||
|
nxp_mr-canhubk3_fmu:
|
||||||
|
short: nxp_mr-canhubk3_fmu
|
||||||
|
buildType: MinSizeRel
|
||||||
|
settings:
|
||||||
|
CONFIG: nxp_mr-canhubk3_fmu
|
||||||
raspberrypi_pico_default:
|
raspberrypi_pico_default:
|
||||||
short: raspberrypi_pico
|
short: raspberrypi_pico
|
||||||
buildType: MinSizeRel
|
buildType: MinSizeRel
|
||||||
|
|
|
@ -386,6 +386,9 @@ if(NOT NUTTX_DIR MATCHES "external")
|
||||||
elseif(CONFIG_ARCH_CHIP_MK66FN2M0VMD18)
|
elseif(CONFIG_ARCH_CHIP_MK66FN2M0VMD18)
|
||||||
set(DEBUG_DEVICE "MK66FN2M0xxx18")
|
set(DEBUG_DEVICE "MK66FN2M0xxx18")
|
||||||
set(DEBUG_SVD_FILE "MK66F18.svd")
|
set(DEBUG_SVD_FILE "MK66F18.svd")
|
||||||
|
elseif(CONFIG_ARCH_CHIP_S32K344)
|
||||||
|
set(DEBUG_DEVICE "S32K344")
|
||||||
|
set(DEBUG_SVD_FILE "S32K344_M7.svd")
|
||||||
elseif(CONFIG_ARCH_CHIP_STM32F100C8)
|
elseif(CONFIG_ARCH_CHIP_STM32F100C8)
|
||||||
set(DEBUG_DEVICE "STM32F100C8")
|
set(DEBUG_DEVICE "STM32F100C8")
|
||||||
set(DEBUG_SVD_FILE "STM32F100xx.svd")
|
set(DEBUG_SVD_FILE "STM32F100xx.svd")
|
||||||
|
@ -451,7 +454,14 @@ if(NOT NUTTX_DIR MATCHES "external")
|
||||||
file(GLOB_RECURSE DEBUG_SVD_FILE_PATH
|
file(GLOB_RECURSE DEBUG_SVD_FILE_PATH
|
||||||
LIST_DIRECTORIES false
|
LIST_DIRECTORIES false
|
||||||
${CMAKE_SOURCE_DIR}/../cmsis-svd/data/*/${DEBUG_SVD_FILE}
|
${CMAKE_SOURCE_DIR}/../cmsis-svd/data/*/${DEBUG_SVD_FILE}
|
||||||
|
${CMAKE_SOURCE_DIR}/../svd/${DEBUG_SVD_FILE}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
file(GLOB_RECURSE JLINK_RTOS_PATH
|
||||||
|
LIST_DIRECTORIES false
|
||||||
|
${CMAKE_SOURCE_DIR}/Tools/jlink-nuttx.so
|
||||||
|
)
|
||||||
|
|
||||||
if(DEBUG_SVD_FILE_PATH)
|
if(DEBUG_SVD_FILE_PATH)
|
||||||
message(STATUS "Found SVD: ${DEBUG_SVD_FILE_PATH}")
|
message(STATUS "Found SVD: ${DEBUG_SVD_FILE_PATH}")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
"name": "jlink (@PX4_BOARD@)",
|
"name": "jlink (@PX4_BOARD@)",
|
||||||
"device": "@DEBUG_DEVICE@",
|
"device": "@DEBUG_DEVICE@",
|
||||||
"svdFile": "@DEBUG_SVD_FILE_PATH@",
|
"svdFile": "@DEBUG_SVD_FILE_PATH@",
|
||||||
|
"rtos": "@JLINK_RTOS_PATH@",
|
||||||
"executable": "${command:cmake.launchTargetPath}",
|
"executable": "${command:cmake.launchTargetPath}",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"type": "cortex-debug",
|
"type": "cortex-debug",
|
||||||
|
|
Loading…
Reference in New Issue