Add S32K3 vscode support add Jlink rtos vscode support

This commit is contained in:
Peter van der Perk 2023-01-09 16:09:47 +01:00 committed by Daniel Agar
parent 16d6e699bb
commit 8b5f35b3fe
3 changed files with 21 additions and 0 deletions

View File

@ -266,6 +266,16 @@ CONFIG:
buildType: MinSizeRel
settings:
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:
short: raspberrypi_pico
buildType: MinSizeRel

View File

@ -386,6 +386,9 @@ if(NOT NUTTX_DIR MATCHES "external")
elseif(CONFIG_ARCH_CHIP_MK66FN2M0VMD18)
set(DEBUG_DEVICE "MK66FN2M0xxx18")
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)
set(DEBUG_DEVICE "STM32F100C8")
set(DEBUG_SVD_FILE "STM32F100xx.svd")
@ -451,7 +454,14 @@ if(NOT NUTTX_DIR MATCHES "external")
file(GLOB_RECURSE DEBUG_SVD_FILE_PATH
LIST_DIRECTORIES false
${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)
message(STATUS "Found SVD: ${DEBUG_SVD_FILE_PATH}")
endif()

View File

@ -5,6 +5,7 @@
"name": "jlink (@PX4_BOARD@)",
"device": "@DEBUG_DEVICE@",
"svdFile": "@DEBUG_SVD_FILE_PATH@",
"rtos": "@JLINK_RTOS_PATH@",
"executable": "${command:cmake.launchTargetPath}",
"request": "launch",
"type": "cortex-debug",