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
Then you have to include `ulab` in the compilation process by editing `mpconfigport.h` of the directory of the port for which you want to compile, so, still on the command line, navigate to `micropython/ports/unix`, or `micropython/ports/stm32`, or whichever port is your favourite, and edit the `mpconfigport.h` file there. All you have to do is add a single line at the end:
27
+
28
+
```
29
+
#define MODULE_ULAB_ENABLED (1)
30
+
```
31
+
32
+
This line will inform the compiler that you want `ulab` in the resulting firmware. If you don't have the cross-compiler installed, your might want to do that now by executing
33
+
34
+
```
35
+
sudo apt-get install gcc-arm-none-eabi
36
+
```
37
+
If that was successful, you can try to run the make command in the port's directory as
38
+
```
39
+
make BOARD=PYBV11 USER_C_MODULES=../../../ulab all
40
+
```
41
+
which will prepare the firmware for pyboard.v.11. Provided that you managed to compile the firmware, you would upload that either by running
42
+
```
43
+
dfu-util --alt 0 -D firmware.dfu
44
+
```
45
+
or
46
+
```
47
+
python pydfu.py -u firmware.dfu
48
+
```
49
+
50
+
In case you got stuck somewhere in the process, a bit more detailed instructions can be found under https://github.com/micropython/micropython/wiki/Getting-Started, and https://github.com/micropython/micropython/wiki/Pyboard-Firmware-Update.
0 commit comments