update JLink files

This commit is contained in:
Robin Müller 2024-06-22 18:37:51 +02:00
parent 7349c16268
commit fe3cd95e58
Signed by: muellerr
GPG Key ID: A649FB78196E3849
2 changed files with 3 additions and 2 deletions

View File

@ -20,6 +20,8 @@ Purpose : J-Link target setup file for VORAGO VA416xx
*/
int AfterResetTarget (void) {
JLINK_SYS_Report("AfterResetTarget()");
JLINK_MEM_WriteU32(0x400210C0, 0x1ACCE551); // WDOGLOCK = 0x1ACCE551
JLINK_MEM_WriteU32(0x40021008, 0x0); // WDOGCONTROL = 0x0 (diable)
return JLINK_MEM_WriteU32(0x40010010, 0x1); // ROM_PROT = 0x1
}

View File

@ -1,5 +1,6 @@
target remote localhost:2331
monitor halt
# Reset is problematic on RevA, okay for RevB
monitor reset
@ -7,5 +8,3 @@ monitor reset
break main
load
continue