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
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ For MicroPython development we use a slightly modified version of the [`HDMI2USB
20
20
(x) cd litex
21
21
(x) Download prebuilt gateware + headers using `get-gateware.sh`
22
22
(x) Compile micropython
23
-
(x) Build flash image
23
+
(x) Load micropython
24
24
25
25
26
26
### Developing in HDMI2USB LiteX environment
@@ -31,14 +31,17 @@ For MicroPython development we use a slightly modified version of the [`HDMI2USB
31
31
32
32
(3) Set PLATFORM and TARGET correctly - IE "export PLATFORM=mimasv2" if using the MimasV2
33
33
34
-
(4) Run ./scripts/build-micropython.sh
34
+
(4) Build the gateware with `make gateware`
35
+
36
+
(5) Run ./scripts/build-micropython.sh
35
37
36
38
This will give you an image for your target at `./build/$PLATFORM_$TARGET_lm32/micropython.bin` which you can then flash to your board.
37
39
38
40
#### Running MicroPython inside QEmu environment
39
41
40
-
The HDMI2USB LiteX environment provides some limited QEmu emulation of the FPGA gateware. This means you can test your code without needing hardware.
42
+
The HDMI2USB LiteX environment provides some limited QEmu emulation of the FPGA gateware, this means you can test your code without needing hardware.
41
43
44
+
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.
0 commit comments