Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use older SDK for build #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-13]
os: [ubuntu-latest, windows-latest, macos-14]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout PicoRVD
uses: actions/checkout@v3
with:
path: PicoRVD

- name: Checkout pico-sdk/master
- name: Checkout pico-sdk/1.5.1
uses: actions/checkout@v3
with:
repository: raspberrypi/pico-sdk
ref: master
ref: 1.5.1
path: pico-sdk

- name: Checkout pico-sdk submodules
Expand All @@ -35,16 +35,15 @@ jobs:
run: sudo apt-get update && sudo apt-get install -y build-essential git cmake gcc-arm-none-eabi gcc-riscv64-unknown-elf

- name: Install dependencies (Mac)
if: ${{ matrix.os == 'macos-13' }}
if: ${{ matrix.os == 'macos-14' }}
run: |
brew install cmake make
brew tap ArmMbed/homebrew-formulae
brew install arm-none-eabi-gcc
brew install gcc-arm-embedded
brew tap riscv-software-src/riscv
brew install riscv-tools

- name: Build Project (CH32V003 Blinky)
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-13' }}
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-14' }}
working-directory: ${{github.workspace}}/PicoRVD
shell: bash
run: |
Expand All @@ -69,4 +68,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: PicoRVD.uf2
path: ${{github.workspace}}/PicoRVD/bin/picorvd.uf2
path: ${{github.workspace}}/PicoRVD/bin/picorvd.uf2
3 changes: 1 addition & 2 deletions example/blink.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define SYSTEM_CORE_CLOCK 48000000
#include "ch32v003fun.h"

__attribute__((noinline)) void busywait(int x) {
Expand All @@ -8,7 +7,7 @@ __attribute__((noinline)) void busywait(int x) {

int main()
{
SystemInit48HSI();
SystemInit();

// Enable GPIOD.
RCC->APB2PCENR |= RCC_APB2Periph_GPIOD;
Expand Down
Loading
Loading