I am learning about the MCXN947 and Zephyr development using MCUXpresso for VSCode. I have little experience with VS Code, MCUXpresso for VS Code, and Zephyr.
Here is my development setup:
I've installed the following components using MCUXpresso Installer v.24.12
Then I followed the excellent guide https://github.com/nxp-mcuxpresso/vscode-for-mcux/wiki/Training-Zephyr-Getting-Started-MCXN947
The board is connected via USB-C cable (J17 MCU-LINK) to the PC (USB Port) and detected as MCU-LINK FRDM-MCXN947
I am able to build both blinky and hello_world Zephyr sample apps. I cannot debug either.
I was able to flash and debug them before I installed the MCUXpresso SDK Developer. I am unsure whether this action was the cause of the failure or whether I did something else. I installed the SDK because I wanted the ability to use both the SDK and Zephyr development tools in order to learn this MCU.
Now, when I try to debug, I get popup message showing "Failed to launch GDB: Error finishing flash operation (from target-download)"
The message then asks to open launch.json
{
"configurations": [
{
"type": "mcuxpresso-debug",
"name": "Debug",
"request": "launch",
"cwd": "${workspaceFolder}",
"executable": "",
"stopAtSymbol": "main",
"probeSerialNumber": "HJ4V5VZN2TGEA",
"isAttach": false,
"probeType": "",
"skipBuildBeforeDebug": false,
"skipPreFlashActions": true,
"gdbInitCommands": [
"set remotetimeout 600",
"set debug-file-directory",
"set non-stop off"
],
"gdbServerConfigs": {
"linkserver": {},
"segger": {},
"pemicro": {}
},
"showDevDebugOutput": "none"
}
]
}
Here is the terminal after a pristine build
* Executing task: CMake: configure
Config task started...
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: /Users/clark/Zephyr_Projects/blinky
-- CMake version: 3.27.0
-- Found Python3: /Users/clark/.mcuxpressotools/.venv/bin/python (found suitable version "3.13.3", minimum required is "3.10") found components: Interpreter
-- Cache files will be written to: /Users/clark/Library/Caches/zephyr
-- Zephyr version: 4.1.0 (/Users/clark/Zephyr_Repository/zephyr_v4_1_0/zephyr)
-- Found west (found suitable version "1.3.0", minimum required is "0.14.0")
-- Board: frdm_mcxn947, qualifiers: mcxn947/cpu0/qspi
-- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK
-- Found host-tools: zephyr 0.17.0 (/Users/clark/zephyr-sdk-0.17.0)
-- Found toolchain: zephyr 0.17.0 (/Users/clark/zephyr-sdk-0.17.0)
-- Could NOT find Dtc (missing: DTC) (Required is at least version "1.4.6")
-- Found BOARD.dts: /Users/clark/Zephyr_Repository/zephyr_v4_1_0/zephyr/boards/nxp/frdm_mcxn947/frdm_mcxn947_mcxn947_cpu0_qspi.dts
-- Generated zephyr.dts: /Users/clark/Zephyr_Projects/blinky/build/zephyr/zephyr.dts
-- Generated pickled edt: /Users/clark/Zephyr_Projects/blinky/build/zephyr/edt.pickle
-- Generated devicetree_generated.h: /Users/clark/Zephyr_Projects/blinky/build/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: /Users/clark/Zephyr_Projects/blinky/build/zephyr/dts.cmake
Parsing /Users/clark/Zephyr_Repository/zephyr_v4_1_0/zephyr/Kconfig
Loaded configuration '/Users/clark/Zephyr_Repository/zephyr_v4_1_0/zephyr/boards/nxp/frdm_mcxn947/frdm_mcxn947_mcxn947_cpu0_qspi_defconfig'
Merged configuration '/Users/clark/Zephyr_Projects/blinky/prj.conf'
Configuration saved to '/Users/clark/Zephyr_Projects/blinky/build/zephyr/.config'
Kconfig header saved to '/Users/clark/Zephyr_Projects/blinky/build/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: /Users/clark/zephyr-sdk-0.17.0/arm-zephyr-eabi/arm-zephyr-eabi/bin/ld.bfd (found version "2.38")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/clark/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
Load components for MCXN947_cm33_core0:
driver_common component is included.
driver_reset component is included.
device_CMSIS component is included.
CMSIS_Include_core_cm component is included.
device_system component is included.
driver_lpflexcomm component is included.
driver_lpuart component is included.
driver_mcx_spc component is included.
driver_port component is included.
driver_cache_cache64 component is included.
-- Using ccache: /usr/local/bin/ccache
-- Configuring done (6.8s)
-- Generating done (0.2s)
CMake Warning:
Manually-specified variables were not used by the project:
APP_DIR
-- Build files have been written to: /Users/clark/Zephyr_Projects/blinky/build
Configure finished with return code 0
* Terminal will be reused by tasks, press any key to close it.
* Executing task: CMake: build
build task started....
/usr/local/bin/cmake --build /Users/clark/Zephyr_Projects/blinky/build --target all --
[1/144] Preparing syscall dependency handling
[2/144] Generating misc/generated/syscalls_subdirs.trigger
[3/144] Generating include/generated/zephyr/version.h
-- Zephyr version: 4.1.0 (/Users/clark/Zephyr_Repository/zephyr_v4_1_0/zephyr), build: v4.1.0
[4/144] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[5/144] Generating include/generated/device-api-sections.ld, include/generated/device-api-sections.cmake
[6/144] Generating include/generated/zephyr/syscall_dispatch.c, include/generated/zephyr/syscall_exports_llext.c, syscall_weakdefs_llext.c, include/generated/zephyr/syscall_list.h
[7/144] Generating include/generated/zephyr/driver-validation.h
[8/144] Generating include/generated/zephyr/kobj-types-enum.h, include/generated/zephyr/otype-to-str.h, include/generated/zephyr/otype-to-size.h
[9/144] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
[10/144] Generating include/generated/zephyr/offsets.h
[11/144] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj
[12/144] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[13/144] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[14/144] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[15/144] Building C object zephyr/CMakeFiles/zephyr.dir/lib/utils/dec.c.obj
[16/144] Building C object CMakeFiles/app.dir/src/main.c.obj
[17/144] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[18/144] Building C object zephyr/CMakeFiles/zephyr.dir/lib/utils/hex.c.obj
[19/144] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[20/144] Building C object zephyr/CMakeFiles/zephyr.dir/lib/heap/heap.c.obj
[21/144] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[22/144] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[23/144] Building C object zephyr/CMakeFiles/zephyr.dir/lib/utils/ring_buffer.c.obj
[24/144] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[25/144] Building C object zephyr/CMakeFiles/zephyr.dir/lib/utils/timeutil.c.obj
[26/144] Building C object zephyr/CMakeFiles/zephyr.dir/soc/nxp/mcx/mcxn/flash_clock_setup.c.obj
[27/144] Generating linker_zephyr_pre0.cmd
[28/144] Building ASM object zephyr/arch/arch/arm/core/CMakeFiles/arch__arm__core.dir/nmi_on_reset.S.obj
[29/144] Linking C static library zephyr/arch/common/libisr_tables.a
[30/144] Building C object zephyr/CMakeFiles/zephyr.dir/soc/nxp/mcx/mcxn/soc.c.obj
[31/144] Building ASM object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/fault_s.S.obj
[32/144] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/mem_mgmt/mem_attr.c.obj
[33/144] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj
[34/144] Building C object zephyr/arch/arch/arm/core/CMakeFiles/arch__arm__core.dir/nmi.c.obj
[35/144] Building C object zephyr/arch/arch/arm/core/CMakeFiles/arch__arm__core.dir/fatal.c.obj
[36/144] Building ASM object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/reset.S.obj
[37/144] Building C object zephyr/CMakeFiles/zephyr.dir/lib/utils/rb.c.obj
[38/144] Building ASM object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/vector_table.S.obj
[39/144] Building C object zephyr/CMakeFiles/zephyr.dir/lib/utils/bitarray.c.obj
[40/144] Building C object zephyr/arch/arch/arm/core/CMakeFiles/arch__arm__core.dir/tls.c.obj
[41/144] Building ASM object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/swap_helper.S.obj
[42/144] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/exc_exit.c.obj
[43/144] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/fpu.c.obj
[44/144] Building ASM object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/__aeabi_read_tp.S.obj
[45/144] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/scb.c.obj
[46/144] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/thread_abort.c.obj
[47/144] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/fault.c.obj
[48/144] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/prep_c.c.obj
[49/144] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/irq_init.c.obj
[50/144] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/irq_manage.c.obj
[51/144] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/thread.c.obj
[52/144] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/cpu_idle.c.obj
[53/144] Building C object zephyr/arch/arch/arm/core/cortex_m/CMakeFiles/arch__arm__core__cortex_m.dir/isr_wrapper.c.obj
[54/144] Building C object zephyr/arch/arch/arm/core/mpu/CMakeFiles/arch__arm__core__mpu.dir/arm_mpu_regions.c.obj
[55/144] Building C object zephyr/arch/arch/arm/core/mpu/CMakeFiles/arch__arm__core__mpu.dir/arm_core_mpu.c.obj
[56/144] Building C object zephyr/arch/arch/arm/core/cortex_m/cmse/CMakeFiles/arch__arm__core__cortex_m__cmse.dir/arm_core_cmse.c.obj
[57/144] Building C object zephyr/lib/libc/picolibc/CMakeFiles/lib__libc__picolibc.dir/assert.c.obj
[58/144] Building C object zephyr/lib/libc/picolibc/CMakeFiles/lib__libc__picolibc.dir/errno_wrap.c.obj
[59/144] Building C object zephyr/lib/libc/picolibc/CMakeFiles/lib__libc__picolibc.dir/chk_fail.c.obj
[60/144] Building C object zephyr/lib/libc/picolibc/CMakeFiles/lib__libc__picolibc.dir/exit.c.obj
[61/144] Building C object zephyr/lib/libc/picolibc/CMakeFiles/lib__libc__picolibc.dir/cbprintf.c.obj
[62/144] Building C object zephyr/arch/arch/arm/core/mpu/CMakeFiles/arch__arm__core__mpu.dir/arm_mpu.c.obj
[63/144] Building C object zephyr/lib/libc/picolibc/CMakeFiles/lib__libc__picolibc.dir/locks.c.obj
[64/144] Building C object zephyr/lib/libc/picolibc/CMakeFiles/lib__libc__picolibc.dir/stdio.c.obj
[65/144] Building C object zephyr/lib/libc/common/CMakeFiles/lib__libc__common.dir/source/stdlib/abort.c.obj
[66/144] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/common.c.obj
[67/144] Building C object zephyr/boards/nxp/frdm_mcxn947/CMakeFiles/boards__nxp__frdm_mcxn947.dir/board.c.obj
[68/144] Building C object zephyr/drivers/clock_control/CMakeFiles/drivers__clock_control.dir/clock_control_mcux_syscon.c.obj
[69/144] Building C object zephyr/lib/libc/common/CMakeFiles/lib__libc__common.dir/source/stdlib/malloc.c.obj
[70/144] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/uart_console.c.obj
[71/144] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/pinctrl_nxp_port.c.obj
[72/144] Building C object zephyr/drivers/mfd/CMakeFiles/drivers__mfd.dir/mfd_nxp_lp_flexcomm.c.obj
[73/144] Building C object modules/hal_nxp/hal_nxp/CMakeFiles/..__modules__hal__nxp.dir/mcux/mcux-sdk/devices/MCXN947/system_MCXN947_cm33_core0.c.obj
[74/144] Building C object modules/hal_nxp/hal_nxp/CMakeFiles/..__modules__hal__nxp.dir/mcux/mcux-sdk/devices/MCXN947/drivers/fsl_reset.c.obj
[75/144] Building C object modules/hal_nxp/hal_nxp/CMakeFiles/..__modules__hal__nxp.dir/mcux/mcux-sdk/devices/MCXN947/drivers/fsl_power.c.obj
[76/144] Building C object zephyr/drivers/gpio/CMakeFiles/drivers__gpio.dir/gpio_mcux.c.obj
[77/144] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[78/144] Building C object modules/hal_nxp/hal_nxp/CMakeFiles/..__modules__hal__nxp.dir/mcux/mcux-sdk/drivers/common/fsl_common_arm.c.obj
[79/144] Building C object modules/hal_nxp/hal_nxp/CMakeFiles/..__modules__hal__nxp.dir/mcux/mcux-sdk/drivers/common/fsl_common.c.obj
[80/144] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/cortex_m_systick.c.obj
[81/144] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_mcux_lpuart.c.obj
[82/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[83/144] Building C object modules/hal_nxp/hal_nxp/CMakeFiles/..__modules__hal__nxp.dir/mcux/mcux-sdk/drivers/lpflexcomm/fsl_lpflexcomm.c.obj
[84/144] Building C object modules/hal_nxp/hal_nxp/CMakeFiles/..__modules__hal__nxp.dir/mcux/mcux-sdk/drivers/cache/cache64/fsl_cache.c.obj
[85/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
[86/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[87/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/busy_wait.c.obj
[88/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init_static.c.obj
[89/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
[90/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[91/144] Building C object modules/hal_nxp/hal_nxp/CMakeFiles/..__modules__hal__nxp.dir/mcux/mcux-sdk/drivers/mcx_spc/fsl_spc.c.obj
[92/144] Building C object modules/hal_nxp/hal_nxp/CMakeFiles/..__modules__hal__nxp.dir/mcux/mcux-sdk/drivers/lpflexcomm/lpuart/fsl_lpuart.c.obj
[93/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
[94/144] Building C object modules/hal_nxp/hal_nxp/CMakeFiles/..__modules__hal__nxp.dir/mcux/mcux-sdk/devices/MCXN947/drivers/fsl_clock.c.obj
[95/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
[96/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
[97/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/float.c.obj
[98/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
[99/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/idle.c.obj
[100/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mailbox.c.obj
[101/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/msg_q.c.obj
[102/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mutex.c.obj
[103/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sem.c.obj
[104/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/system_work_q.c.obj
[105/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/stack.c.obj
[106/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/priority_queues.c.obj
[107/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/condvar.c.obj
[108/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/queue.c.obj
[109/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
[110/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/work.c.obj
[111/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/xip.c.obj
[112/144] Linking C static library app/libapp.a
[113/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timeslicing.c.obj
[114/144] Building C object zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj
[115/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mempool.c.obj
[116/144] Linking C static library zephyr/libzephyr.a
[117/144] Linking C static library zephyr/arch/common/libarch__common.a
[118/144] Linking C static library zephyr/arch/arch/arm/core/libarch__arm__core.a
[119/144] Linking C static library zephyr/arch/arch/arm/core/cortex_m/cmse/libarch__arm__core__cortex_m__cmse.a
[120/144] Linking C static library zephyr/arch/arch/arm/core/cortex_m/libarch__arm__core__cortex_m.a
[121/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/pipe.c.obj
[122/144] Linking C static library zephyr/arch/arch/arm/core/mpu/libarch__arm__core__mpu.a
[123/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timer.c.obj
[124/144] Linking C static library zephyr/lib/libc/common/liblib__libc__common.a
[125/144] Linking C static library zephyr/lib/libc/picolibc/liblib__libc__picolibc.a
[126/144] Linking C static library zephyr/boards/nxp/frdm_mcxn947/libboards__nxp__frdm_mcxn947.a
[127/144] Linking C static library zephyr/drivers/clock_control/libdrivers__clock_control.a
[128/144] Linking C static library zephyr/drivers/console/libdrivers__console.a
[129/144] Linking C static library zephyr/drivers/gpio/libdrivers__gpio.a
[130/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/dynamic_disabled.c.obj
[131/144] Linking C static library zephyr/drivers/serial/libdrivers__serial.a
[132/144] Linking C static library zephyr/drivers/mfd/libdrivers__mfd.a
[133/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timeout.c.obj
[134/144] Linking C static library zephyr/drivers/pinctrl/libdrivers__pinctrl.a
[135/144] Linking C static library zephyr/drivers/timer/libdrivers__timer.a
[136/144] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sched.c.obj
[137/144] Linking C static library modules/hal_nxp/hal_nxp/lib..__modules__hal__nxp.a
[138/144] Linking C static library zephyr/kernel/libkernel.a
[139/144] Linking C executable zephyr/zephyr_pre0.elf
[140/144] Generating linker.cmd
[141/144] Generating isr_tables.c, isr_tables_vt.ld, isr_tables_swi.ld
[142/144] Building C object zephyr/CMakeFiles/zephyr_final.dir/misc/empty_file.c.obj
[143/144] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
[144/144] Linking C executable zephyr/zephyr.elf
Memory region Used Size Region Size %age Used
FLASH: 24250 B 8 MB 0.29%
RAM: 4408 B 320 KB 1.35%
SRAM1: 0 GB 96 KB 0.00%
IDT_LIST: 0 GB 32 KB 0.00%
Generating files from /Users/clark/Zephyr_Projects/blinky/build/zephyr/zephyr.elf for board: frdm_mcxn947
build finished successfully.
* Terminal will be reused by tasks, press any key to close it.
Here is the terminal after attempting to debug. The app was already built.
* Executing task: CMake: build
build task started....
/usr/local/bin/cmake --build /Users/clark/Zephyr_Projects/blinky/build --target all --
ninja: no work to do.
build finished successfully.
* Terminal will be reused by tasks, press any key to close it.
Here is the Debug Console after attempting to build.
Launching GDB: /Users/clark/zephyr-sdk-0.17.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb -q --interpreter=mi2
IMPORTANT: Set "showDevDebugOutput": "raw" in "launch.json" to see all GDB transactions.
Launching GDB server: /Applications/LinkServer_25.3.31/LinkServer -l5 gdbserver "MCXN947:FRDM-MCXN947" --probe HJ4V5VZN2TGEA --gdb-port 2348 --no-boot --redlink-port 2440 --core cm33_core0 --override /device/memory/1/flash-driver=MCXN9xx_S.cfx --override /device/memory/1/location=0x10000000 --override "/device/memory/-={\\\"location\\\":\\\"0x30000000\\\", \\\"size\\\":\\\"0x00060000\\\",\\\"type\\\":\\\"RAM\\\"}" --override "/device/memory/-={\\\"location\\\":\\\"0x30060000\\\", \\\"size\\\":\\\"0x00008000\\\",\\\"type\\\":\\\"RAM\\\"}" --override "/device/memory/-={\\\"location\\\":\\\"0x50000000\\\", \\\"size\\\":\\\"0x00140000\\\",\\\"type\\\":\\\"RAM\\\"}"
Please check TERMINAL tab (GDB server console) for output from "/Applications/LinkServer_25.3.31/LinkServer"
Output radix now set to decimal 10, hex a, octal 12.
Input radix now set to decimal 10, hex a, octal 12.
0x1302eec8 in ?? ()
Program stopped, probably due to a reset and/or halt issued by the debugger.
Error 103: Failed to launch GDB: Error finishing flash operation (from target-download)
At times I have seen a lot more information scrolling by in the Debug Console. At the end it is replaced by the above messages. I do not know why the other massive amount of information sometimes appears nor do I know how to capture it.
I can successfully Erase Flash. That does not let me debug.
I've reinstalled the newest VS Code, MCUXpresso extension but these actions have not helped. I have not downloaded new repos because I have a slow internet connection and it takes a very long time to do that.
Please advise me how to proceed. As I am pretty new with the MCU, VSCode, and Zephyr. I may need more detailed instructions. HA!
I have a couple more minor issues:
Every time I startup VSCode and the extension, it forgets my project list. I then have to reimport them. Is there a way to cause VSCode and the extension to remember them. I have a suspicion I need to do something with workspace files but I don't know what.
How can I delete the Segger debug probe. I think LinkServer is all I need.
Solved! Go to Solution.
I have reinstalled vs code, MCUxpresso extension, and the repos. It is now working well.
I have reinstalled vs code, MCUxpresso extension, and the repos. It is now working well.
Anyone have any ideas?
Out of desperation Im reinstalling on another computer to see if the problem goes away.