summaryrefslogtreecommitdiff
path: root/hw/bsp/stm32n6/setup_iar.mac
diff options
context:
space:
mode:
Diffstat (limited to 'hw/bsp/stm32n6/setup_iar.mac')
-rw-r--r--hw/bsp/stm32n6/setup_iar.mac12
1 files changed, 12 insertions, 0 deletions
diff --git a/hw/bsp/stm32n6/setup_iar.mac b/hw/bsp/stm32n6/setup_iar.mac
new file mode 100644
index 000000000..b6f2bc97a
--- /dev/null
+++ b/hw/bsp/stm32n6/setup_iar.mac
@@ -0,0 +1,12 @@
+/* Called once after the target reset. */
+execUserReset()
+{
+ /* Re-load image as AIXRAM2 is erased after CPU reset */
+ __loadImage("$EXE_DIR$\\$TARGET_BNAME$.hex", 0, 0);
+
+ __restoreSoftwareBreakpoints();
+
+ #PC = __readMemory32(0x34180404, "Memory");
+
+ #SP = 0x341FFD00;
+}