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.
 
 
 
 
 
 

52 lines
1.0 KiB

  1. #
  2. # Renesas Synergy S7 G2 w/ ARM Cortex-M4 @ 240 MHz
  3. #
  4. if { [info exists CHIPNAME] } {
  5. set _CHIPNAME $CHIPNAME
  6. } else {
  7. set _CHIPNAME s7g2
  8. }
  9. if { [info exists CPU_JTAG_TAPID] } {
  10. set _CPU_JTAG_TAPID $CPU_JTAG_TAPID
  11. } else {
  12. set _CPU_JTAG_TAPID 0x5ba00477
  13. }
  14. if { [info exists CPU_SWD_TAPID] } {
  15. set _CPU_SWD_TAPID $CPU_SWD_TAPID
  16. } else {
  17. set _CPU_SWD_TAPID 0x5ba02477
  18. }
  19. source [find target/swj-dp.tcl]
  20. if { [using_jtag] } {
  21. set _CPU_TAPID $_CPU_JTAG_TAPID
  22. } else {
  23. set _CPU_TAPID $_CPU_SWD_TAPID
  24. }
  25. swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPU_TAPID
  26. dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
  27. set _TARGETNAME $_CHIPNAME.cpu
  28. target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap
  29. if { [info exists WORKAREASIZE] } {
  30. set _WORKAREASIZE $WORKAREASIZE
  31. } else {
  32. # 640 KB On-Chip SRAM
  33. set _WORKAREASIZE 0xa0000
  34. }
  35. $_TARGETNAME configure -work-area-phys 0x1ffe0000 \
  36. -work-area-size $_WORKAREASIZE -work-area-backup 0
  37. if { ![using_hla] } {
  38. cortex_m reset_config sysresetreq
  39. }
  40. adapter speed 1000