finally its working with JLinkGDBServer

This commit is contained in:
2021-12-09 21:00:22 +01:00
parent b47ce37955
commit 1c16e903fd
6 changed files with 29 additions and 13 deletions

8
scripts/prep-flash.gdb Normal file
View File

@ -0,0 +1,8 @@
target remote localhost:2331
echo Disabling watchdog\n
set *0x400210C0 = 0x1ACCE551
set *0x40021008 = 0x0
echo Disabling Instruction Memory protection\n
set *0x40010010 = 0x1

3
scripts/prep-flash.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
# Alternative way to unlock the ROM protection of the VA416XX to allow flashing
gdb-multiarch -q --batch -ex 'source prep-flash.gdb'