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.
 
 
 
 
 
 

59 lines
1.5 KiB

  1. source [find target/c100.cfg]
  2. # basic register definition for C100
  3. source [find target/c100regs.tcl]
  4. # board-config info
  5. source [find target/c100config.tcl]
  6. # C100 helper functions
  7. source [find target/c100helper.tcl]
  8. # Telo board & C100 support trst and srst
  9. # make the reset asserted to
  10. # allow RC circuit to discharge for: [ms]
  11. adapter srst pulse_width 100
  12. jtag_ntrst_assert_width 100
  13. # don't talk to JTAG after reset for: [ms]
  14. adapter srst delay 100
  15. jtag_ntrst_delay 100
  16. reset_config trst_and_srst separate
  17. # issue telnet: reset init
  18. # issue gdb: monitor reset init
  19. $_TARGETNAME configure -event reset-init {
  20. adapter speed 100
  21. # this will setup Telo board
  22. setupTelo
  23. #turn up the JTAG speed
  24. adapter speed 3000
  25. echo "JTAG speek now 3MHz"
  26. echo "type helpC100 to get help on C100"
  27. }
  28. $_TARGETNAME configure -event reset-deassert-post {
  29. # Force target into ARM state.
  30. # soft_reset_halt ;# not implemented on ARM11
  31. echo "Detected SRSRT asserted on C100.CPU"
  32. }
  33. $_TARGETNAME configure -event reset-assert-post {
  34. echo "Assering reset"
  35. #sleep 10
  36. }
  37. proc power_restore {} { echo "Sensed power restore. No action." }
  38. proc srst_deasserted {} { echo "Sensed nSRST deasserted. No action." }
  39. # boots from NOR on CS0: 8 MBytes CFI flash, 16-bit bus
  40. # it's really 16MB but the upper 8mb is controller via gpio
  41. # openocd does not support 'complex reads/writes' to NOR
  42. set _FLASHNAME $_CHIPNAME.flash
  43. flash bank $_FLASHNAME cfi 0x20000000 0x01000000 2 2 $_TARGETNAME
  44. # writing data to memory does not work without this
  45. arm11 memwrite burst disable