One more step to fixing debug problem

This commit is contained in:
Miguel I. 2025-09-08 18:58:59 +02:00
parent 43106a7005
commit 7e404c3b19
6 changed files with 26 additions and 4 deletions

2
.gitignore vendored
View File

@ -41,10 +41,8 @@ modules/
*.config
*.conf.old
include/generated/
.zephyr
# IDE/editor files
.vscode/
.idea/
*.swp
*.swo

15
.vscode/launch.json vendored Normal file
View File

@ -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"
}
]
}

8
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,8 @@
{
"nrf-connect.debugging.bindings": {
"${workspaceFolder}/build_4/PHF000-Firmware": "Launch PHF000-Firmware"
},
"files.associations": {
"nrfx_temp.h": "c"
}
}

View File

@ -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)

View File

@ -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
#CONFIG_IBOOTLOADER_MCUBOOT=y

View File

@ -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