-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
1,568 additions
and
0 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 @@ | ||
pico-ice-blinky/* |
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,33 @@ | ||
#! /bin/bash | ||
|
||
set -e | ||
|
||
echo "" | ||
echo "Setting environment variables" | ||
source ../set_pico_envars | ||
|
||
echo "Activating virtual environment $APIO_VENV" | ||
source $ACTIVATE_APIO_VENV | ||
|
||
# https://pico-ice.tinyvision.ai/md_programming_the_fpga.html | ||
|
||
# Build a new directory with a "blinky" example project inside | ||
rm -fr pico-ice-blinky | ||
mkdir pico-ice-blinky | ||
cd pico-ice-blinky | ||
apio examples -f iCE40-UP5K/blink | ||
|
||
# Set the board to "pico-ice" | ||
apio init --top-module rgb_test --sayyes --board pico-ice | ||
|
||
# Build the project using yosys/nextpnr | ||
apio build | ||
|
||
# Plug your pico-ice board and upload the blinky project to it | ||
apio upload | ||
|
||
echo "Deactivating virtual environment" | ||
deactivate | ||
|
||
echo "" | ||
echo "Finished" |
Oops, something went wrong.