ULAB in Micropython for SAMD51 Thing Plus and TEENSY4.1 #665
Replies: 6 comments 10 replies
-
The thing plus should have enough flash and RAM, so I don't see why it would be impossible to compile firmware for that. Here are the |
Beta Was this translation helpful? Give feedback.
-
OK, but this seems to have nothing to do with |
Beta Was this translation helpful? Give feedback.
-
You shouldn't copy anything, and you shouldn't edit any files. You simply clone two repositories, as described here: https://github.com/v923z/micropython-ulab/?tab=readme-ov-file#firmware
|
Beta Was this translation helpful? Give feedback.
-
The error is caused by this https://github.com/micropython/micropython/blob/90e517862d055b8ec95a0c7067052c0ba6cd0df1/py/parsenum.c#L219-L223 Your platform doesn't seem to support built-in complex numbers, so the function in question is not defined. I should fix that, but in the meantime, there are multiple options here. First, you can simply disable the whole IO module here Lines 506 to 512 in 63dfbd1 Lines 538 to 544 in 63dfbd1 loadtxt function. Or you can call the correct function in micropython-ulab/code/numpy/io/io.c Line 242 in 63dfbd1 |
Beta Was this translation helpful? Give feedback.
-
I've fixed it in #666. Can you, please, pull the changes, and try again? |
Beta Was this translation helpful? Give feedback.
-
Hello again, I apologize for all the inconvenience I have been causing on your forum and possibly on others. Because I actually asked for help in several places due to a certain urgency of time and not knowing that everyone would be so helpful in all places. Learning a new language, such as programming, can seem really challenging, especially for those who have a native language problem. I sincerely apologize if I commited any mistake or exposed all your brilliant work with the creation and maintenance of ulab, which is definitely essential for my project today. I thank everyone, who even in small collaborations, helped me get a little closer to a consistent answer. I followed these steps, briefly: And unfortunately it presented the same result, there being a problem when finishing compiling the file. I was able to successfully perform the same procedure for ports/mimxrt BOARD=TEENSY41 and it generated the necessary files, including .hex. I confirmed by uploading the firmware to the microcontroller and it seemed to work normally. So, if you could, please take another look at this matter. NOTE: Would it be too abusive to ask for a Micropython UF2 file with Ulab for the SPARKFUN_SAMD51_THING_PLUS microcontroller? (PS: I don't think I would have the know-how, nor the capacity, to try other compilers at this point, after so many trys) |
Beta Was this translation helpful? Give feedback.
-
Hello everybody.
It is possible to compile ulab to use in micropython in the boards SAMD51 Thing Plus and TEENSY4.1?
I'm looking to UF2(SAMD51) and HEX (Teensy4.1) files Micropython already with ulab and I couldn't find anything.
If there is a guide teaching how to compile this build or Iif somebody has a firmware already done I would thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions