Search found 168 matches
- Thu Jul 16, 2020 6:42 am
- Forum: General Discussion and Questions
- Topic: Season of Docs : MicroPython
- Replies: 23
- Views: 13606
Re: Season of Docs : MicroPython
@jnanjeky I think, some of what you want to write up is already in https://micropython-usermod.readthedocs.io/en/latest/.
- Thu Jul 16, 2020 6:37 am
- Forum: Development of MicroPython
- Topic: ulab, or what you will - numpy on bare metal
- Replies: 108
- Views: 93770
Re: ulab, or what you will - numpy on bare metal
The issue happens with Pyboard D SF2/SF3, with 512 kB internal flash memory, of which 480 kB as FLASH_APP, so only 41 kB is left with MicroPython v1.12, without 'ulab'. As Pyboard D SF2/SF3 has 2MB QSPI flash with 2048 kB as FLASH_EXT, with approx. 1.4 MB free, it is better to know how to move modu...
- Tue Jul 14, 2020 7:39 pm
- Forum: Development of MicroPython
- Topic: ulab, or what you will - numpy on bare metal
- Replies: 108
- Views: 93770
Re: ulab, or what you will - numpy on bare metal
Sorry, at cross purposes. I was referring to the issue with firmware size. There is evidently also something else (and above my pay grade) at play here. I can't really comment on the firmware size issue. I know that I can still compile for the pyboard, in fact, I still have something like a 100 kB ...
- Mon Jul 13, 2020 4:47 pm
- Forum: Development of MicroPython
- Topic: ulab, or what you will - numpy on bare metal
- Replies: 108
- Views: 93770
Re: ulab, or what you will - numpy on bare metal
@v923z This is a hardware issue with SF2W and SF3W Pyboard D. It doesn't affect the Unix build. I am not sure. According to the report on github, (https://github.com/v923z/micropython-ulab/issues/132), it is a glitch in the makefile. It seems to me that the makefiles don't contain the path of the r...
- Sun Jul 12, 2020 7:20 pm
- Forum: Development of MicroPython
- Topic: ulab, or what you will - numpy on bare metal
- Replies: 108
- Views: 93770
Re: ulab, or what you will - numpy on bare metal
@v923z, do you want that I post this as a GitHub issue ? I don't quite know. I mean, this seems to be a distribution-specific problem. On ubuntu, I haven't had this issue, and no-one has mentioned any difficulties. But I am not trying to imply that you shouldn't bring it up on github, if you think ...
- Sun Jun 07, 2020 3:41 pm
- Forum: Development of MicroPython
- Topic: ulab, or what you will - numpy on bare metal
- Replies: 108
- Views: 93770
Re: ulab, or what you will - numpy on bare metal
Any news about firmware for Pyboard D SF2W/SF3W with ulab ? You should compile the firmware yourself from the source: https://github.com/v923z/micropython-ulab Let me know if there are any difficulties. You can also easily customise your ulab version (exclude sub-modules), if you find that you are ...
- Thu May 07, 2020 6:28 am
- Forum: Development of MicroPython
- Topic: calling python function in C
- Replies: 6
- Views: 4396
Re: calling python function in C
Bit of a predicament, but still, thanks for the pointer!
- Wed May 06, 2020 9:28 am
- Forum: Development of MicroPython
- Topic: calling python function in C
- Replies: 6
- Views: 4396
Re: calling python function in C
Thanks again for the clarification! I would like to ask a related question, namely, is there a way of finding out the number of (position) arguments a function requires? Say, I have def f(x, a, b): return a*x + b How do I get 3? If I get a handle to the function through mp_obj_type_t *type = mp_obj_...
- Tue Apr 28, 2020 7:42 am
- Forum: Development of MicroPython
- Topic: calling python function in C
- Replies: 6
- Views: 4396
Re: calling python function in C
Jim, Many thanks for your illuminating comments! I would like to ask, whether it is possible to call a function that was defined in python at the C level. The simple answer is that yes this is done all over the place via mp_call_function_n_kw (and the wrappers e.g. mp_call_function_0). Given an mp_o...
- Tue Apr 28, 2020 5:35 am
- Forum: Development of MicroPython
- Topic: calling python function in C
- Replies: 6
- Views: 4396
calling python function in C
Hi all, I would like to ask, whether it is possible to call a function that was defined in python at the C level. Here is the context: in ulab , the functions of the micropython math module are vectorised, i.e., one can do import ulab from ulab import vector a = ulab.array([1, 2, 3, 4]) b = vector.s...