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.
 
 
 
 
 
 

50 lines
1.5 KiB

  1. # Atmel AT91rm9200
  2. # http://atmel.com/products/at91/
  3. reset_config trst_and_srst
  4. if { [info exists CHIPNAME] } {
  5. set _CHIPNAME $CHIPNAME
  6. } else {
  7. set _CHIPNAME at91rm9200
  8. }
  9. if { [info exists ENDIAN] } {
  10. set _ENDIAN $ENDIAN
  11. } else {
  12. set _ENDIAN little
  13. }
  14. if { [info exists CPUTAPID ] } {
  15. set _CPUTAPID $CPUTAPID
  16. } else {
  17. set _CPUTAPID 0x05b0203f
  18. }
  19. # Never allow the following!
  20. if { $_CPUTAPID == 0x15b0203f } {
  21. echo "-------------------------------------------------------"
  22. echo "- ERROR: -"
  23. echo "- ERROR: TapID 0x15b0203f is wrong for at91rm9200 -"
  24. echo "- ERROR: The chip/board has a JTAG select pin/jumper -"
  25. echo "- ERROR: -"
  26. echo "- ERROR: In one position (0x05b0203f) it selects the -"
  27. echo "- ERROR: ARM CPU, in the other position (0x1b0203f) -"
  28. echo "- ERROR: it selects boundry-scan not the ARM -"
  29. echo "- ERROR: -"
  30. echo "-------------------------------------------------------"
  31. }
  32. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
  33. # Create the GDB Target.
  34. set _TARGETNAME $_CHIPNAME.cpu
  35. target create $_TARGETNAME arm920t -endian $_ENDIAN -chain-position $_TARGETNAME
  36. # AT91RM9200 has a 16K block of sram @ 0x0020.0000
  37. $_TARGETNAME configure -work-area-virt 0x00200000 -work-area-phys 0x00200000 \
  38. -work-area-size 0x4000 -work-area-backup 1
  39. # This chip has a DCC ... use it
  40. arm7_9 dcc_downloads enable