Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Compiling Micropython for HiFive1-revb from scratch #547

Open
abdrehman98 opened this issue Sep 25, 2020 · 0 comments
Open

Compiling Micropython for HiFive1-revb from scratch #547

abdrehman98 opened this issue Sep 25, 2020 · 0 comments

Comments

@abdrehman98
Copy link

I am trying to compile micropython from scratch for HiFive1-reb board. I found this git repo from a post on Micropython Forum.

I have downloaded freedom-e-sdk and followed instructions given when I run the following command it compiles successfully:

make PROGRAM=timer-interrupt TARGET=sifive-hifive1-revb CONFIGURATION=release software

Now when I set up my environment according to the repo mentioned above. I get the following error when I try to compile Micropython Port for HiFive1-revb board.

┌─(~/mp_riscv/micropython/ports/freedom-e)───────────(abdrehman@pop-os:pts/4)─┐
─(15:15:29 on experimental ✹)──> make                          ─(Fri,Sep25)─
Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity.
GEN build/genhdr/mpversion.h
GEN build/genhdr/qstr.i.last
In file included from main.c:5:
/home/abdrehman/src/freedom-e-sdk/bsp/sifive-hifive1-revb/metal.h:8:10: fatal error: metal/machine/platform.h: No such file or directory
 #include <metal/machine/platform.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [../../py/mkrules.mk:75: build/genhdr/qstr.i.last] Error 1
make: *** Deleting file 'build/genhdr/qstr.i.last'

Any help will be appreciated. Thanks in advance.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant