Search found 371 matches

by stijn
Sat Dec 07, 2019 10:22 am
Forum: General Discussion and Questions
Topic: mpy-cross questions
Replies: 8
Views: 229

Re: mpy-cross questions

Yes, if I'm not mistaken the sequence is frozen module > directory > .py > .mpy
by stijn
Wed Dec 04, 2019 12:30 pm
Forum: Programs, Libraries and Tools
Topic: Announcing pygitgrab
Replies: 6
Views: 150

Re: Announcing pygitgrab

Looks nice. So this is like "pip -e" (which also works from local directories, not clear if you have that), but with filtering of files?
by stijn
Thu Nov 28, 2019 9:50 am
Forum: Development of MicroPython
Topic: Mininal Port's Garbage Collection
Replies: 3
Views: 142

Re: Mininal Port's Garbage Collection

I assume you'll have to copy the implementation from gccollect.c of the respective ports, so there's not one suingle function which can be used both for x64 and arm builds.
by stijn
Tue Nov 26, 2019 11:09 am
Forum: Pyboard D-series
Topic: _thread not being enabled
Replies: 8
Views: 211

Re: _thread not being enabled

According to travis.yml it should be something like this:

Code: Select all

make -C ports/stm32 BOARD=NUCLEO_H743ZI CFLAGS_EXTRA='-DMICROPY_PY_THREAD=1'
by stijn
Fri Nov 15, 2019 10:57 am
Forum: Development of MicroPython
Topic: How to get a ll out of an objint (inverse of mp_obj_new_int_from_ll)
Replies: 4
Views: 1004

Re: How to get a ll out of an objint (inverse of mp_obj_new_int_from_ll)

MP_OBJ_TO_PTR is the only way I think, see e.g. objint_mpz.c in the MicroPython source for example: check whether the mp_obj_t is really an int then cast: if(mp_obj_is_type(lhs_in, &mp_type_int)) { mp_obj_int_t* p = (mp_obj_int_t*)MP_OBJ_TO_PTR(lhs_in); ... } If you check the link in my previous ans...
by stijn
Thu Oct 31, 2019 11:52 am
Forum: Other Boards
Topic: [PIC32]Experiment on PIC32MX170F256B, gc.collect() crashes.
Replies: 4
Views: 274

Re: [PIC32]Experiment on PIC32MX170F256B, gc.collect() crashes.

As the name "dummy" suggests, this function is not fully implemented yet. Can't answer your other questions, but I think this is not what 'dummy' means here: the function is implemented, it's just a variable which is at the top of the stack (well, or bottom, depending on how you look at it) when th...
by stijn
Sun Oct 27, 2019 9:45 am
Forum: micro:bit boards
Topic: Anyone here want to share their stories about the first time they fried a micro:bit? - I'll share mine first.
Replies: 6
Views: 381

Re: Anyone here want to share their stories about the first time they fried a micro:bit? - I'll share mine first.

Good point, don't think I've ever seen a probe without it. Wonder why, could be because of historical/utility reasons; I find the signal end of a probe a better kind of clamp (though it cannot do everything a croc can). To the OP: it's not unlikely the majority, from dabbling to fulltime working in ...
by stijn
Thu Oct 24, 2019 9:08 am
Forum: General Discussion and Questions
Topic: Is there some successful MicroPython products?
Replies: 6
Views: 545

Re: Is there some successful MicroPython products?

Always depends on what you are trying to do with it. I'm just going to quote this because it answers pretty much everything. I do not know where you got the idea that MicroPython has "Low operation efficiency, High resource usage and High cost." This sounds like managers talking, not engineers, bec...
by stijn
Wed Oct 09, 2019 5:55 pm
Forum: General Discussion and Questions
Topic: large file support for 32-bit Embedded Linux - seek fails after 2GB
Replies: 4
Views: 203

Re: large file support for 32-bit Embedded Linux - seek fails after 2GB

If lseek64 is generally available on both 32bit an 64bit architectures it might be good to just always use it for the unix port?