]> granicus.if.org Git - esp-idf/commit
esp32: don’t reset APP CPU if it was already reset by OpenOCD
authorIvan Grokhotkov <ivan@espressif.com>
Mon, 12 Jun 2017 07:16:57 +0000 (15:16 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Mon, 12 Jun 2017 07:16:57 +0000 (15:16 +0800)
commitf327a9b1cff1f6965ca3cc1f226f0c41e3461bbb
treefead1d575eb17f69e4abdff175b13ea40867d417
parente7db29b2a8355d3e63b1c28b47b3206988b15cf1
esp32: don’t reset APP CPU if it was already reset by OpenOCD

When ‘reset halt’ command is executed, OpenOCD will take the APP CPU
out of reset and enable the clock. At this point, user can set a
breakpoint on code which will run on APP CPU. Previously, app startup
code would do another reset of APP CPU, thereby removing any breakpoints
which may have been set. This change makes APP CPU reset conditional on
DPORT_APPCPU_CLKGATE_EN bit, which is 0 by default but is set to 1 by
OpenOCD after reset.
components/esp32/cpu_start.c