Author Topic: ch32v307 - mounriverstudio / openocd seems broken...  (Read 472 times)

0 Members and 1 Guest are viewing this topic.

Offline wilhe_joTopic starter

  • Regular Contributor
  • *
  • Posts: 199
  • Country: at
ch32v307 - mounriverstudio / openocd seems broken...
« on: January 22, 2024, 04:47:28 pm »
Hi!

Just made the mistake to update the IDE.
For some reason, I cannot programm any CH32V307.

It seems that only the first page (0x0-0xFFF) get written. the rest of the memory seems empty.
The generated hex is non-empty, tested with my project, a new template and even a new template in a new workspace!
Anyone having the same problem?


Regards!

My open-ocd cfg:
Code: [Select]

#interface wlink
adapter driver wlinke
adapter speed 6000
transport select sdi


#wlink_set_address 0x00000000
wlink_set_address  0x08000000
set _CHIPNAME wch_riscv
sdi newtap $_CHIPNAME cpu -irlen 5 -expected-id 0x00001


set _TARGETNAME $_CHIPNAME.cpu


target create $_TARGETNAME.0 wch_riscv -chain-position $_TARGETNAME
$_TARGETNAME.0 configure  -work-area-phys 0x20000000 -work-area-size 10000 -work-area-backup 1
set _FLASHNAME $_CHIPNAME.flash


flash bank $_FLASHNAME wch_riscv 0x00000000 0 0 0 $_TARGETNAME.0


echo "Ready for Remote Connections"



Edit: After hours of hair pulling, I now just pulled the old 1.5 and it works again... it really seems to be an issue with the openocd supplied.

« Last Edit: January 22, 2024, 05:37:13 pm by wilhe_jo »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf