Advertisement
nickn3710

riscv openocd config file

Dec 14th, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. #NAN note: use the "raspberrypi2-native.cfg" for Rpi2 and Rpi3 models!
  2. source [find raspberrypi2-native.cfg]
  3. transport select jtag
  4. adapter_khz 1000
  5. debug_level 4
  6.  
  7. set _CHIPNAME riscv
  8. #for HiFive1:jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10e31913
  9. jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x0000010D
  10.  
  11. ##
  12.  
  13.  
  14. set _TARGETNAME $_CHIPNAME.cpu
  15. target create $_TARGETNAME riscv -chain-position $_TARGETNAME
  16. $_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 10000
  17. # -work-area-backup 1 ea-backup 1
  18.  
  19. #scan_chain
  20.  
  21.  
  22. #flash bank onboard_spi_flash fespi 0x20000000 0 0 0 $_TARGETNAME
  23. init
  24. #reset -- This type of reset is not implemented yet
  25. if {[ info exists pulse_srst]} {
  26. #ftdi_set_signal nSRST 0
  27. #ftdi_set_signal nSRST z
  28. #Wait for the reset stretcher
  29. #It will work without this, but
  30. #will incur lots of delays for later commands.
  31. sleep 1500
  32. }
  33.  
  34. halt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement