From 55bbde7fc4485865d8f049dd48dbac7ef777ba5a Mon Sep 17 00:00:00 2001 From: ckormanyos Date: Mon, 24 Jun 2024 08:47:21 +0200 Subject: [PATCH] Update docs and CI --- .github/workflows/WCH_V307_RISC-V.yml | 25 +++++++++++++++++++++++++ README.md | 14 ++++++-------- 2 files changed, 31 insertions(+), 8 deletions(-) diff --git a/.github/workflows/WCH_V307_RISC-V.yml b/.github/workflows/WCH_V307_RISC-V.yml index c83aeef..3d2b465 100644 --- a/.github/workflows/WCH_V307_RISC-V.yml +++ b/.github/workflows/WCH_V307_RISC-V.yml @@ -27,3 +27,28 @@ jobs: bash ./Rebuild.sh ls -la ../Output/BareMetal_WCH_V307_RISC-V.hex working-directory: ./Build + target-gcc-riscv32-unknown-elf-macos: + runs-on: macos-latest + defaults: + run: + shell: bash + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: '0' + - name: update-tools + run: | + wget --no-check-certificate https://buildbot.embecosm.com/job/riscv32-gcc-macos-release/19/artifact/riscv32-embecosm-macos-gcc13.2.0.dmg + hdiutil attach ./riscv32-embecosm-macos-gcc13.2.0.dmg + cd /Volumes/riscv32-embecosm-macos-gcc13.2.0 + cp -r ./riscv32-embecosm-macos-gcc13.2.0 ${{ runner.workspace }} + working-directory: ./ + - name: target-riscv32-unknown-elf + run: | + ls -la ${{ runner.workspace }}/riscv32-embecosm-macos-gcc13.2.0/bin + PATH="${{ runner.workspace }}/riscv32-embecosm-macos-gcc13.2.0/bin:$PATH" + echo 'query compiler version' + riscv32-unknown-elf-g++ -v + bash ./Rebuild.sh + ls -la ../Output/BareMetal_WCH_V307_RISC-V.hex + working-directory: ./Build diff --git a/README.md b/README.md index ac01cc2..c639780 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ RISC-V MCU CH32V307VCT6 board (CH32V307V-EVT-R1). Features include: - CPU, power, chip, clock and PLL initialization, - - timebase derived from `mtimer`, + - timebase derived from the `R32_STK` timer, - blinky LED show with adjustable frequency, - implementation in C99 with absolute minimal use of assembly. @@ -52,8 +52,7 @@ Build on `*nix*` is easy using `gcc-riscv32-unknown-elf` Both Make and Cmake can be used to build the Application: ```sh -cd WCH_V307_RISC-V -cd Build +cd WCH_V307_RISC-V/Build ``` ### Make @@ -66,8 +65,8 @@ and assembly list file are created in the `Output` directory. If `gcc-riscv32-unknown-elf` is not installed, it can easily be obtained from [embecosm](https://www.embecosm.com/resources/tool-chain-downloads/#riscv-stable). -Add the path of the RISC-V GCC tools' bin folder to `$PATH` -in the usual `*nix` way. +If necessary, add the path of the RISC-V GCC tools' bin folder to +`$PATH` in the usual `*nix` way. ## Continuous Integration @@ -77,6 +76,5 @@ and `macos-latest` using GitHub Actions. ## Licensing - - The source and build code written for this repo is licensed under [_The_ _Unlicense_](./LICENSE). - - Also the system-register file [`riscv-csr.h`](https://github.com/Embedded-System-Lovers/RED-V_SiFive_RISC-V_FE310_SoC/blob/master/Code/Mcal/riscv-csr.h), originally from [five-embedded](https://five-embeddev.com), is licenced under [_The_ _Unlicense_](./LICENSE). - + - The source and build code written for this repo are licensed under [_The_ _Unlicense_](./LICENSE). + - The system-register file [`riscv-csr.h`](https://github.com/Embedded-System-Lovers/RED-V_SiFive_RISC-V_FE310_SoC/blob/master/Code/Mcal/riscv-csr.h), originally from [five-embedded](https://five-embeddev.com), is also licenced under [_The_ _Unlicense_](./LICENSE).