-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore non-printable characters, re-organize for multiple boards/mcus…
- Loading branch information
Showing
11 changed files
with
112 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
timeout-minutes: 5 | ||
|
||
strategy: | ||
matrix: | ||
device: ['longan-nano', 'longan-nano-lite'] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install RISC-V build dependencies | ||
run: sudo apt-get install build-essential binutils-riscv64-unknown-elf gcc-riscv64-unknown-elf | ||
|
||
- name: Build the FiveForths firmware binary for ${{matrix.device}} | ||
run: make ${{matrix.device}} | ||
|
||
- name: Obtain SHA256 hash of the firmware ${{matrix.device}}.bin | ||
run: sha256sum fiveforths.bin > fiveforths.bin.sha256 | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: fiveforths-firmware-${{matrix.device}} | ||
path: fiveforths.bin* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## | ||
# Longan Nano Lite | ||
## | ||
|
||
.equ RAM_SIZE, 1024 * 20 # 20 KiB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/* GD32VF103C8 */ | ||
MEMORY | ||
{ | ||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 64k | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
## | ||
# Longan Nano | ||
## | ||
|
||
.equ RAM_SIZE, 1024 * 32 # 32 KiB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* GD32VF103CB */ | ||
MEMORY | ||
{ | ||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 128k | ||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 32k | ||
} | ||
|
||
/* The entry point is the reset handler */ | ||
ENTRY(_start); | ||
|
||
SECTIONS { | ||
__stacktop = ORIGIN(RAM) + LENGTH(RAM); | ||
|
||
/* The program code and other data goes into FLASH */ | ||
.text : | ||
{ | ||
. = ALIGN(4); | ||
*(.text) /* .text sections (code) */ | ||
*(.rodata) /* .rodata sections (constants, strings, etc.) */ | ||
} >FLASH | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters