Fix boot after flash #7

Closed
opened 2023-01-21 20:02:16 +00:00 by alexisvl · 1 comment

On the CH32V3, this makefile fails to start the chip after flashing (for some reason it does work on CH32V1...)

This is the right way:

diff --git a/Makefile.single b/Makefile.single
index f945951..3db3ecc 100644
--- a/Makefile.single
+++ b/Makefile.single
@@ -60,7 +60,7 @@ flash: all
                -f ./wch-riscv.cfg \
                -c init -c halt \
                -c "program $(shell readlink -f ${MESON_DIR}/firmware-for-make.hex) verify reset" \
-               -c resume -c exit
+               -c wlink_reset_resume -c exit

 openocd:
        ${OPENOCD_DIR}/bin/openocd \
On the CH32V3, this makefile fails to start the chip after flashing (for some reason it does work on CH32V1...) This is the right way: ```diff diff --git a/Makefile.single b/Makefile.single index f945951..3db3ecc 100644 --- a/Makefile.single +++ b/Makefile.single @@ -60,7 +60,7 @@ flash: all -f ./wch-riscv.cfg \ -c init -c halt \ -c "program $(shell readlink -f ${MESON_DIR}/firmware-for-make.hex) verify reset" \ - -c resume -c exit + -c wlink_reset_resume -c exit openocd: ${OPENOCD_DIR}/bin/openocd \ ```
Poster
Owner

The redundant reset in the program command can go away too

The redundant `reset` in the `program` command can go away too
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: alexisvl/ch32v-template#7
There is no content yet.