Skip to content

cjacker/ch5xx_riscv_ble_evt_makefile_gcc_project_template

Repository files navigation

WCH CH5xx RISC-V BLE EVT with GCC and Makefile support

This is a project template with related tools to convert WCH official CH5xx RISC-V BLE EVT package to a GCC and Makefile project.

This template will convert the EVT package to a Makefile project and setup Link.ld according to your MCU, it support All CH5xx RISC-V BLE EVT packages from WCH, include:

NOTE: For ch584/585, you have to use MRS toolchain to support 'mcpy' instruction.

Usage

Assume you already have 'riscv-none-embed-gcc' toolchain installed. to generate a gcc/makefile project for specific part, type:

./generate_project_from_evt.sh <part>

If you want to change to another part in same family after project generated, use ./setpart.sh <part>.

If you do not know which part you should specify, please run ./generate_project_from_evt.sh without arg directly for help.

After project generated, there is a 'User' dir contains the codes you should write or modify. By default, it is a GPIO_Toggle can be used to blink LED.

Then type make to build the project.

The <part>.elf / <part>.bin / <part>.hex will be generated at 'build' dir and can be programmed to target device later.

Note

Please refer to opensource-toolchain-ch32v tutorial for more info.

And you must use this latest WCH OpenOCD.

About

gcc makefile project template and convertor for WCH CH5XX RISC-V BLE EVT packages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published