analogdevicesinc / MAX78xxx-RefDes

MAX78000 and MAX78002 Reference Designs
Other
16 stars 18 forks source link

openOCD error #27

Closed hyunjongL closed 2 years ago

hyunjongL commented 2 years ago

I got an error from openOCD and the cube does not respond. Below is the error. Is there a way to solve this?

xPack OpenOCD x86_64 Open On-Chip Debugger 0.11.0+dev (2022-03-25-19:34) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html DEPRECATED! use 'adapter srst delay' not 'adapter_nsrst_delay' Info : CMSIS-DAP: SWD supported Info : CMSIS-DAP: FW Version = 1.0 Info : CMSIS-DAP: Interface Initialised (SWD) Info : SWCLK/TCK = 0 SWDIO/TMS = 0 TDI = 0 TDO = 0 nTRST = 0 nRESET = 0 Info : CMSIS-DAP: Interface ready Info : clock speed 2000 kHz Info : SWD DPIDR 0x2ba01477 Info : [max32xxx.cpu] Cortex-M4 r0p1 processor detected Info : [max32xxx.cpu] target has 6 breakpoints, 4 watchpoints Info : [max32xxx.cpu] external reset detected Info : starting gdb server for max32xxx.cpu on 3333 Info : Listening on port 3333 for gdb connections target halted due to debug-request, current mode: Handler HardFault xPSR: 0x01000003 pc: 0x000001f2 msp: 0xffffffd8 Warn : Flash driver of max32xxx.flash does not support free_driver_priv() Warn : Flash driver of max32xxx.flash1 does not support free_driver_priv() xPack OpenOCD x86_64 Open On-Chip Debugger 0.11.0+dev (2022-03-25-19:34) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html DEPRECATED! use 'adapter srst delay' not 'adapter_nsrst_delay' Info : CMSIS-DAP: SWD supported Info : CMSIS-DAP: FW Version = 1.0 Info : CMSIS-DAP: Interface Initialised (SWD) Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 0 Info : CMSIS-DAP: Interface ready Info : clock speed 2000 kHz Info : SWD DPIDR 0x2ba01477 Info : [max32xxx.cpu] Cortex-M4 r0p1 processor detected Info : [max32xxx.cpu] target has 6 breakpoints, 4 watchpoints Info : starting gdb server for max32xxx.cpu on 3333 Info : Listening on port 3333 for gdb connections Warn : [max32xxx.cpu] Only resetting the Cortex-M core, use a reset-init event handler to reset any peripherals or configure hardware srst support. target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x000001b4 msp: 0x20008400 Programming Started Warn : Flash protection not supported on this device Warn : Flash protection not supported on this device Error: timeout waiting for algorithm, a target reset is recommended Error: error -902 executing max32xxx flash write algorithm Error: error writing to flash at address 0x10000000 at offset 0x00000000 Programming Failed shutdown command invoked Warn : Flash driver of max32xxx.flash does not support free_driver_priv() Warn : Flash driver of max32xxx.flash1 does not support free_driver_priv()

hyunjongL commented 2 years ago

I am trying a different one and still getting the below

Error: timeout waiting for algorithm, a target reset is recommended Error: error -902 executing max32xxx flash write algorithm Error: error writing to flash at address 0x10000000 at offset 0x00000000

hyunjongL commented 2 years ago

I recompiled and installed openocd from https://github.com/MaximIntegratedMicros/openocd and it worked