Problema para debuggear la EDU-CIAA

228 views
Skip to first unread message

Miguel Perez Andrade

unread,
Oct 14, 2019, 1:17:39 PM10/14/19
to Embebidos32
Buenas!

Estoy tratando de debuggear la EDU-CIAA, en LPCXpresso con OpenOCD y GDB, en una máquina con Fedora 30. Cuando trato de debuggear, me figura la sesión terminada con el siguiente mensaje:

Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
adapter speed: 2000 kHz
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
none separate
cortex_m reset_config vectreset
Started by GNU ARM Eclipse
Info : clock speed 2000 kHz
Info : JTAG tap: lpc4337.m4 tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x4)
Info : JTAG tap: lpc4337.m0 tap/device found: 0x0ba01477 (mfg: 0x23b (ARM Ltd.), part: 0xba01, ver: 0x0)
Info : lpc4337.m4: hardware has 6 breakpoints, 4 watchpoints
Info : lpc4337.m0: hardware has 2 breakpoints, 1 watchpoints
Info : accepting 'gdb' connection on tcp/3333
undefined debug reason 7 - target needs reset
Info : JTAG tap: lpc4337.m4 tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x4)
Info : JTAG tap: lpc4337.m0 tap/device found: 0x0ba01477 (mfg: 0x23b (ARM Ltd.), part: 0xba01, ver: 0x0)
Warn : Only resetting the Cortex-M core, use a reset-init event handler to reset any peripherals or configure hardware srst support.
Warn : 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: 0x1a00042c msp: 0x10007fe0
Error: timed out while waiting for target halted
free(): double free detected in tcache 2

El programa funciona, es un ejemplo que me dieron en una materia, y la placa la probé en otra computadora y se podía debuggear. Alguna idea de que puede estar pasando?

Saludos!

Miguel

Eric Pernia

unread,
Oct 24, 2019, 10:49:51 PM10/24/19
to embebidos32@
Buenas noches, contanos de que programa se trata y qué firmware estas usando

--
-- Recibiste este mensaje porque estás suscripto al Grupo Google Embebidos32. Para postear en este grupo, escribe un email a embeb...@googlegroups.com. Para des-suscribirte, envía un email a embebidos32...@googlegroups.com. Para más opciones, visita el sitio del grupo en https://groups.google.com/d/forum/embebidos32?hl=es
---
Has recibido este mensaje porque estás suscrito al grupo "Embebidos32" de Grupos de Google.
Para cancelar la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a embebidos32...@googlegroups.com.
Para ver esta conversación en el sitio web, visita https://groups.google.com/d/msgid/embebidos32/e0afdfe5-a40a-4e22-be7a-2e74ba85985d%40googlegroups.com.

Miguel Perez Andrade

unread,
Oct 24, 2019, 11:19:45 PM10/24/19
to embeb...@googlegroups.com
Hola Eric, gracias por responder

Estoy usando el firmware v2, y el proyecto es gpio_02_blinky. Adjunto el archivo project que estoy usando, por si sirve de algo

################################################################################
#                            DO NOT EDIT THIS FILE!                            #
#           Copy project.mk.template to project.mk and use project.mk.         #
################################################################################
# Copyright 2016, Pablo Ridolfi
# Copyright 2017, Eric Pernia
# All rights reserved.
#
# This file is part of Workspace.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
#    this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice,
#    this list of conditions and the following disclaimer in the documentation
#    and/or other materials provided with the distribution.
#
# 3. Neither the name of the copyright holder nor the names of its
#    contributors may be used to endorse or promote products derived from this
#    software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

#-------------------------------------------------------------------------------
# current project
#-------------------------------------------------------------------------------

#------------ examples -----------------------------------------

#PROJECT = examples/blinky
#PROJECT = examples/blinky_rit
#PROJECT = examples/adc_fir_dac
#PROJECT = examples/freertos_blinky
#PROJECT = examples/statechart

#------------ sapi_examples ------------------------------------

#------------ Bare-metal examples ------------

#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/gpio/gpio_01_switches_leds
PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/gpio/gpio_02_blinky
#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/gpio/gpio_03_blinky_switch
#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/gpio/gpio_04_led_sequences

