Search found 1320 matches

by Roberthh
Sat Apr 13, 2019 9:20 pm
Forum: ESP32 boards
Topic: uPyCraft looses connection to ESP32
Replies: 12
Views: 754

Re: uPyCraft looses connection to ESP32

upycraft, rshell and ampy and maybe others assume that the device is in the REPL state. They do not work if the device is running a code. They try to break running code by issuing Ctrl-D. But if after reboot again code is started, that mechanism fails.
by Roberthh
Sat Apr 13, 2019 2:02 pm
Forum: General Discussion and Questions
Topic: ure.sub not available in v1.10?
Replies: 8
Views: 162

Re: ure.sub not available in v1.10?

I used MINGW for that (https://mingw-w64.org/doku.php). No magic. Just install MINGW on Windows, download the repository and run make. I had to adapt mpconfigport.h in microypthon/ports/windows to enable these features along the line of micropython/ports/esp8266 or the other ports.
by Roberthh
Sat Apr 13, 2019 12:20 pm
Forum: General Discussion and Questions
Topic: ure.sub not available in v1.10?
Replies: 8
Views: 162

Re: ure.sub not available in v1.10?

I compiled a version of micropython for Windows which includes ure.sub(9 and help(). You'll find it here: https://github.com/robert-hh/Shared-Stuff
And yes, it's strange that ure.sub is not included into all versions, when ist is present in the version with the strongest memory constrainst
by Roberthh
Sat Apr 13, 2019 6:11 am
Forum: General Discussion and Questions
Topic: ure.sub not available in v1.10?
Replies: 8
Views: 162

Re: ure.sub not available in v1.10?

The Windows version of MicroPython is somewhat limited. For whatever reason the help module is not included. Other modules may be missing too. Did you build that version yourself, or where did you get that from
by Roberthh
Fri Apr 12, 2019 12:00 pm
Forum: ESP32 boards
Topic: Wemos D32 Pro doesn't work - problem with CH340?!?
Replies: 12
Views: 185

Re: Wemos D32 Pro doesn't work - problem with CH340?!?

When you tell "Both computer (Linux and Windows) don't recognize the board - nothing.", does that mean that not /dev/ttyUSBx appears on Linux when you connect it? That is indeed strange since the CH340 worked for me on Linux always without problems. Did you try simple means like changing the USB cab...
by Roberthh
Thu Apr 11, 2019 9:30 am
Forum: Development of MicroPython
Topic: `.text' will not fit in region `iram1_0_seg'
Replies: 6
Views: 95

Re: `.text' will not fit in region `iram1_0_seg'

That is whart I was concerned about, that the start of heap/stacxk is not automatically calculated an dhas to ba manually set. Maybe some of the authors can shed some light on it.
Edit: According to the data sheet, iram1 has the fixed size of 0x8000 bytes.
by Roberthh
Thu Apr 11, 2019 7:25 am
Forum: Development of MicroPython
Topic: `.text' will not fit in region `iram1_0_seg'
Replies: 6
Views: 95

Re: `.text' will not fit in region `iram1_0_seg'

Yes, after sending the msg I thought that I may have mixed that up with the rom segment.
The file to change would be esp8266.ld, as you pointed out. Just try to change the size.
by Roberthh
Wed Apr 10, 2019 7:27 pm
Forum: Development of MicroPython
Topic: `.text' will not fit in region `iram1_0_seg'
Replies: 6
Views: 95

Re: `.text' will not fit in region `iram1_0_seg'

You can change the map. Another option is to drop modules which you do not need. A good candidate the the btree module, which occupies 20k of code space. It is enabled (or disabled) by line 10 in Makefile. Just set MICROPY_PY_BTREE = 0
by Roberthh
Tue Apr 09, 2019 12:21 pm
Forum: ESP32 boards
Topic: Relay On Time
Replies: 9
Views: 160

Re: Relay On Time

You can use utime.sleep_ms(sleep_time).
by Roberthh
Tue Apr 09, 2019 11:12 am
Forum: ESP32 boards
Topic: uPyCraft looses connection to ESP32
Replies: 12
Views: 754

Re: uPyCraft looses connection to ESP32

If the esp8266 works fine, and uPyCraft fails, use another tool to work with the ESP8266. For instance rshell. That might not be shiny, but it works.