Skip to content

Commit

Permalink
Merge pull request #15 from Embedded-System-Lovers/update_docs_and_ci
Browse files Browse the repository at this point in the history
Update docs and CI
  • Loading branch information
ckormanyos authored Jun 24, 2024
2 parents 541dbb2 + 55bbde7 commit 45de10d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/WCH_V307_RISC-V.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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

Expand All @@ -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

Expand All @@ -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).

0 comments on commit 45de10d

Please sign in to comment.