Search found 34 matches

by Llwy
Wed May 11, 2016 6:13 pm
Forum: ESP8266 boards
Topic: MemoryError when importing a custom module
Replies: 44
Views: 44405

Re: MemoryError when importing a custom module

Er... as a matter of fact I did read that very thread before I built everything. As far as my understanding goes, I followed all the steps described there, this is precisely why I mentioned that I erased the flash and performed the 'make axtls' command as instructed by the post. I will continue to l...
by Llwy
Wed May 11, 2016 5:38 pm
Forum: ESP8266 boards
Topic: MemoryError when importing a custom module
Replies: 44
Views: 44405

Re: MemoryError when importing a custom module

I tried to compile the firmware (had not done so since the official release). The firmware compiled but I cannot connect to webrepl anymore. I am wondering what I could have done wrong. When I try to connect to the regular webrepl, I get a "access denied" message after entering the password and if I...
by Llwy
Wed May 11, 2016 5:27 pm
Forum: ESP8266 boards
Topic: v1.8 works on a WeMos D1 Mini
Replies: 18
Views: 19869

Re: v1.8 works on a WeMos D1 Mini

According to the tutorial, default password is "micropython"

Llwy
by Llwy
Mon May 09, 2016 9:31 pm
Forum: ESP8266 boards
Topic: MemoryError when importing a custom module
Replies: 44
Views: 44405

Re: MemoryError when importing a custom module

Dear Paul,
Thank you for the explanation on the two heaps being separated.
I will try to compile the master and see if the increase in RAM is enough for me to load my modules.

@Deshipu : and now I understand better why const() does not really help here, thank you.

Llwy
by Llwy
Mon May 09, 2016 5:28 am
Forum: ESP8266 boards
Topic: MemoryError when importing a custom module
Replies: 44
Views: 44405

Re: MemoryError when importing a custom module

I see,
So that might explain why I can paste the code directly in the REPL but it fails to import in a module if it cannot benefit from the const() optimization.

Llwy
by Llwy
Sun May 08, 2016 2:55 pm
Forum: ESP8266 boards
Topic: MemoryError when importing a custom module
Replies: 44
Views: 44405

Re: MemoryError when importing a custom module

I tried to split my module like Pythoncoder suggested and stored all the static values in a separate module: MAX_LEN = const(16) PCD_IDLE = const(0x00) PCD_AUTHENT = const(0x0E) PCD_RECEIVE = const(0x08) PCD_TRANSMIT = const(0x04) PCD_TRANSCEIVE = const(0x0C) PCD_RESETPHASE = const(0x0F) PCD_CALCCRC...
by Llwy
Sun May 08, 2016 12:43 pm
Forum: ESP8266 boards
Topic: MemoryError when importing a custom module
Replies: 44
Views: 44405

Re: MemoryError when importing a custom module

OK so I removed webrepl from boot.py but I still do not have enough memory to load my module.
I guess I will simply have to shelve the whole project until I the frozen bytecode becomes usable on the ESP.

Best regards,

Llwy
by Llwy
Sun May 08, 2016 6:30 am
Forum: ESP8266 boards
Topic: MemoryError when importing a custom module
Replies: 44
Views: 44405

Re: MemoryError when importing a custom module

Thank you Deshipu and Pythoncoder. I had kind of hoped that it was some sort of bug instead of a real memory issue. I do not have much experience in low-memory programming so there is possibly room for improvement. I will try with the webrepl deactivated and cross my fingers for it to be sufficient....
by Llwy
Sat May 07, 2016 10:18 pm
Forum: ESP8266 boards
Topic: MemoryError when importing a custom module
Replies: 44
Views: 44405

MemoryError when importing a custom module

Hello, I am working on a module for the MFRC522 RFID reader. The module size is 11KB I managed to copy the module on the micropython filesystem with the help of webrepl_cli.py. When I try to import the module through the UART REPL, I get the following error: MemoryError: memory allocation failed, al...
by Llwy
Fri May 06, 2016 7:08 am
Forum: ESP8266 boards
Topic: NodeMCU-compatible pin numbering
Replies: 6
Views: 11417

Re: NodeMCU-compatible pin numbering

Hello,

For what it's worth, I agree with Dave's comment and I would personally find it very useful to have a user supplied dictionary or list.
This could be something like machine.SetConvenienceMapping(mydictionary)

Not a vital feature but indeed something very convenient.

Llwy