Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion external/base/mcu/lpc4337-m4/openocd/openocd.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,19 @@ target create $_CHIPNAME.m0 cortex_m -dap $_CHIPNAME.m0.dap
set _WORKAREASIZE 0x8000
$_CHIPNAME.m4 configure -work-area-phys 0x10000000 -work-area-size $_WORKAREASIZE

$_CHIPNAME.m0 configure -event reset-deassert-post {
echo "Putting core m0 to run so that it can halt, otherwise reset init fails..."
mww phys 0x40053104 0x00000000
}

set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME lpc2000 0x1a000000 0x80000 0 0 $_CHIPNAME.m4 lpc4300 96000 calc_checksum

reset_config none

cortex_m reset_config vectreset
$_CHIPNAME.m4 cortex_m reset_config vectreset

$_CHIPNAME.m0 cortex_m reset_config sysresetreq

targets $_CHIPNAME.m4

Expand Down