#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/keypad_7segment_01
#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/lcd_01

#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/uart/uart_01_echo
#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/uart/uart_02_receive_string_blocking
#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/uart/uart_03_receive_string

#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/stdio_01_printf_sprintf

#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/adc_dac_01

#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/cycles_counter_01
#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/tick_01_tickHook
#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/rtc_01

#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/pwm/pwm_01
#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/pwm/pwm_02_rgb_controller_uart
#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/servo_01

#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/magnetometers/i2c_01_hmc5883l
#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/magnetometers/i2c_02_qmc5883l

#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/temperature_humidity_sensors/dht11_01

#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/ultrasonicSensors/ultrasonicSensor_HCSR04_01

#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/spi_01_sdCard_fatFileSystem

#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/wifi_esp01_esp8266/01_uart_bridge
#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/wifi_esp01_esp8266/02_http_server
#PROJECT = sapi_examples/edu-ciaa-nxp/bare_metal/wifi_esp01_esp8266/03_thingspeak

#PROJECT = sapi_examples/edu-ciaa-nxp/statecharts/statecharts_bare_metal

#------------ Operating systems examples ------------

#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/coperative/scheduler_01_seos
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/coperative/scheduler_02_seos_background_foreground
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/coperative/seos_Pont2014_01
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/coperative/seos_pont_02_microwave

#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeOSEK/freeOSEK_01_blinky

#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_01_blinky
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_02_Queue
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_03_ChanFatFS_SPI_SdCard_ADC_log

#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example001
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example002
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example003
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example004
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example005
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example006
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example007
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example008
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example009
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example010
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example011
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example012
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example013
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example014
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example015
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example016
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example017
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example018
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example019
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example020
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example021
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example022
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example023
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example024
#PROJECT = sapi_examples/edu-ciaa-nxp/operating_systems/freeRTOS/freeRTOS_book/Example025

#-------------------------------------------------------------------------------
# current target
#-------------------------------------------------------------------------------

TARGET = lpc4337_m4
#TARGET = lpc4337_m0
#TARGET = lpc1769
#TARGET = lpc54102_m4
#TARGET = lpc54102_m0
#TARGET = lpc11u68

#-------------------------------------------------------------------------------
# current board (optional)
#-------------------------------------------------------------------------------

BOARD = edu_ciaa_nxp
#BOARD = ciaa_nxp
#BOARD = lpcxpresso1769

#-------------------------------------------------------------------------------

# Object file for multicore applications (only needed by lpc54102_m4 target if
# you need to add an lpc54102_m0 program). For example:
#SLAVE_OBJ_FILE = out/lpc54102_m0/blinky_m0.axf.o

#-------------------------------------------------------------------------------

Eric Pernia

unread,
Oct 26, 2019, 3:43:24 PM10/26/19
to embebidos32@
Te recomiendo pasarte a Firmware_v3:


Habria que revisar el cable USB si está bien y que esté bien conectada al puerto de Debug,

También en cuanto al software ahora está todo en un zip aquí:


Podés porbar bajarte ese zip y ver si con esas verisones funciona.

Cualquier cosa avisanos.

Saludos,
Eric.



Carlos Ignacio Mancón

unread,
Aug 20, 2021, 7:05:14 AM8/20/21
to Embebidos32
Buenas!

Los últimos días estuve experimentando el mismo problema (  free(): double free detected in tcache 2   ) en una máquina virtual limpia con Ubuntu 20.

La herramientas eran las instaladas mediante APT, así que era el OpenOCD v0.10.0 y el gdb-multiarch v9.2

Probé con varios firmwares: v1, v3 y proyectos particulares que sabía que en algún momento había compilado y debuggeado correctamente, pero el error siempre era el mismo.

También utilicé distintos IDEs: eclipce C/C++ general, eclipse para embedded, VS Code y MCUXpresso. Siempre el mismo resultado.

