Search found 640 matches

by OutoftheBOTS_
Sun Sep 15, 2019 8:55 am
Forum: General Discussion and Questions
Topic: displaying byte data with REPL
Replies: 3
Views: 62

Re: displaying byte data with REPL

Most of the time I use ustruct.unpack to unpack the bytes from serial in to what ever they suppose to be.
by OutoftheBOTS_
Sat Sep 14, 2019 8:58 pm
Forum: ESP32 boards
Topic: Wanting to get into making game content for the M5Stack
Replies: 1
Views: 37

Re: Wanting to get into making game content for the M5Stack

A member here has developed a really nice game engine for micropython see this thread viewtopic.php?f=15&t=6771&p=38512&hilit=game#p38512
by OutoftheBOTS_
Mon Sep 09, 2019 1:21 am
Forum: Development of MicroPython
Topic: compiling C modules into loadable shared objects
Replies: 32
Views: 823

Re: compiling C modules into loadable shared objects

case 1 is that I write a C function to do a heavy computational task maybe a numpy type task e.g fft. That's the case that was demoed in Damien's video from the Melbourne MicroPython Meetup. It's the same as generating the QR code. Again Jimmo I can't thank you enough for continuing to volunteering...
by OutoftheBOTS_
Sun Sep 08, 2019 8:19 pm
Forum: Development of MicroPython
Topic: compiling C modules into loadable shared objects
Replies: 32
Views: 823

Re: compiling C modules into loadable shared objects

OK trying not to get in over my head of understanding here. My understanding is this. case 1 is that I write a C function to do a heavy computational task maybe a numpy type task e.g fft. MP passes a buffer of data to that C function and the C function executes the fft and then returns a buffer with...
by OutoftheBOTS_
Sun Sep 08, 2019 7:44 am
Forum: Development of MicroPython
Topic: compiling C modules into loadable shared objects
Replies: 32
Views: 823

Re: compiling C modules into loadable shared objects

This isn't an issue for the QR code example from the videos because it (the QR library) is an entirely self-contained piece of code that has no other dependencies or shared state. Ok that's not actually true...it depends on (IIRC) strlen() so there's some handling for that. OK I see there is 2 sort...
by OutoftheBOTS_
Sat Sep 07, 2019 8:22 pm
Forum: Development of MicroPython
Topic: compiling C modules into loadable shared objects
Replies: 32
Views: 823

Re: compiling C modules into loadable shared objects

The idea being to use esptool (or whatever DFU tool) to flash the core MicroPython firmware only. And to add (native and/or byte) code to the memory-mapped scratch space in a second step using MicroPython (rather than using the standard freezing procedure). Sort of like a modified upip. This means ...
by OutoftheBOTS_
Sat Sep 07, 2019 1:45 am
Forum: Development of MicroPython
Topic: compiling C modules into loadable shared objects
Replies: 32
Views: 823

Re: compiling C modules into loadable shared objects

Is it possible to create an option when building firmware u can opt to leave extra space in the boot sector for both later firmware updates but also the option of coping this compiled C code as native code to this space in the boot sector?? Yep! This is exactly what I was referring to when I said "...
by OutoftheBOTS_
Fri Sep 06, 2019 8:18 pm
Forum: Development of MicroPython
Topic: compiling C modules into loadable shared objects
Replies: 32
Views: 823

Re: compiling C modules into loadable shared objects

In theory, you could reserve a small chunk of internal flash... Thank you @jimmo for those very clear explanations! So freezing a module has a significant advantage today to reduce RAM consumption. Is it really necessary to imagine reserving a small chunk of internal flash in advance? Wouldn't it b...
by OutoftheBOTS_
Thu Sep 05, 2019 8:13 pm
Forum: Development of MicroPython
Topic: compiling C modules into loadable shared objects
Replies: 32
Views: 823

Re: compiling C modules into loadable shared objects

I think the more interesting problem to solve is of distribution ; how to ensure the right native module, built for the correct architecture, is made available... I am wondering if it is possible to build into the .mpy file something that identifies whether it has port/arch pacific code. Then if an...
by OutoftheBOTS_
Mon Sep 02, 2019 8:44 pm
Forum: Development of MicroPython
Topic: compiling C modules into loadable shared objects
Replies: 32
Views: 823

Re: compiling C modules into loadable shared objects

I do believe they are working on exactly this atm. They are working on being able to compile any C code into machine instructions then MP being able to execute the machine instructions. A problem to consider with this is that unlike your PC where everyone is running the same architecture with the sa...