- src/: прошивка встроенного отладчика BL616 — составное USB-устройство 1209:C0CA: DirtyJTAG v3 (WinUSB через MS OS 2.0) + CDC-ACM UART к FPGA B3/C3; UART до 20 Мбод на DMA, JTAG до 30 МГц через аппаратный SPI; - bin/: загрузчик Sipeed (0x0) и штатная прошивка 2025030317 для отката; - gui/: TangProgrammer.exe (C# WinForms, .NET Framework 4) — загрузка FPGA в SRAM и во флеш-память, копия и стирание флеш-памяти FPGA, прошивка моста; светлая и тёмная тема; - scripts/: setup, build, flash, build_gui, make_portable, а также make_release и publish_release для релизов Gitea; - fpga_test/, tests/: тестовые проекты Gowin (loopback, stream) и тесты UART на Python; - tools/openFPGALoader/: openFPGALoader 1.1.1 для Windows x64. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
715 B
PowerShell
16 lines
715 B
PowerShell
# Fetch the Bouffalo SDK and the T-Head RISC-V toolchain into third_party\.
|
|
$ErrorActionPreference = 'Stop'
|
|
. (Join-Path $PSScriptRoot 'common.ps1')
|
|
|
|
$root = Get-ProjectRoot
|
|
$tp = Join-Path $root 'third_party'
|
|
New-Item -ItemType Directory -Force $tp | Out-Null
|
|
|
|
if (-not (Test-Path (Join-Path $tp 'bouffalo_sdk'))) {
|
|
git clone --depth 1 --branch v2.3.16 https://github.com/bouffalolab/bouffalo_sdk.git (Join-Path $tp 'bouffalo_sdk')
|
|
}
|
|
if (-not (Test-Path (Join-Path $tp 'toolchain_gcc_t-head_windows'))) {
|
|
git clone --depth 1 https://github.com/bouffalolab/toolchain_gcc_t-head_windows.git (Join-Path $tp 'toolchain_gcc_t-head_windows')
|
|
}
|
|
Write-Host 'SDK and toolchain are in place.' -ForegroundColor Green
|