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.
 
 
 
 
 
 

43 lines
890 B

  1. # for avr
  2. set _CHIPNAME avr
  3. set _ENDIAN little
  4. # jtag speed
  5. jtag_khz 4500
  6. reset_config srst_only
  7. jtag_nsrst_delay 100
  8. #jtag scan chain
  9. if { [info exists CPUTAPID ] } {
  10. set _CPUTAPID $CPUTAPID
  11. } else {
  12. set _CPUTAPID 0x8970203F
  13. }
  14. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
  15. set _TARGETNAME $_CHIPNAME.cpu
  16. target create $_TARGETNAME avr -endian $_ENDIAN -chain-position $_TARGETNAME
  17. #$_TARGETNAME configure -work-area-virt 0 -work-area-phys 0x20000000 -work-area-size 16384 -work-area-backup 0
  18. flash bank avr 0 0 0 0 0
  19. #to use it, script will be like:
  20. #init
  21. #jtag_khz 4500
  22. #reset init
  23. #verify_ircapture disable
  24. #
  25. #halt
  26. #wait halt
  27. #poll
  28. #avr mass_erase 0
  29. #flash write_image E:/Versaloon/Software/CAMERAPROTOCOLAGENT.hex
  30. #reset run
  31. #shutdown
  32. #
  33. # For more information about the configuration files, take a look at:
  34. # openocd.texi