SHARE
TWEET

Untitled

a guest Oct 15th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. How to use arm-none-eabi-gdb with OpenOCD on ubuntu.
  2.  
  3. After installation you need to generate 2 .gdbinit files. One will be placed at /home directory (usually requires root access)
  4. and other one in project folder.
  5.  The file in /home directory should contain this line according to your project directory.
  6.  
  7.     add-auto-load-safe-path /home/alpagut/Desktop/Stm32-PID Heat Controller/.gdbinit
  8.  
  9.  The file in project folder should contain these lines. I put some extra stuff but the general concept applies.
  10.    By the way, these files are hidden files in nature but Ctrl+H is shortcut for display them.
  11.    
  12.     file heat.elf
  13.     target remote | openocd -f /usr/share/openocd/scripts/interface/stlink-v2.cfg -f /usr/share/openocd/scripts/target   /stm32f1x.cfg -c "gdb_port pipe; log_output openocd.log"
  14.  
  15.     #target remote localhost:4444
  16.  
  17.     define restart
  18.     monitor reset halt
  19.     end
  20.  
  21.     define reload
  22.     monitor reset halt
  23.     monitor stm32f1x mass_erase 0
  24.     monitor program heat.elf verify
  25.     monitor reset halt
  26.     end
  27.    
  28.    Ok thats it. Happy coding.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top