Search found 545 matches

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: 148

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: 98

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: 75

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: 148

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: 448

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 ...
by Damien
Tue Nov 14, 2017 12:48 am
Forum: The MicroPython pyboard
Topic: Little wonders need some thanks
Replies: 3
Views: 215

Re: Little wonders need some thanks

Thanks guys! It's my pleasure to have developed MicroPython and the pyboard. Coming from an academic background, it's the technical side of things that I enjoy the most, and still everyday I love finding new ways to optimise and improve the code. And it's fantastic to have people using the software ...
by Damien
Fri Oct 20, 2017 10:54 pm
Forum: Drivers for External Components
Topic: Using the ESP with a Ethernet Port through SPI
Replies: 7
Views: 344

Re: Using the ESP with a Ethernet Port through SPI

It may actually be possible to use the Wiznet in raw Ethernet mode with the esp8266. It would at least be interesting to try and get it working. The main thing it depends on is being able to call netif_add in lwip. It depends how much the esp8266 lwip is modified from the stock version. Sent from my...
by Damien
Sat Oct 14, 2017 11:51 am
Forum: General Discussion and Questions
Topic: This forum's behaviour has changed for the worse.
Replies: 9
Views: 448

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

Yes, I did upgrade phpBB to the latest version, v3.2.1 (up from v3.1.9), so that's the reason for some changes (and hopefully enhancements!). That "View first unread post" text is a bit annoying... but likely requires editing the phpBB source code to change it.
by Damien
Thu Sep 28, 2017 6:00 am
Forum: General Discussion and Questions
Topic: pic16bit port on dspic33ep512mc202 with xc16 1.32
Replies: 6
Views: 322

Re: pic16bit port on dspic33ep512mc202 with xc16 1.32

The pic16bit port was designed for and verified to run on the dsPIC33FJ256GP506, which has 256k of flash and 8k-16k of RAM. And it should still work correctly on this chip. It should also work on other 16-bit dsPIC chips that have similar specs. But if you try with a chip that needs 24-bit pointers ...
by Damien
Thu Sep 28, 2017 5:48 am
Forum: ESP8266 boards
Topic: Can't get a stable esp01s with simple timer loop
Replies: 2
Views: 114

Re: Can't get a stable esp01s with simple timer loop

You might need to close the response after you are finished with it, to free up socket resources. Something like:

Code: Select all

resp = urequests.get(...)
resp.close()