| 
									
										
										
										
											2024-05-15 20:13:00 +07:00
										 |  |  | adapter driver wlinke | 
					
						
							|  |  |  | adapter speed 6000 | 
					
						
							|  |  |  | transport select sdi | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | wlink_set_address 0x00000000 | 
					
						
							|  |  |  | set _CHIPNAME wch_riscv | 
					
						
							|  |  |  | sdi newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x00001 | 
					
						
							| 
									
										
										
										
											2023-01-12 10:25:48 +07:00
										 |  |  | 
 | 
					
						
							|  |  |  | set _TARGETNAME $_CHIPNAME.cpu | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-05-15 20:13:00 +07:00
										 |  |  | target create $_TARGETNAME.0 wch_riscv -chain-position $_TARGETNAME | 
					
						
							|  |  |  | $_TARGETNAME.0 configure  -work-area-phys 0x20000000 -work-area-size 10000 -work-area-backup 1 | 
					
						
							| 
									
										
										
										
											2023-01-12 10:25:48 +07:00
										 |  |  | set _FLASHNAME $_CHIPNAME.flash | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | flash bank $_FLASHNAME wch_riscv 0x00000000 0 0 0 $_TARGETNAME.0 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | echo "Ready for Remote Connections" |