I bought a MAX32655FTHR board last year, but it always hung(loop) on the NVIC_EnableIRQ function of the Cordio library, so I gave up and bought a new MAX32655FTHR board in January 2025.
To check the Bluetooth function of the new board, I tried the MSDK Bluetooth sample software BLE_fit using CodefusionStudio v1.0.0 and confirmed that the sample worked.
However, another issue occurred. After flashing BLE_fit, an error occurred in GDB (OpenOCD) and the FTHR board could not be connected. Erase flash was also not possible, and I could not write other samples.
If you have any advice on how to recover, please let me know.
Please refer to the terminal message and debug console below.
Waiting for gdb server to start...[2025-02-10T07:12:58.904Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions. "E:/Application/cfs/1.0.0/Tools/openocd/bin/openocd" -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s "{config:cfs.openocd.path}/share/openocd/scripts" -f "c:/Users/11731/.vscode/extensions/marus25.cortex-debug-1.12.1/support/openocd-helpers.tcl" -f interface/cmsis-dap.cfg -f target/max32655.cfg Open On-Chip Debugger (Analog Devices 0.12.0-1.1.1) OpenOCD 0.12.0 (2024-08-27-17:29) Licensed under GNU GPL v2 Report bugs to <processor.tools.support@analog.com> CDLiveWatchSetup Info : Listening on port 50001 for tcl connections Info : Listening on port 50002 for telnet connections Info : CMSIS-DAP: SWD supported Info : CMSIS-DAP: Atomic commands supported Info : CMSIS-DAP: Test domain timer supported Info : CMSIS-DAP: FW Version = 2.0.0 Info : CMSIS-DAP: Serial# = 04231702d1a9cac500000000000000000000000097969906 Info : CMSIS-DAP: Interface Initialised (SWD) Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1 Info : CMSIS-DAP: Interface ready Info : clock speed 2000 kHz Info : SWD DPIDR 0x2ba01477 Info : SWD DPIDR 0x2ba01477 Warn : Connecting DP: stalled AP operation, issuing ABORT Error: Failed to read memory and, additionally, failed to find out where Error: [max32xxx.cpu] Examination failed Warn : target max32xxx.cpu examination failed Info : starting gdb server for max32xxx.cpu on 50000 Info : Listening on port 50000 for gdb connections Info : accepting 'gdb' connection on tcp/50000 Error: Target not examined yet Error executing event gdb-attach on target max32xxx.cpu: Error: Target not examined yet Error: Target not examined yet Error: Target max32xxx.cpu not examined yet, refuse gdb connection 1! Error: attempted 'gdb' connection rejected [2025-02-10T07:13:03.958Z] SERVER CONSOLE DEBUG: onBackendConnect: gdb-server session closed GDB server session ended. This terminal will be reused, waiting for next session to start...
Cortex-Debug: VSCode debugger extension version 1.12.1 git(652d042). Usage info: https://github.com/Marus/cortex-debug#usage Reading symbols from E:/Application/cfs/1.0.0/Tools/gcc/arm-none-eabi/bin/arm-none-eabi-objdump.exe --syms -C -h -w E:/Application/cfs/1.0.0/SDK/MAX/Examples/MAX32655/Bluetooth/RF_Test/build/RF_Test.elf Reading symbols from e:/application/cfs/1.0.0/tools/gcc/arm-none-eabi/bin/arm-none-eabi-nm.exe --defined-only -S -l -C -p E:/Application/cfs/1.0.0/SDK/MAX/Examples/MAX32655/Bluetooth/RF_Test/build/RF_Test.elf Launching GDB: "E:\\Application\\cfs\\1.0.0\\Tools\\gcc\\arm-none-eabi\\bin\\arm-none-eabi-gdb.exe" -q --interpreter=mi2 IMPORTANT: Set "showDevDebugOutput": "raw" in "launch.json" to see verbose GDB transactions here. Very helpful to debug issues or report problems Launching gdb-server: "E:/Application/cfs/1.0.0/Tools/openocd/bin/openocd" -c "gdb_port 50000" -c "tcl_port 50001" -c "telnet_port 50002" -s "{config:cfs.openocd.path}/share/openocd/scripts" -f "c:/Users/11731/.vscode/extensions/marus25.cortex-debug-1.12.1/support/openocd-helpers.tcl" -f interface/cmsis-dap.cfg -f target/max32655.cfg Please check TERMINAL tab (gdb-server) for output from E:/Application/cfs/1.0.0/Tools/openocd/bin/openocd Finished reading symbols from objdump: Time: 118 ms Output radix now set to decimal 10, hex a, octal 12. Input radix now set to decimal 10, hex a, octal 12. Finished reading symbols from nm: Time: 316 ms Failed to launch GDB: Remote connection closed (from target-select extended-remote localhost:50000)