-
Notifications
You must be signed in to change notification settings - Fork 5
Clones based on ch32( FNIRSI)
Some clones (FNIRSI clone for example) are slightly different compared to the original Jyetech version
1- They use a CH32F103 chip instead of stm32F103. It has only has 64 kB of flash, so no booloader, no DFU update and no fancy graphics
2- The buttons are wired slightly differently (PA11/PA12 for Ok/Trigger)
You'll have to replace /dev/XXXX by the port the blackmagic is connected to
You need a very recent version of the blackmagic firmware else it will NOT work
Dont connect the reset pin / dont use it
First step is to erase the whole flash and remove rdp.
You can power the mcu through the 4 debug pins grouped together, no need for external power supply if it' s simpler for you.
arm-none-eabi-gdb -ex "target extended-remote /dev/XXXXX" -ex "monitor swdp_scan" -ex "attach 1" -ex "mon option erase"
Power cycle.
Now you can power it anyway you want
arm-none-eabi-gdb -ex "target extended-remote /dev/XXXXX" -ex "monitor swdp_scan" -ex "attach 1" -ex "load ch32DSO150.elf" -ex "compare-sections" -ex "set confirm off" -ex "file ch32DSO150.elf"
Reboot, you should see the splash screen
Download the stlink utilities ( as of now https://github.com/stlink-org/stlink/releases/tag/v1.6.1 ) Take the stlink-1.6.1-x86_64-w64-mingw32.zip version if you are running a recent windows (64 bits).
Fetch the ch32 binary and flash it (there is no bootloader with that version ,you'll have to reflash it for updating)
st-flash write ch32DSO.bin 0x8000000
It will flash very slowly !
You picked the wrong firmware