Finalmente intenté encontrar el problema desde la terminal: individualmente tanto el OpenOCD como el gdb "funcionaban normalmente" hasta que ejecutaba el "target remote localhost:3333". Al conectar el gdb al OpenOCD este último mostraba ese error y se cerraba. Sospeché que al OpenOCD "no le gustaba" lo que el gdb le comunicaba sobre el binario a debuggear.

Por esto último probé de usar otra versión de OpenOCD. Aprovechando que estaba en Ubuntu, cloné https://github.com/openocd-org/openocd.git y compilé la versión v0.11.0.

Al usar esta versión, dejó de arrojar ese error y pude debuggear.

Concluí en ese punto, pensando que es un problema con esa versión en particular de OpenOCD (no sé si llamarlo bug). Eso explicaría que el problema no se produjera en otras computadoras ya que pudieran estar corriendo otra versión o el package de otra distro pudiera no tener el mismo error.

Bueno, habiendo encontrado algo al respecto, no quería que este hilo quedar sin actualizar. Tal vez alguien más pueda confirmar si esto soluciona el problema.

Saludos!
Carlos

Mariano Llamedo Soria

unread,
Jun 17, 2022, 7:28:08 AM6/17/22
to Embebidos32
Buenas a toda la comunidad! Como estoy arrancando a familiarizarme con la EDU-CIAA-NXP y me encontré con el error que se describe en este hilo, dejo una pequeña actualización. Sin dejar de agradecer a Carlos Mancón, dado que en parte me ayudó a resolver mi problema.

Mi entorno es parecido al de Carlos:
+ Ubuntu 20.04
+ MCUxpresso

Comencé con la wiki del proyecto, que estaba muy clara:


los paquetes actualizados a los repos actuales es (ligeramente diferente):

sudo apt-get install php7.4-cli libftdi-dev libusb-1.0-0-dev git git-gui libgtk2.0-0:i386 libxtst6:i386 libpangox-1.0-0:i386 libpangoxft-1.0-0:i386 libidn11:i386 libglu1-mesa:i386 libncurses5:i386 libudev1:i386 libusb-1.0:i386 libusb-0.1:i386 gtk2-engines-murrine:i386 libnss3:i386 libwebkit2gtk-4.0-37 libwebkit2gtk-4.0-37-gtk2 gtkterm

el resto seguí los pasos de la wiki. También instalé el openOCD desde apt

sudo apt install openocd

En Ubuntu 20 está compilada la versión 0.10, a diferencia de la 0.9 que se indica en la wiki.

Luego, siguiendo los pasos indicados, hasta que al final el eclipse no pudo instalar el plugin de openOCD, y como no pude resolver ese tema, me tiré a adaptar el MCUxpresso a la EDU. En este punto encontré el mismo error que me trajo a este hilo. Lo extraño era que compilar y hacer el make download desde la consola y bajar el blinking a la EDU, pero no podía hacerlo desde el MCUxpresso.

El comentario de Carlos de actualizar el openOCD parecía prometedor y decidí compilar el fuente, sin mayores dificultades desde el github del proyecto. Los problemas volvieron al intentar hacer el make download nuevamente. Me encontré con errores en el archivo ciaa-nxp.cfg, según indicaba el error en la consola:

[...]
DEPRECATED! use 'adapter driver' not 'interface'
DEPRECATED! use 'ftdi vid_pid' not 'ftdi_vid_pid'
DEPRECATED! use 'ftdi channel' not 'ftdi_channel'
DEPRECATED! use 'ftdi layout_init' not 'ftdi_layout_init'
DEPRECATED! use 'adapter speed' not 'adapter_khz'
[...]

. Aparentemente era cambiar algunas pocas etiquetas que habían cambiado de versión a versión. Eso siguiendo las indicaciones de los errores se puede hacer sin problemas. Lo complicado fue con el siguiente error:

./modules/tools/openocd/cfg/cortexM4/lpc43xx/lpc4337/ciaa-nxp.cfg:121: Error: target requires -dap parameter instead of -chain-position!
in procedure 'script'
at file "embedded:startup.tcl", line 26
at file "./modules/tools/openocd/cfg/cortexM4/lpc43xx/lpc4337/ciaa-nxp.cfg", line 121

