diff options
author | isiora <none@example.com> | 2018-01-18 09:21:28 +0000 |
---|---|---|
committer | isiora <none@example.com> | 2018-01-18 09:21:28 +0000 |
commit | 9faf55dfa5016dc80fd9f4269bea6dd7760d244f (patch) | |
tree | 734224d41793e1077976db14cd5c4ddd7893a85e /demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-SEC/imgs.gdb | |
parent | c44be00d4fd1365c7fdab487d14183a586a57214 (diff) | |
download | ChibiOS-9faf55dfa5016dc80fd9f4269bea6dd7760d244f.tar.gz ChibiOS-9faf55dfa5016dc80fd9f4269bea6dd7760d244f.tar.bz2 ChibiOS-9faf55dfa5016dc80fd9f4269bea6dd7760d244f.zip |
Demo for the secure word in the trust zone.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11307 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-SEC/imgs.gdb')
-rw-r--r-- | demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-SEC/imgs.gdb | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-SEC/imgs.gdb b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-SEC/imgs.gdb new file mode 100644 index 000000000..4c269a919 --- /dev/null +++ b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED-SEC/imgs.gdb @@ -0,0 +1,37 @@ +# +# Switch to secure image symbols, without touching anything else +# +define si + # Clear the symbol table + symbol-file + # Load the symbol table of the secure image + symbol-file ../RT-SAMA5D2-XPLAINED-SEC/build/ch.elf +end + +# +# Switch to non secure image symbols, without touching anything else +# +define nsi + # Clear the symbol table + symbol-file + # Load the symbol table of the non secure image + symbol-file ../RT-SAMA5D2-XPLAINED-NSEC/build/ch.elf +end + + +# +# Load non secure image into ddr +# +define lns + # Load the non secure image + set $oldpc=$pc + load ../RT-SAMA5D2-XPLAINED-NSEC/build/ch.elf + set $pc=$oldpc +end + +# +# Set pc to the address pc+4 +# +define spc + set $pc=$pc+4 +end
\ No newline at end of file |