Search found 60 matches

by manseekingknowledge
Mon Jul 08, 2019 3:19 pm
Forum: ESP8266 boards
Topic: Creating larger ROMs
Replies: 21
Views: 1250

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...
by manseekingknowledge
Mon Jul 08, 2019 2:19 pm
Forum: ESP8266 boards
Topic: Creating larger ROMs
Replies: 21
Views: 1250

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...
by manseekingknowledge
Mon Jul 08, 2019 7:41 am
Forum: ESP8266 boards
Topic: How to disable all REPL
Replies: 6
Views: 673

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 ...
by manseekingknowledge
Mon Jul 08, 2019 7:10 am
Forum: ESP8266 boards
Topic: How to disable all REPL
Replies: 6
Views: 673

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.
by manseekingknowledge
Mon Jul 08, 2019 6:52 am
Forum: ESP8266 boards
Topic: How to disable all REPL
Replies: 6
Views: 673

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_...
by manseekingknowledge
Sun Jul 07, 2019 8:03 pm
Forum: ESP8266 boards
Topic: Creating larger ROMs
Replies: 21
Views: 1250

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...
by manseekingknowledge
Wed Jul 03, 2019 5:47 am
Forum: General Discussion and Questions
Topic: Copy of a dictionnary
Replies: 7
Views: 1672

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...
by manseekingknowledge
Mon Jul 01, 2019 4:37 pm
Forum: ESP8266 boards
Topic: Picoweb request doesn't return all form data
Replies: 5
Views: 378

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.
by manseekingknowledge
Mon Jul 01, 2019 7:43 am
Forum: ESP8266 boards
Topic: Picoweb request doesn't return all form data
Replies: 5
Views: 378

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...
by manseekingknowledge
Mon Jul 01, 2019 6:54 am
Forum: ESP8266 boards
Topic: Picoweb request doesn't return all form data
Replies: 5
Views: 378

Picoweb request doesn't return all form data

micropython commit 5c34c2ff7f0c44ec9e1d77059162584c6bd99c92 picoweb commit 973d6cd33841a2ab2457d0f7247fc423824f46b7 uasyncio commit 5149a54f918361d56e3974c1ace8d0a2bad7a086 uasyncio.core commit 4c63ecf5a64d5db5362e940b33b1687d882c38c8 uasyncio.queues commit 614f5e61e9952602ea273ecc0a446f1232ef1d5e I...