RZ-A/Boards/debug-gr-peach.sh

From eLinux.org
Jump to: navigation, search
#!/bin/bash

if [ -f .gdbinit ]; then
        echo "Backup old .gdbinit to .gdbinit-old"
        mv .gdbinit .gdbinit-old
fi

VMLINUX=linux-build-xip/vmlinux

echo "target remote localhost:2331" >> .gdbinit
echo "monitor reset" >> .gdbinit
echo "file " $VMLINUX >> .gdbinit
echo "monitor go" >> .gdbinit

echo "Start GDB server... (run 'arm-none-eabi-gdb  -tui' in this directory)"
JLinkGDBServer -speed 15000 -device R7S721001