My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

arduino_due_x_flash.gdb 666B

12345678910111213141516171819202122232425262728293031323334353637
  1. #*******************************************************
  2. #
  3. # Connect to J-Link and debug application in flash on SAM3X.
  4. #
  5. # Define 'reset' command
  6. define reset
  7. # Connect to the J-Link gdb server
  8. target remote localhost:2331
  9. # Reset the chip to get to a known state
  10. monitor reset
  11. # Select flash device
  12. monitor flash device = AT91SAM3X8E
  13. # Enable flash download and flash breakpoints
  14. monitor flash download = 1
  15. # Load the program
  16. load
  17. # Reset peripheral (RSTC_CR)
  18. set *0x400e1a00 = 0xA5000004
  19. # Initialize PC and stack pointer
  20. mon reg sp=(0x80000)
  21. #set *0x80004 = *0x80004 & 0xFFFFFFFE
  22. mon reg pc=(0x80004)
  23. info reg
  24. break main
  25. # End of 'reset' command
  26. end