You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-12Lines changed: 20 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,23 +7,28 @@
7
7
8
8
The aim of this project is to make MicroPython run on FPGAs using the [LiteX](https://github.com/enjoy-digital/litex) & [Migen+MiSoC](http://m-labs.hk/gateware.html) technologies. This allows you to do full stack development (FPGA gateware & soft CPU firmware) in Python!
`Gateware` is the name we use for the hardware code that is loaded onto the FPGA that MicroPython runs on.
13
19
14
-
For MicroPython development we use a slightly modified version of the [`HDMI2USB-litex-firmware`](https://github.com/timvideos/HDMI2USB-litex-firmware) from the [HDMI2USB project](https://hdmi2usb.tv).
20
+
For MicroPython development we use a the [TimVideos
21
+
`litex-buildenv`](https://github.com/timvideos/litex-buildenv/) from the
22
+
[TimVideos Project](https://code.timvideos.us/home/), which also produces
23
+
[HDMI2USB](https://hdmi2usb.tv/).
15
24
16
25
## Getting Started
17
26
18
-
* Jan 2018 [blog post with instructions for Numato Mimas v2 and Digilent Arty
@@ -35,19 +40,20 @@ For MicroPython development we use a slightly modified version of the [`HDMI2USB
35
40
* Compile micropython
36
41
* Load micropython
37
42
38
-
### Developing in HDMI2USB LiteX environment
43
+
### Developing in the `litex-buildenv` environment
39
44
40
45
1. Follow [getting started instructions](https://github.com/fupy/upy-fpga-litex-gateware/blob/master/getting-started.md) to setup gateware environment.
41
46
2. Enter the gateware environment with ./scripts/enter-env.sh
42
-
3. Set PLATFORM and TARGET correctly - IE "export PLATFORM=mimasv2" if using the MimasV2
47
+
3. Set PLATFORM and TARGET correctly - eg
48
+
"export PLATFORM=mimasv2" if using the MimasV2
43
49
4. Build the gateware with `make gateware`
44
50
5. Run `./scripts/build-micropython.sh`
45
51
46
52
This will give you an image for your target at `./build/$PLATFORM_$TARGET_lm32/micropython.bin` which you can then flash to your board.
47
53
48
54
#### Running MicroPython inside QEmu environment
49
55
50
-
The HDMI2USB LiteX environment provides some limited QEmu emulation of the FPGA gateware, this means you can test your code without needing hardware.
56
+
The `litex-buildenv` LiteX environment provides some limited QEmu emulation of the FPGA gateware, this means you can test your code without needing hardware.
51
57
52
58
It can be used with the MicroPython image by running `./scripts/build-qemu.sh` and then replacing `-kernel qemu.bin` with `-kernel micropython.bin` in the last command.
53
59
@@ -67,6 +73,8 @@ See the [TimVideos' QEmu for LiteX GitHub Repo](https://github.com/timvideos/qem
* Future [FPGA MicroPython targets are documented in this spreadsheet](https://docs.google.com/spreadsheets/d/10aMU7oPXAhfRbQEVXkMQlRsin2yCkN39B6W1KXiR6d4/edit#gid=0).
0 commit comments