Search found 230 matches

by cefn
Sat Apr 29, 2017 10:10 am
Forum: ESP8266 boards
Topic: Implementing a Firmata CLIENT in micropython
Replies: 2
Views: 6544

Implementing a Firmata CLIENT in micropython

I am starting this thread to explore the potential for running a micropython-implemented Firmata client (see https://github.com/firmata/protocol for an intro to Firmata). Such an implementation would enable,for example, an ESP8266 to act as a pythonic remote-control for an Arduino. @pfalcon on githu...
by cefn
Wed Apr 26, 2017 6:06 am
Forum: ESP8266 boards
Topic: Reclaiming last few flakes of RAM - need expert help
Replies: 6
Views: 5379

Re: Reclaiming last few flakes of RAM - need expert help

I have committed a rollup of the changes I made into a fork in our micropython repo https://github.com/micropython/micropython/compare/master...ShrimpingIt:memorymax I attempted these changes to increase availability of storage for frozen modules and for availability of RAM as part of our Avatap pro...
by cefn
Tue Apr 25, 2017 4:48 pm
Forum: ESP8266 boards
Topic: Reclaiming last few flakes of RAM - need expert help
Replies: 6
Views: 5379

Re: Reclaiming last few flakes of RAM - need expert help

OK, I've now succeeded at gaining even more RAM. The trick was to modify boot.py as follows - note everything to do with flash and filesystem is commented out on load. import gc gc.threshold((gc.mem_free() + gc.mem_alloc()) // 4) import uos """ from flashbdev import bdev try: if bdev: vfs = uos.VfsF...
by cefn
Tue Apr 25, 2017 3:26 pm
Forum: ESP8266 boards
Topic: Reclaiming last few flakes of RAM - need expert help
Replies: 6
Views: 5379

Re: Reclaiming last few flakes of RAM - need expert help

OK, from rummaging I have now tried disabling MICROPY_PY_USSL and MICROPY_SSL_AXTLS within the micropython/esp8266/Makefile before building with frozen modules and sneakily tried to increase the STATIC char heap in main.c to 48 x 1024 which so far has not broken anything. Before the SSL/TLS build ch...
by cefn
Tue Apr 25, 2017 11:56 am
Forum: ESP8266 boards
Topic: Reclaiming last few flakes of RAM - need expert help
Replies: 6
Views: 5379

Reclaiming last few flakes of RAM - need expert help

Very grateful for help from Micropython experts, if there are any firmware build tricks or code architecture tricks we have missed to minimise RAM usage. It would be very sad to have to switch to a Pi this late in the game, as well as it being impossible to buy bulk Pi Zero boards for our project, (...
by cefn
Mon Apr 24, 2017 6:00 pm
Forum: ESP8266 boards
Topic: Combining Native Code with Micropython
Replies: 5
Views: 11172

Re: Combining Native Code with Micropython

The desktop python rendering test case relies on Pillow, but bitfont () simply takes a callback plot(x,y) function, which can be provided by anything. In the case of my current project using my st7920 library (https://github.com/ShrimpingIt/micropython-st7920) on ESP8266, a test case is as follows.....
by cefn
Mon Apr 17, 2017 1:12 am
Forum: ESP8266 boards
Topic: Adding Frozen Modules causes a region to overflow
Replies: 1
Views: 2425

Re: Adding Frozen Modules causes a region to overflow

I figured it out! No idea why I couldn't find these resources the first time I searched. I think I was including too much of the error message. In the end, just searching for .irom0.text got me to finding out more about the issue, then I discovered there were .ld files, and finally that there was an...
by cefn
Sat Apr 15, 2017 1:45 am
Forum: ESP8266 boards
Topic: Combining Native Code with Micropython
Replies: 5
Views: 11172

Re: Combining Native Code with Micropython

Thanks for your reply! I'll take a look for the posts you mention. Having that extra info of specific users to track who have provided 'tutorials' is handy as I'm a bit lost in all the detail of discussions between experts otherwise. For the pixel display project I ended up putting together a simple...
by cefn
Sat Apr 15, 2017 1:40 am
Forum: ESP8266 boards
Topic: Adding Frozen Modules causes a region to overflow
Replies: 1
Views: 2425

Adding Frozen Modules causes a region to overflow

I'm having a difficulty putting Frozen Modules into program memory. I'm trying to do this to minimise the RAM used by my project, which is heavily skewed towards text data. ``` LINK build/firmware.elf xtensa-lx106-elf-ld: build/firmware.elf section `.irom0.text' will not fit in region `irom0_0_seg' ...
by cefn
Fri Jan 06, 2017 3:03 pm
Forum: ESP8266 boards
Topic: Combining Native Code with Micropython
Replies: 5
Views: 11172

Combining Native Code with Micropython

I would like to combine a capability for which native code already exists (with Espressif toolchain) For example this... https://github.com/wdim0/esp8266_fast_lcd_driver_hspi ...would be amazing to have access to from Python. It's demonstrated in this video... https://www.youtube.com/watch?v=X0mwfAq...