que tuve que seguir algunas indicaciones de esta página https://visualgdb.com/support/chainposition/ y un poco de intuición. Como resultado, cambié bastante el ciaa-nxp.cfg y dejo mi versión adjunta por si alguien la necesita. Como hice cambios sin entender completamente, dejo esta advertencia. No estaría mal que Juan Cecconi o algún otro crack le pegue una mirada. Me llama la atención que Carlos no haya reportado estos errores ya que también usó la versión 0.11. Dejo esta duda, sin embargo con esta configuración funciona desde el MCUxpresso, aunque no desde la consola ... al menos no como antes con el make download:

Starting OpenOCD and downloading...
 
openocd -f ./modules/tools/openocd/cfg/cortexM4/lpc43xx/lpc4337/ciaa-nxp.cfg -c "init" -c "halt 0" -c "flash write_image erase unlock ./out/bin/blinking.bin 0x1A000000 bin" -c "reset run" -c "shutdown"
Open On-Chip Debugger 0.11.0+dev-g7033850 (2022-06-16-01:23)

Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Using Edu-CIAA-NXP, qspi flash is not present!

Info : clock speed 2000 kHz
Info : JTAG tap: lpc4337.m4 tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd), part: 0xba00, ver: 0x4)
Info : JTAG tap: lpc4337.m0 tap/device found: 0x0ba01477 (mfg: 0x23b (ARM Ltd), part: 0xba01, ver: 0x0)
Info : [lpc4337.m4] Cortex-M4 r0p1 processor detected
Info : [lpc4337.m4] target has 6 breakpoints, 4 watchpoints
Info : [lpc4337.m0] Cortex-M0 r0p0 processor detected
Info : [lpc4337.m0] target has 2 breakpoints, 1 watchpoints
Info : [lpc4337.m4] external reset detected
Info : [lpc4337.m0] external reset detected
Info : starting gdb server for lpc4337.m4 on 3333
Info : Listening on port 3333 for gdb connections
Info : starting gdb server for lpc4337.m0 on 3334
Info : Listening on port 3334 for gdb connections

target halted due to debug-request, current mode: Thread
xPSR: 0x61000000 pc: 0x1a003bf0 psp: 0x1000363c
Error: Flash protection is not supported.
auto erase enabled
auto unlock enabled
make: *** [Makefile:741: download] Error 1


Desde el MCUxpresso, anda perfectamente, esto tira en la consola y se posiciona el debugger en la primera instrucción listo para arrancar.

Open On-Chip Debugger 0.11.0+dev-g7033850 (2022-06-16-01:23)

Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
Using Edu-CIAA-NXP, qspi flash is not present!
Started by GNU MCU Eclipse
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections

Info : clock speed 2000 kHz
Info : JTAG tap: lpc4337.m4 tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd), part: 0xba00, ver: 0x4)
Info : JTAG tap: lpc4337.m0 tap/device found: 0x0ba01477 (mfg: 0x23b (ARM Ltd), part: 0xba01, ver: 0x0)
Info : [lpc4337.m4] Cortex-M4 r0p1 processor detected
Info : [lpc4337.m4] target has 6 breakpoints, 4 watchpoints
Info : [lpc4337.m0] Cortex-M0 r0p0 processor detected
Info : [lpc4337.m0] target has 2 breakpoints, 1 watchpoints
Info : [lpc4337.m0] external reset detected
Info : starting gdb server for lpc4337.m4 on 3333
Info : Listening on port 3333 for gdb connections
Info : starting gdb server for lpc4337.m0 on 3334
Info : Listening on port 3334 for gdb connections

Info : accepting 'gdb' connection on tcp/3333
Reset Halt, due to gdb attached...!
Info : JTAG tap: lpc4337.m4 tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd), part: 0xba00, ver: 0x4)
Info : JTAG tap: lpc4337.m0 tap/device found: 0x0ba01477 (mfg: 0x23b (ARM Ltd), part: 0xba01, ver: 0x0)
Warn : [lpc4337.m4] Only resetting the Cortex-M core, use a reset-init event handler to reset any peripherals or configure hardware srst support.
Warn : [lpc4337.m0] VECTRESET is not supported on this Cortex-M core, using SYSRESETREQ instead.
Warn : [lpc4337.m0] Set 'cortex_m reset_config sysresetreq'.

