Search found 328 matches

by stijn
Thu Jun 13, 2019 3:00 pm
Forum: Development of MicroPython
Topic: Can't load external C modules in MP Windows
Replies: 2
Views: 98

Re: Can't load external C modules in MP Windows

You cross-compiled the windows port then, right? C modules for it hasn't been implemented completely, only the bare minimum to make it build.
by stijn
Mon Jun 10, 2019 7:42 am
Forum: ESP32 boards
Topic: Need help making module
Replies: 2
Views: 131

Re: Need help making module

Looks like esp_camera_sensor_get is returning NULL. Which, looking at https://github.com/espressif/esp32-camera/blob/master/driver/include/esp_camera.h, is because you're not initalizing the camera using esp_camera_init. But it always returns "Flipping Failed". Just for information: you're using inc...
by stijn
Sat Jun 08, 2019 11:26 am
Forum: Other Boards
Topic: STM32L072KBU3
Replies: 4
Views: 199

Re: STM32L072KBU3

Ok thanks. Amount of memory should be the least of my concerns as we don't have a lot of requirements as wrt features (both language and std lib). I'm only getting the board ready in 2 to 3 weeks or so, but depending on other hardware I'm working on it might be even longer before I'll actually get t...
by stijn
Sat Jun 08, 2019 10:39 am
Forum: Other Boards
Topic: STM32L072KBU3
Replies: 4
Views: 199

Re: STM32L072KBU3

Thanks for the elaborate reply. The USB is nice but I don't think there's room for that on the PCB and housing.. I get that there's enough boards already but it's ok if we'd use this and it doesn't make it into the mainline. Things like onboard filesystem etc are not of interest for us and we also d...
by stijn
Fri Jun 07, 2019 7:23 pm
Forum: Other Boards
Topic: STM32L072KBU3
Replies: 4
Views: 199

STM32L072KBU3

Long-time MicroPython user but only on PC and pretty clueless to the microcontroller side of things. We have a fairly simple device running an ATtiny programmed in C which gets data from one UART, does some translation/command handling and forwards it to a second UART upon getting a hardware trigger...
by stijn
Mon Jun 03, 2019 7:36 am
Forum: Programs, Libraries and Tools
Topic: mpy-cross, how to build binary for windows
Replies: 3
Views: 142

Re: mpy-cross, how to build binary for windows

For reference, since the title asks about building, there are alternatives: there's a Makefile which can be built using gcc for windows (i.e. from Mingw-w64, can be obtained as part of Cygwin or MSYS2) and a project file for Msvc is on it's way.
by stijn
Mon May 27, 2019 6:24 pm
Forum: General Discussion and Questions
Topic: Windows development enviroment/IDE?
Replies: 8
Views: 923

Re: Windows development enviroment/IDE?

Coming from a traditional C environment with full debugging I find micro-python very frustrating. I have debugged C code on microcontrollers where the only way to know what the code is doing is setting digital I/O, so it can get worse than debugging MicroPython, where at least you can sprinkle prin...
by stijn
Tue May 14, 2019 11:12 am
Forum: Programs, Libraries and Tools
Topic: [SOLVED] Possible to use cpp to create a new module?
Replies: 5
Views: 177

Re: Possible to use cpp to create a new module?

jimmo wrote:
Tue May 14, 2019 11:03 am
There's no heap for new/delete (aka system malloc/free) to allocate on. In the same way you can't use regular `malloc`.
Yeah but that's mostly the case if MicroPython runs on bare metal (couldn't derive from OP's post whether that is the case or not).
by stijn
Tue May 14, 2019 9:59 am
Forum: Programs, Libraries and Tools
Topic: [SOLVED] Possible to use cpp to create a new module?
Replies: 5
Views: 177

Re: Possible to use cpp to create a new module?

You'll have to carefully figure out where your C / C++ boundary is so that you can make a bunch of "extern C" accessors In practice I think the only place this is needed is where code compiled as C++ includes the micropython headers. then ensure that if any of the C++ code uses new/delete that they...
by stijn
Tue May 07, 2019 2:32 pm
Forum: Development of MicroPython
Topic: Run more than one micropython instance
Replies: 30
Views: 7753

Re: Run more than one micropython instance

Sorry should have been more clear. With 'in software' I meant something like an intermediate software layer which itself is the sole 'owner' of a device, opens devices, receives the interrupts and so on. And all other components don't open devices directly but instead acquire them from the intermedi...