Search found 550 matches

by Damien
Fri Feb 23, 2018 7:08 am
Forum: Development of MicroPython
Topic: [SOLVED] mutex deadlock during garbage collection
Replies: 7
Views: 3690

Re: mutex deadlock during garbage collection

The GC_ENTER/GC_EXIT macros are really only intended to be used by the GC for the case that multithreading is enabled and the GIL is disabled . It's probably going to be safer in general to enable the GIL so that things like list or dict update appear atomic to MicroPython scripts. Also, according t...
by Damien
Wed Feb 21, 2018 12:51 pm
Forum: The MicroPython pyboard
Topic: uasyncio deque problem
Replies: 6
Views: 4454

Re: uasyncio deque problem

The ucollections.deque type has now been merged into the main, official repository. So the latest version of uasyncio from PyPI (uasyncio v2.0) should now work with the pyboard and other supported boards. I've tested it on a PYBLITEv1.0 and an ESP32 and it seems to work without any issues. If you ar...
by Damien
Wed Feb 07, 2018 7:45 am
Forum: Announcements and News
Topic: Talks and videos about MicroPython
Replies: 4
Views: 6002

Talks and videos about MicroPython

At Linux Conf AU 2018 (held in January in Sydney) there was a workshop on "Getting started with MicroPython" by Nick Moore. The full video can be found here: https://www.youtube.com/watch?v=inUMgHQ62sA . In particular at the end there are some words about supporting development of MicroPython: https...
by Damien
Wed Feb 07, 2018 7:32 am
Forum: Programs, Libraries and Tools
Topic: State of micropython-lib?
Replies: 30
Views: 8747

Re: State of micropython-lib?

Hello everyone, Thanks to those who raised their concerns over the recent forking of MicroPython and the library. I agree the current state is confusing and explanations are needed. Without going into specifics, Paul (aka pfalcon) can oftentimes demonstrate inappropriate behaviour in discussions. Fo...
by Damien
Wed Feb 07, 2018 2:03 am
Forum: General Discussion and Questions
Topic: HTTPS stream halts before finished
Replies: 5
Views: 1069

Re: HTTPS stream halts before finished

MicroPython's ssl.read(n) method will try to read exactly n bytes so will block forever if the server doesn't send enough. I think the fix simply comes down to the fact that you need to parse the "content-length" header and then only request exactly that many bytes of data after the headers are fini...
by Damien
Fri Nov 17, 2017 12:56 am
Forum: Development of MicroPython
Topic: [SOLVED]MP_FROZEN_STR, MP_FROZEN_MPY - which can execute from flash?
Replies: 5
Views: 462

Re: MP_FROZEN_STR, MP_FROZEN_MPY - which can execute from flash?

Regarding the MPY, why do I need to convert the .mpy file - which is pure binary - to the frozen-mpy-in-C format? I guess I’m asking: is the .mpy format useful in itself either now or in the future (ie without converting to mpy-in-C format)? Yes .mpy is useful. There are 3 main ways to import and e...
by Damien
Thu Nov 16, 2017 5:58 am
Forum: The MicroPython pyboard
Topic: is the 32-kHz crystal necessary?
Replies: 2
Views: 294

Re: is the 32-kHz crystal necessary?

The firmware will try to autodetect the presense of an external 32kHz crystal (LSE). If the LSE fails to start then the firmware will fallback to the LSI setting (internal osc). So, to answer your question, if you remove the crystal and use the pre-complied PYBv1.x firmware then it will (or at least...
by Damien
Thu Nov 16, 2017 5:52 am
Forum: Programs, Libraries and Tools
Topic: mqtt.simple connection over ssl
Replies: 2
Views: 240

Re: mqtt.simple connection over ssl

I assume you're using an esp8266-based board. In that case the ssl certs are not yet supported but there is some working code which adds this feature, see here: https://github.com/micropython/micropython/pull/3398 . At that link you can also see an example of using MQTT.
by Damien
Thu Nov 16, 2017 5:48 am
Forum: Development of MicroPython
Topic: [SOLVED]MP_FROZEN_STR, MP_FROZEN_MPY - which can execute from flash?
Replies: 5
Views: 462

Re: MP_FROZEN_STR, MP_FROZEN_MPY - which can execute from flash?

FROZEN_STR will store the scripts as strings in flash and when imported compile them at runtime and store the compiled bytecode in RAM. So that won't help to reduce RAM usage, it's instead a nice way to have scripts and resources in flash without having a filesystem). FROZEN_MPY is what you want: it...
by Damien
Tue Nov 14, 2017 1:51 am
Forum: General Discussion and Questions
Topic: This forum's behaviour has changed for the worse.
Replies: 9
Views: 1049

Re: This forum's behaviour has changed for the worse.

I updated the theme to we_universal 2.5.2 and re-installed the fontawesome font. I think all the problems are now fixed. Re using a different forum software: Discourse looks interesting, it has a lot of stars on github (23k+) and even a phpBB3 import tool. But, as was mentioned above, it opens up a ...