Search found 168 matches
- Fri Jul 31, 2020 2:24 pm
- Forum: Development of MicroPython
- Topic: compiling native modules (ulab)
- Replies: 7
- Views: 5158
Re: compiling native modules (ulab)
Jim, many thanks for your very exhaustive reply! Sometimes I have the feeling that the forum is a one-man show, and refrain from asking a question. and even worse, I am not sure I could decipher all the limitations properly. Yes, unfortunately this is quite a complicated feature and getting to the b...
- Thu Jul 30, 2020 4:27 pm
- Forum: Development of MicroPython
- Topic: compiling native modules (ulab)
- Replies: 7
- Views: 5158
compiling native modules (ulab)
Hi all, I have recently seen that it is possible to turn .c code into .mpy files, so that the output can be loaded as a standard module without having to re-compile the firmware. This sounds fantastic, except that there are limitations, and even worse, I am not sure I could decipher all the limitati...
- Mon Jul 27, 2020 5:44 pm
- Forum: Development of MicroPython
- Topic: ulab, or what you will - numpy on bare metal
- Replies: 108
- Views: 93366
Re: ulab, or what you will - numpy on bare metal
25 new MicroPython firmwares with ulab v0.54 (released in July 24 2020) were published : - 11 with combinations of sp, dp, sp & _thread, dp & _thread, sp & network, dp & network for Pyboard v1.1/Lite v1.0 ; - 12 with combinations of sp, dp, sp & _thread, dp & _thread for Pyboard D SF2/SF3/SF6 ; - 2...
- Sun Jul 26, 2020 9:20 pm
- Forum: ESP8266 boards
- Topic: ulab for ESP8266
- Replies: 19
- Views: 11034
Re: ulab for ESP8266
Well, we can agree to disagree. You can produce firmware with ulab, but that might not include threading, or SD card support etc. I see your point about the inexperience of the users, but compiled firmware will always be out of sync with either micropython, or third-party libraries. Yes, I agree th...
- Sun Jul 26, 2020 8:49 pm
- Forum: ESP8266 boards
- Topic: ulab for ESP8266
- Replies: 19
- Views: 11034
Re: ulab for ESP8266
I think the cleanest way is to compile the firmware yourself, if you need ulab. I disagree. The large majority of MicroPython users don't know/have time/interest to compile firmware. Part of them have interest in using ulab. Well, we can agree to disagree. You can produce firmware with ulab, but th...
- Sun Jul 26, 2020 2:42 pm
- Forum: ESP8266 boards
- Topic: ulab for ESP8266
- Replies: 19
- Views: 11034
Re: ulab for ESP8266
I see. Has the ESP8266 double or float implementation? No, MicroPython for ESP8266 is fixed with single precision for float point numbers (SP/FP32). This sort of makes sense now: for each FFT, there are four arrays: real and imaginary inputs, and real and imaginary outputs. So, with 2048 points, yo...
- Sat Jul 25, 2020 8:22 pm
- Forum: ESP8266 boards
- Topic: ulab for ESP8266
- Replies: 19
- Views: 11034
Re: ulab for ESP8266
Maybe an option would be : - to implement all ulab functions with "ICACHE_FLASH_ATTR" decorator; - detect when not building for ESP8266, then "ICACHE_FLASH_ATTR" decorator could be set as empty. I am not sure it is an elegant solution. What happens, if some other platform requires other kind of dec...
- Sat Jul 25, 2020 2:30 pm
- Forum: ESP8266 boards
- Topic: ulab for ESP8266
- Replies: 19
- Views: 11034
Re: ulab for ESP8266
I am not against posting the instructions on https://github.com/v923z/micropython-ulab/. Raise an issue, if you want to do that! If the PR#6284 is merged, then the instructions to compile MicroPython for ESP8266 + ulab will be very simple : use ulab >= 0.54.0 & MicroPython newer than 'some date'. T...
- Fri Jul 24, 2020 2:16 pm
- Forum: ESP8266 boards
- Topic: ulab for ESP8266
- Replies: 19
- Views: 11034
Re: ulab for ESP8266
Solved the issue (3), succeeded building MicroPython firmware with ulab v0.54.0 for ESP8266 ! Yeah, the new version of ulab, release some hours ago . I'll later (time to sleep...) describe the needed changes in '...esp8266/Makefile' and '...esp8266/mpconfigport.h', make a "README.md" in the reposit...
- Thu Jul 16, 2020 6:00 pm
- Forum: Development of MicroPython
- Topic: ulab, or what you will - numpy on bare metal
- Replies: 108
- Views: 93366
Re: ulab, or what you will - numpy on bare metal
@rcolistete As a possible workaround, I could revive the 1D implementation of ulab. That significantly reduces code-size, since you never have to check, whether you have a matrix or a straight array, and you never have to implement nested loops. I floated this idea a couple of months ago, but there...