source [find interface/jlink.cfg] transport select jtag adapter speed 4000 set _CHIPNAME fe310g000 jtag newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x10e31913 set _TARGETNAME $_CHIPNAME.cpu target create $_TARGETNAME riscv -chain-position $_TARGETNAME $_TARGETNAME configure -work-area-phys 0x80000000 -work-area-size 10000 -work-area-backup 1 flash bank onboard_spi_flash fespi 0x20000000 0 0 0 $_TARGETNAME init jlink jtag 3 halt flash protect 0 64 last off