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.
 
 
 
 
 
 

47 lines
802 B

  1. #
  2. # Infineon XMC4100/XMC4200/XMC4400/XMC4500 family (ARM Cortex-M4 @ 80-120 MHz)
  3. #
  4. if { [info exists CHIPNAME] } {
  5. set _CHIPNAME $CHIPNAME
  6. } else {
  7. set _CHIPNAME xmc4000
  8. }
  9. source [find target/swj-dp.tcl]
  10. #
  11. # SWJ-DP
  12. #
  13. if { [info exists CPU_JTAG_TAPID] } {
  14. set _CPU_JTAG_TAPID $CPU_JTAG_TAPID
  15. } else {
  16. set _CPU_JTAG_TAPID 0x4BA00477
  17. }
  18. #
  19. # SW_DP
  20. #
  21. if { [info exists CPU_SWD_TAPID] } {
  22. set _CPU_SWD_TAPID $CPU_SWD_TAPID
  23. } else {
  24. set _CPU_SWD_TAPID 0x2BA01477
  25. }
  26. if { [using_jtag] } {
  27. set _CPU_TAPID $_CPU_JTAG_TAPID
  28. } else {
  29. set _CPU_TAPID $_CPU_SWD_TAPID
  30. }
  31. swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPU_TAPID
  32. set _TARGETNAME $_CHIPNAME.cpu
  33. target create $_TARGETNAME cortex_m -chain-position $_TARGETNAME
  34. if { ![using_hla] } {
  35. cortex_m reset_config sysresetreq
  36. }
  37. adapter_khz 1000