target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x1a002624 msp: 0x10008000

Error: timed out while waiting for target halted
Error executing event gdb-attach on target lpc4337.m4:
TARGET: lpc4337.m0 - Not halted
Info : New GDB Connection: 1, Target lpc4337.m4, state: halted
Warn : Prefer GDB command "target extended-remote :3333" instead of "target remote :3333"
Info : JTAG tap: lpc4337.m4 tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd), part: 0xba00, ver: 0x4)
Info : JTAG tap: lpc4337.m0 tap/device found: 0x0ba01477 (mfg: 0x23b (ARM Ltd), part: 0xba01, ver: 0x0)
Warn : [lpc4337.m4] Only resetting the Cortex-M core, use a reset-init event handler to reset any peripherals or configure hardware srst support.
Warn : [lpc4337.m0] VECTRESET is not supported on this Cortex-M core, using SYSRESETREQ instead.
Warn : [lpc4337.m0] Set 'cortex_m reset_config sysresetreq'.

target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x1a002624 msp: 0x10008000

Error: timed out while waiting for target halted
Info : JTAG tap: lpc4337.m4 tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd), part: 0xba00, ver: 0x4)
Info : JTAG tap: lpc4337.m0 tap/device found: 0x0ba01477 (mfg: 0x23b (ARM Ltd), part: 0xba01, ver: 0x0)
Warn : [lpc4337.m4] Only resetting the Cortex-M core, use a reset-init event handler to reset any peripherals or configure hardware srst support.
Warn : [lpc4337.m0] VECTRESET is not supported on this Cortex-M core, using SYSRESETREQ instead.
Warn : [lpc4337.m0] Set 'cortex_m reset_config sysresetreq'.

target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x1a002624 msp: 0x10008000, semihosting

Error: timed out while waiting for target halted
Error executing event gdb-flash-erase-start on target lpc4337.m4:
TARGET: lpc4337.m0 - Not halted
Warn : Boot verification checksum in image (0x00000000) to be written to flash is different from calculated vector checksum (0x53ff4fc2).
Warn : OpenOCD will write the correct checksum. To remove this warning modify build tools on developer PC to inject correct LPC vector checksum.
Info : JTAG tap: lpc4337.m4 tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd), part: 0xba00, ver: 0x4)
Info : JTAG tap: lpc4337.m0 tap/device found: 0x0ba01477 (mfg: 0x23b (ARM Ltd), part: 0xba01, ver: 0x0)
Warn : [lpc4337.m4] Only resetting the Cortex-M core, use a reset-init event handler to reset any peripherals or configure hardware srst support.
Warn : [lpc4337.m0] VECTRESET is not supported on this Cortex-M core, using SYSRESETREQ instead.
Warn : [lpc4337.m0] Set 'cortex_m reset_config sysresetreq'.

target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x1a002624 msp: 0x10008000, semihosting

Error: timed out while waiting for target halted
Error executing event gdb-flash-write-end on target lpc4337.m4:
TARGET: lpc4337.m0 - Not halted
Info : JTAG tap: lpc4337.m4 tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd), part: 0xba00, ver: 0x4)
Info : JTAG tap: lpc4337.m0 tap/device found: 0x0ba01477 (mfg: 0x23b (ARM Ltd), part: 0xba01, ver: 0x0)
Warn : [lpc4337.m4] Only resetting the Cortex-M core, use a reset-init event handler to reset any peripherals or configure hardware srst support.
Warn : [lpc4337.m0] VECTRESET is not supported on this Cortex-M core, using SYSRESETREQ instead.
Warn : [lpc4337.m0] Set 'cortex_m reset_config sysresetreq'.

target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x1a002624 msp: 0x10008000, semihosting

Error: timed out while waiting for target halted
Info : Halt timed out, wake up GDB.

Espero que alguien pueda poner algo de luz en esto, y ojalá sirva para alguien. Un saludo!

M.
ciaa-nxp.cfg
Reply all
Reply to author
Forward
0 new messages