rtl872xd.cfg 911 B

123456789101112131415161718192021222324252627282930313233
  1. # SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. # Realtek RTL872xD (ARM Cortex-M33 + M23, wifi+bt dualband soc)
  3. # HLA does not support AP other than 0
  4. if { [using_hla] } {
  5. echo "ERROR: HLA transport cannot work with this target."
  6. shutdown
  7. }
  8. source [find target/swj-dp.tcl]
  9. if { [info exists CHIPNAME] } {
  10. set _CHIPNAME $CHIPNAME
  11. } else {
  12. set _CHIPNAME rtl872xd
  13. }
  14. if { [info exists CPUTAPID] } {
  15. set _CPUTAPID $CPUTAPID
  16. } else {
  17. set _CPUTAPID 0x6ba02477
  18. }
  19. swj_newdap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID
  20. dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
  21. set _TARGETNAME $_CHIPNAME.cpu
  22. target create $_TARGETNAME.km0 cortex_m -endian little -dap $_CHIPNAME.dap -ap-num 1
  23. target create $_TARGETNAME.km4 cortex_m -endian little -dap $_CHIPNAME.dap -ap-num 2
  24. cortex_m reset_config sysresetreq
  25. adapter speed 1000