From 7e404c3b19c07c35d4c8c8ccc3e0d78ee0e39977 Mon Sep 17 00:00:00 2001 From: "Miguel I." Date: Mon, 8 Sep 2025 18:58:59 +0200 Subject: [PATCH] One more step to fixing debug problem --- .gitignore | 2 -- .vscode/launch.json | 15 +++++++++++++++ .vscode/settings.json | 8 ++++++++ boards/Mi_labs/phf000_board/board.cmake | 1 + prj.conf | 2 +- sysbuild/mcuboot.conf | 2 +- 6 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index a69f95e..3beb115 100644 --- a/.gitignore +++ b/.gitignore @@ -41,10 +41,8 @@ modules/ *.config *.conf.old include/generated/ -.zephyr # IDE/editor files -.vscode/ .idea/ *.swp *.swo diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..cd9356f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,15 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "nrf-connect", + "request": "launch", + "name": "Launch PHF000-Firmware", + "config": "${workspaceFolder}/build_4/PHF000-Firmware", + "runToEntryPoint": "main" + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..968ec96 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,8 @@ +{ + "nrf-connect.debugging.bindings": { + "${workspaceFolder}/build_4/PHF000-Firmware": "Launch PHF000-Firmware" + }, + "files.associations": { + "nrfx_temp.h": "c" + } +} \ No newline at end of file diff --git a/boards/Mi_labs/phf000_board/board.cmake b/boards/Mi_labs/phf000_board/board.cmake index 554146f..9de9922 100644 --- a/boards/Mi_labs/phf000_board/board.cmake +++ b/boards/Mi_labs/phf000_board/board.cmake @@ -1,6 +1,7 @@ # SPDX-License-Identifier: Apache-2.0 board_runner_args(jlink "--device=nRF52833_xxAA" "--speed=4000") +set(OPENOCD_NRF5_SUBFAMILY "nrf52") board_runner_args(pyocd "--target=nrf52833" "--frequency=4000000") include(${ZEPHYR_BASE}/boards/common/nrfutil.board.cmake) include(${ZEPHYR_BASE}/boards/common/nrfjprog.board.cmake) diff --git a/prj.conf b/prj.conf index faa0667..05893c5 100644 --- a/prj.conf +++ b/prj.conf @@ -21,4 +21,4 @@ CONFIG_USB_CDC_ACM=y CONFIG_USB_DEVICE_PRODUCT="Zephyr USB console sample" # STEP 1.1 - Enable MCUboot -CONFIG_BOOTLOADER_MCUBOOT=y \ No newline at end of file +#CONFIG_IBOOTLOADER_MCUBOOT=y \ No newline at end of file diff --git a/sysbuild/mcuboot.conf b/sysbuild/mcuboot.conf index 29e9089..b4f7303 100644 --- a/sysbuild/mcuboot.conf +++ b/sysbuild/mcuboot.conf @@ -7,7 +7,7 @@ CONFIG_MCUBOOT_DOWNGRADE_PREVENTION=y # STEP 3.1 - Increase flash space for MCUboot child image, to fit USB drivers CONFIG_PM_PARTITION_SIZE_MCUBOOT=0x10000 -CONFIG_MCUBOOT_GENERATE_UNSIGNED_IMAGE=y +#CONFIG_MCUBOOT_GENERATE_UNSIGNED_IMAGE=y CONFIG_MCUBOOT_SERIAL=y CONFIG_BOOT_SERIAL_CDC_ACM=y