Search found 61 matches
- Mon Jul 08, 2019 4:00 pm
- Forum: ESP8266 boards
- Topic: Creating larger ROMs
- Replies: 23
- Views: 15458
Re: Creating larger ROMs
Thanks for the guidance guys. It is a shame that only 1MB of the 4MB flash can be used by MicroPython images. As I read on this subject, I see many others have had the same space constraint issues as I'm having because of this limitation. I would like to understand this limitation better. Is the lim...
- Mon Jul 08, 2019 3:19 pm
- Forum: ESP8266 boards
- Topic: Creating larger ROMs
- Replies: 23
- Views: 15458
Re: Creating larger ROMs
As far as I remember from previous posts here, ESP8266 only executed code from the first 1 MByte of flash. One could wonder, why it is not possible to have frozen bytecode beyond that limit, because it is read as data. The ESP8266 memory maps the flash, but only has a 1MiB region to map it to. So t...
- Mon Jul 08, 2019 2:19 pm
- Forum: ESP8266 boards
- Topic: Creating larger ROMs
- Replies: 23
- Views: 15458
Re: Creating larger ROMs
As far as I remember from previous posts here, ESP8266 only executed code from the first 1 MByte of flash. One could wonder, why it is not possible to have frozen bytecode beyond that limit, because it is read as data. Are you lumping arbitrary files in as "code"? It would for sure be great to be a...
- Mon Jul 08, 2019 7:41 am
- Forum: ESP8266 boards
- Topic: How to disable all REPL
- Replies: 10
- Views: 11394
Re: How to disable all REPL
You can just add it to mpconfigport.h though? Either way, I think that comment is a bit unclear, when it says you "won't get a REPL", it really means "won't get the ability to use a REPL in your firmware", because if you disable that flag, then pyexec_*_repl() will be unavailable. You will need to ...
- Mon Jul 08, 2019 7:10 am
- Forum: ESP8266 boards
- Topic: How to disable all REPL
- Replies: 10
- Views: 11394
Re: How to disable all REPL
I'm up working too late. I came back to delete my comment, but your reply was too fast!
I clicked on the minimal/mpconfigport.h, not esp8266/mpconfigport.h. There is no MICROPY_ENABLE_COMPILER in the esp8266 port.
I clicked on the minimal/mpconfigport.h, not esp8266/mpconfigport.h. There is no MICROPY_ENABLE_COMPILER in the esp8266 port.
- Mon Jul 08, 2019 6:52 am
- Forum: ESP8266 boards
- Topic: How to disable all REPL
- Replies: 10
- Views: 11394
Re: How to disable all REPL
I think you're going to have to make a custom firmware build to disable it. If you follow through ports/esp8266/main.c, you can see how mp_reset() runs your boot.py and main.py then init_done() drops into the REPL loop. Based on this comment in mpconfigport.h I would think I could just set MICROPY_...
- Sun Jul 07, 2019 8:03 pm
- Forum: ESP8266 boards
- Topic: Creating larger ROMs
- Replies: 23
- Views: 15458
Creating larger ROMs
micropython commit 5c34c2ff7f0c44ec9e1d77059162584c6bd99c92 My ESP8266 has 4MB of flash, and though my ROM is just over 1MB in size, my ESP8266 will not boot when I load that ROM. Here is some build output from a build that will not boot: text data bss dec hex filename 1141216 1084 68544 1210844 127...
- Wed Jul 03, 2019 5:47 am
- Forum: General Discussion and Questions
- Topic: Copy of a dictionnary
- Replies: 7
- Views: 6270
Re: Copy of a dictionnary
Based on your dict in a dict example it appears you are using only immutable objects (strings and integers), dicts, and lists in the thing you want to copy. If that is the case it would be much more efficient to do a json.dumps() followed immediately by a json.loads(). The deepcopy function has a lo...
- Mon Jul 01, 2019 4:37 pm
- Forum: ESP8266 boards
- Topic: Picoweb request doesn't return all form data
- Replies: 5
- Views: 3758
Re: Picoweb request doesn't return all form data
Why would we want an immediate return from the function if there is a chance it will not contain the expected data? Seems like the read_form_data() function might need to call readexactly() instead of read() unless there is some other way that read_form_data should be being used that I'm missing.
- Mon Jul 01, 2019 7:43 am
- Forum: ESP8266 boards
- Topic: Picoweb request doesn't return all form data
- Replies: 5
- Views: 3758
Re: Picoweb request doesn't return all form data
I didn't figure out why this is happening, but I did find a way around it. The "readexactly" function in uasyncio does not exhibit the same problem that I'm seeing with the read function. I could modify Picoweb directly, but I decided to work around it in my code. Instead of calling yield from reque...