cpu/esp32: Reset when starting debugging
To avoid 'Target not examined yet' error
This commit is contained in:
parent
4911066fb0
commit
cbfe502cc6
@ -90,4 +90,6 @@ ifneq (,$(filter esp_jtag,$(USEMODULE)))
|
|||||||
IMAGE_OFFSET = 0x10000
|
IMAGE_OFFSET = 0x10000
|
||||||
# Flash checksumming not supported on xtensa
|
# Flash checksumming not supported on xtensa
|
||||||
OPENOCD_SKIP_VERIFY = yes
|
OPENOCD_SKIP_VERIFY = yes
|
||||||
|
# Without resets debug target fails with 'Target not examined yet'
|
||||||
|
OPENOCD_DBG_EXTRA_CMD += -c 'reset halt'
|
||||||
endif
|
endif
|
||||||
|
|||||||
@ -49,7 +49,14 @@ ifneq (,$(OPENOCD_CMD_RESET_RUN))
|
|||||||
$(call target-export-variables,reset,OPENOCD_CMD_RESET_RUN)
|
$(call target-export-variables,reset,OPENOCD_CMD_RESET_RUN)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
OPENOCD_FLASH_TARGETS = flash flash-only
|
OPENOCD_DEBUG_TARGETS = debug debugr debug-server
|
||||||
|
|
||||||
|
ifneq (,$(OPENOCD_DBG_EXTRA_CMD))
|
||||||
|
# Export OPENOCD_DBG_EXTRA_CMD only to the flash/flash-only target
|
||||||
|
$(call target-export-variables,$(OPENOCD_DEBUG_TARGETS),OPENOCD_DBG_EXTRA_CMD)
|
||||||
|
endif
|
||||||
|
|
||||||
|
OPENOCD_FLASH_TARGETS = flash flash-only flashr
|
||||||
|
|
||||||
ifneq (,$(IMAGE_OFFSET))
|
ifneq (,$(IMAGE_OFFSET))
|
||||||
# Export IMAGE_OFFSET only to the flash/flash-only target
|
# Export IMAGE_OFFSET only to the flash/flash-only target
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user