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.
 
 
 
 
 
 

45 lines
1.0 KiB

  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. # QuickLogic EOS S3
  3. # https://www.quicklogic.com/products/soc/eos-s3-microcontroller/
  4. source [find target/swj-dp.tcl]
  5. if { [info exists CHIPNAME] } {
  6. set _CHIPNAME $CHIPNAME
  7. } else {
  8. set _CHIPNAME eos_s3
  9. }
  10. if { [info exists WORKAREASIZE] } {
  11. set _WORKAREASIZE $WORKAREASIZE
  12. } else {
  13. set _WORKAREASIZE 0x80000
  14. }
  15. if { [info exists CPUTAPID] } {
  16. set _CPUTAPID $CPUTAPID
  17. } else {
  18. if { [using_jtag] } {
  19. set _CPUTAPID 0x4ba00477
  20. } {
  21. set _CPUTAPID 0x2ba01477
  22. }
  23. }
  24. swj_newdap $_CHIPNAME cpu -irlen 4 -irmask 0xf -expected-id $_CPUTAPID
  25. dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
  26. set _TARGETNAME $_CHIPNAME.cpu
  27. target create $_TARGETNAME cortex_m -dap $_CHIPNAME.dap
  28. # For now we use SRAM only for software upload
  29. $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
  30. adapter speed 4000
  31. if {![using_hla]} {
  32. # if srst is not fitted use SYSRESETREQ to
  33. # perform a soft reset
  34. cortex_m reset_config sysresetreq
  35. }