|
From: Angus A. <an...@ak...> - 2018-04-19 20:24:39
|
The imx8m also has a Cortex m4 so add a target for it.
---
tcl/target/imx8m.cfg | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/tcl/target/imx8m.cfg b/tcl/target/imx8m.cfg
index 33149540..e84c4b5c 100644
--- a/tcl/target/imx8m.cfg
+++ b/tcl/target/imx8m.cfg
@@ -53,3 +53,15 @@ for { set _core 0 } { $_core < $_cores } { incr _core } {
eval $_smp_command
targets $_TARGETNAME.0
+
+# declare the auxiliary Cortex-M4 core on AP #4
+target create ${_CHIPNAME}.m4 cortex_m -dap ${_CHIPNAME}.dap -ap-num 4
+
+${_CHIPNAME}.m4 configure -event reset-init { m4_init }
+
+proc m4_init { } {
+ echo "m4 reset-init..."
+ cortex_m dbginit
+ # halt the CPU
+ halt
+}
--
2.14.1
|