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
606 B

  1. #
  2. # Spansion FM4 (ARM Cortex-M4)
  3. #
  4. if { [info exists CHIPNAME] } {
  5. set _CHIPNAME $CHIPNAME
  6. } else {
  7. set _CHIPNAME fm4
  8. }
  9. source [find target/swj-dp.tcl]
  10. if { [info exists CPUTAPID] } {
  11. set _CPU_TAPID $CPUTAPID
  12. } elseif { [using_jtag] } {
  13. set _CPU_TAPID 0x4ba00477
  14. } else {
  15. set _CPU_TAPID 0x2ba01477
  16. }
  17. swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPU_TAPID
  18. dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
  19. set _TARGETNAME $_CHIPNAME.cpu
  20. target create $_TARGETNAME cortex_m -endian little -dap $_CHIPNAME.dap
  21. adapter speed 500
  22. if {![using_hla]} {
  23. cortex_m reset_config sysresetreq
  24. }