Building TangCore¶
Here's how to build the TangCore distribution, including the firmware, the monitor core and 4 game cores.
Setting up the environment¶
- Windows 10 or 11
- Install Gowin IDE 1.9.10.3 (used by all cores) and 1.9.11 (for GBATang).
- Install git for windows.
- Checkout tangcore and BL616 SDK/toolchain.
- Add the following dirs to path:
toolchain_gcc_t-head_windows\bin
,bouffalo_sdk\tools\make
,bouffalo_sdk\tools\cmake\bin
,bouffalo_sdk\tools\ninja
Build the firmware¶
First, obtain Sipeed official firmware here and save in tangcore\firmware-bl616
.
cd tangcore\firmware-bl616
buildall # build for all boards
set TANG_BOARD=mega60k
make # build for one board
Build the cores¶
cd tangcore\nestang
buildall # build for all boards
# the same for snestang, gbatang, mdtang and monitor
Collect building results¶
This will collect all built artifacts and put them inbuild/
.