Debugger

01 avril 2012 - Mots-clés : Arch Arm/Cortex-M3 Linux

Ajout au fichier .bashrc :

alias soocd='xterm -e "openocd -f interface/olimex-arm-usb-ocd.cfg -f target/stm32f1x.cfg" &'
alias toocd='xterm -e "telnet localhost 4444" &'
alias armgdb='arm-none-eabi-gdbtui --eval-command="target remote localhost:3333"'

Lancement du serveur openocd :

$ soocd

Ouverture de la console telnet, et entrée des commandes reset et halt :

toocd
> reset halt
> exit

Lancement de gdb :

armgdb build/ch.elf
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-unknown-linux-gnu --target=arm-none-eabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/franck/panoware/arm/rtos/ChibiOS_2.4.0/projects/pression/build/ch.elf...done.
Remote debugging using localhost:3333
ResetHandler () at ../../os/ports/GCC/ARMCMx/crt0.c:265
(gdb)

Comments