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.
 
 
 
 
 
 

27 lines
592 B

  1. #
  2. # GigaDevice GD32VF103 target
  3. #
  4. # https://www.gigadevice.com/products/microcontrollers/gd32/risc-v/
  5. #
  6. transport select jtag
  7. if { [info exists CHIPNAME] } {
  8. set _CHIPNAME $CHIPNAME
  9. } else {
  10. set _CHIPNAME gd32vf103
  11. }
  12. if { [info exists WORKAREASIZE] } {
  13. set _WORKAREASIZE $WORKAREASIZE
  14. } else {
  15. set _WORKAREASIZE 0x800
  16. }
  17. jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x1000563d
  18. set _TARGETNAME $_CHIPNAME.cpu
  19. target create $_TARGETNAME riscv -chain-position $_TARGETNAME
  20. $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0