Search found 1836 matches

by Roberthh
Mon Feb 03, 2020 7:29 pm
Forum: ESP32 boards
Topic: UART inverted
Replies: 11
Views: 212

Re: UART inverted

Actually this file: https://github.com/micropython/micropython/blob/master/ports/esp32/machine_uart.c in the repository. I have changed it already, and it compiles. I "just" have to test whether it works. Setting up the build environment is a little bit of work, but is surely worth the effort. @Most...
by Roberthh
Mon Feb 03, 2020 5:17 pm
Forum: ESP32 boards
Topic: UART inverted
Replies: 11
Views: 212

Re: UART inverted

It looks like the hardware flow control is not implemented. The parameters are collected, but the actual system call, like uart_set_hw_flow_ctrl() is missing. Obviously no one noticed until now. It is easy tim implement, just call uart_set_hw_flow_ctrl() around line 168 of machuart.c with the UART n...
by Roberthh
Sun Feb 02, 2020 7:33 pm
Forum: General Discussion and Questions
Topic: const()
Replies: 9
Views: 196

Re: const()

That's strange. It could be a hash collision, or something else. Can you try the same after updating to Firmware version 1.12.x?
by Roberthh
Sun Feb 02, 2020 6:02 pm
Forum: General Discussion and Questions
Topic: const()
Replies: 9
Views: 196

Re: const()

if I just take these few lines, they work. So it has to be something with the total package. How many lines of code are imported until you run into that error. And has C_Ack been used sometimes before. Does renaming C_Ack change anything?
by Roberthh
Sun Feb 02, 2020 4:26 pm
Forum: ESP32 boards
Topic: UART inverted
Replies: 11
Views: 212

Re: UART inverted

These UART_INVxx are numeric constants, which have to be or'ed. Use:

Code: Select all

uart.init(921600, bits=8, stop=1, parity=None, rx=rx, tx=tx, cts=cts, rts=rts, 
             invert=UART.INV_TX | UART.INV_RX | UART.INV_RTS | UART.INV_CTS) 
The documentation lacks an example for it.
by Roberthh
Sun Feb 02, 2020 8:43 am
Forum: General Discussion and Questions
Topic: const()
Replies: 9
Views: 196

Re: const()

For me it works. Which version of MicroPython on which board are you using?
by Roberthh
Fri Jan 31, 2020 8:12 am
Forum: ESP32 boards
Topic: MicroPython Startup Time
Replies: 26
Views: 1829

Re: MicroPython Startup Time

I repeated your test with various ESP32 models, and the results are even worse. Wemos LOLIN32 lite w/o PSRAM, code in boot.py, ESP-IDF 4: 720 ms Wemos LOLIN32 lite w/o PSRAM, code in _boot.py, ESP-IDF 4: 690 ms Wemos LOLIN32 pro with PSRAM, code in boot.py, ESP-IDF 4: 2160 ms Pycom LoPy4 with PSRAM,...
by Roberthh
Thu Jan 30, 2020 3:30 pm
Forum: MicroPython pyboard
Topic: Pyboard + W5500/W5200 Ethernet - Cant get it to work - MicroPython v1.11-422-g98c2eabaf
Replies: 14
Views: 1420

Re: Pyboard + W5500/W5200 Ethernet - Cant get it to work - MicroPython v1.11-422-g98c2eabaf

They are similar,. but not identical. Track routing seems more critical on the right hand device, like under the two C's right to the "popctrl" label, and in the upper right corner the tracks that connect the W5500 to the soldering pins of the module.
by Roberthh
Thu Jan 30, 2020 2:55 pm
Forum: ESP32 boards
Topic: UART Connection problem
Replies: 9
Views: 223

Re: UART Connection problem

Pin 1 and 3 are used by UART0 for the host connection. if you want to keep REPL, you cannot use them for another purpose.
by Roberthh
Thu Jan 30, 2020 11:36 am
Forum: General Discussion and Questions
Topic: Remount \flash
Replies: 3
Views: 91

Re: Remount \flash

There must be always some kind of agent on the PC, which receives that data. The most simple kind would by a serial interface logger, which simply wriets to a file what comes in on the USB interface from the pyboard. Terminal emulators like Putty can do that. The you can use print() on pyboard to se...