Compile Micropython with Ulab on SAMD51 Thing Plus #14017
-
Hello everybody, I'm looking for a way to compile Micropytohn with ulab in firmware for a teaching project. I tried to follow the guidelines in the Micropython and Ulab documents and forums as well. On the Sparkfun forum, I was recommended to use an AI to help with this task, but I was not successful either. Would it be possible to compile the firmware this way (Micropython + Ulab) for SAMD51 Thing Plus? Do you know of any step-by-step instructions for this? I'm using Windows 11, and I tried the following steps: I downloaded MSYS2 from the website: https://www.msys2.org/ file: msys2-x86_64-20240113.exe I installed Python 3.11.8 and several other programs: I cloned both repositories: I copied the ulab code files (c and h) to the micropython extmod folder. To better organize it, I created a folder called "ulab" there. I made some settings in the files, which I honestly don't understand: and then perform the following commands: I sincerely apologize if the topic is not relevant, but I've been looking for Ulab in Micropython for a while and I haven't found any ready-made build (Micropython+Ulab) that I can use in SAMD51 Thing Plus and Teensy4.1 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I suggest trying to compile MP for your board without ULAB first. Without interfering (copying ULAB) in the cloned file structure.
I assume that this last instruction was not corrected there. When doing the If you managed to do that and you find a nice firmware in the |
Beta Was this translation helpful? Give feedback.
-
@LeandroFernandes88 Next time, please, do not cross-post! It's OK, if you mention an issue on multiple platforms, but use only links, if you want to do so. I've replied here v923z/micropython-ulab#665, but since you asked the same question here without pointing people to that post, no-one had an idea, what kind of progress you were making, or what you had already tried. By fragmenting efforts, you're doing a huge disservice to everyone involved, yourself included. |
Beta Was this translation helpful? Give feedback.
I suggest trying to compile MP for your board without ULAB first. Without interfering (copying ULAB) in the cloned file structure.
Follow instructions here.
I assume that this last instruction was not corrected there. When doing the
make BOARD=SPARKFUN_SAMD51_THING_PLUS
you probably should be in theports/samd
MP subdirectory.If you managed to do that and you find a nice firmware in the
boards/SPARKFUN_SAMD51_THING_PLUS
subdirectory then try to make withmake BOARD=SPARKFUN_SAMD51_THING_PLUS USER_C_MODULES=../../../…