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.
 
 
 
 
 
 

32 lines
794 B

  1. if { [info exists CHIPNAME] } {
  2. set _CHIPNAME $CHIPNAME
  3. } else {
  4. set _CHIPNAME cs351x
  5. }
  6. if { [info exists ENDIAN] } {
  7. set _ENDIAN $ENDIAN
  8. } else {
  9. set _ENDIAN little
  10. }
  11. if { [info exists CPUTAPID] } {
  12. set _CPUTAPID $CPUTAPID
  13. } else {
  14. set _CPUTAPID 0x00526fa1
  15. }
  16. jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
  17. # Create the GDB Target.
  18. set _TARGETNAME $_CHIPNAME.cpu
  19. target create $_TARGETNAME fa526 -endian $_ENDIAN -chain-position $_TARGETNAME
  20. # There is 16K of SRAM on this chip
  21. # FIXME: flash programming is not working by using this work area. So comment this out for now.
  22. #$_TARGETNAME configure -work-area-phys 0x00000000 -work-area-size 0x4000 -work-area-backup 1
  23. # This chip has a DCC ... use it
  24. arm7_9 dcc_downloads enable