mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
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
|
||||
# Flash checksumming not supported on xtensa
|
||||
OPENOCD_SKIP_VERIFY = yes
|
||||
# Without resets debug target fails with 'Target not examined yet'
|
||||
OPENOCD_DBG_EXTRA_CMD += -c 'reset halt'
|
||||
endif
|
||||
|
@ -49,7 +49,14 @@ ifneq (,$(OPENOCD_CMD_RESET_RUN))
|
||||
$(call target-export-variables,reset,OPENOCD_CMD_RESET_RUN)
|
||||
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))
|
||||
# Export IMAGE_OFFSET only to the flash/flash-only target
|
||||
|
Loading…
Reference in New Issue
Block a user