diff options
author | Craig Hesling <hesling@chromium.org> | 2020-01-06 13:42:05 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-13 20:30:06 +0000 |
commit | af0a64cc36072d283149ea40967cdc3ce71cf52a (patch) | |
tree | ee40d54dc3ba04be8249addcd9c3c8be2c189681 /chip | |
parent | 27142308bed998ea0ba0881778c7a9deb21eac5b (diff) | |
download | chrome-ec-af0a64cc36072d283149ea40967cdc3ce71cf52a.tar.gz |
core/system: Extract and doc cortex const
BRANCH=none
BUG=none
TEST=make buildall -j
TEST=make BOARD=nucleo-h743zi
# Reboot H743 into bootloader using boot0 pin and reset
# Flash nucleo over FTDI and STM32 bootloader
stm32mon -u -U -w build/nucleo-h743zi/ec.bin -d /dev/ttyUSB0 -b 115200
# Reset without boot0
# Open console
minicom -D/dev/ttyACM0
reboot soft
# Verify soft reset was used
reboot hard
# Verify hard reboot was used
Change-Id: If211198b853ad97cb96b39c063d3e04bfce68179
Signed-off-by: Craig Hesling <hesling@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1988232
Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/stm32/system.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chip/stm32/system.c b/chip/stm32/system.c index 4b0dada71d..548ccfcd18 100644 --- a/chip/stm32/system.c +++ b/chip/stm32/system.c @@ -470,7 +470,9 @@ void system_reset(int flags) udelay(10000); } } - CPU_NVIC_APINT = 0x05fa0004; + + /* Request a soft system reset from the core. */ + CPU_NVIC_APINT = CPU_NVIC_APINT_KEY_WR | CPU_NVIC_APINT_SYSRST; } /* Spin and wait for reboot; should never return */ |