Search found 2547 matches

by Roberthh
Thu Apr 15, 2021 9:30 am
Forum: ESP32 boards
Topic: Custom files in the self-compiled Micropython
Replies: 1
Views: 66

Re: Custom files in the self-compiled Micropython

You van embed python scripts into the firmware by placing them into the modules directory. But that does not add them to the file system. A workaround may be to encapsulate other content into a python script and extract that on boot. But that works for short files only.
by Roberthh
Thu Apr 15, 2021 6:47 am
Forum: Raspberry Pi microcontroller boards
Topic: UART not working with today's version of micropython
Replies: 7
Views: 196

Re: UART not working with today's version of micropython

All ports handle it the same way, and there is a note in the documentation (!) that uart.readline() may return a partial line, if timeout is not set. Why the error happens here is not clear, because uart.readline() is called only after uart.any() flags presence of data. So even if it is not an undoc...
by Roberthh
Wed Apr 14, 2021 3:06 pm
Forum: Raspberry Pi microcontroller boards
Topic: UART not working with today's version of micropython
Replies: 7
Views: 196

Re: UART not working with today's version of micropython

OK. I could replicate that. You have to add a small timeout to the init, like: self.uart = UART(0, 9600 , parity=None, stop=1, bits=8, tx=Pin(TXPinNr), rx=Pin(RXPinNr), timeout=10) The difference: before the change, UART was blocking. Now it is non-blocking like in all other ports. Edit: See also th...
by Roberthh
Wed Apr 14, 2021 2:48 pm
Forum: Raspberry Pi microcontroller boards
Topic: UART not working with today's version of micropython
Replies: 7
Views: 196

Re: UART not working with today's version of micropython

Does that happen for every message or just the first one?
by Roberthh
Wed Apr 14, 2021 8:23 am
Forum: ESP8266 boards
Topic: ESP8266 Bootloop after some seconds
Replies: 10
Views: 213

Re: ESP8266 Bootloop after some seconds

So this indicates a power or RF interference problem. For power, check again that the USB port can supply sufficient current. If you have a USB3 port, try that one. USB plugs may be worn. And cables are a common problem. For RF interference, try the suggestion of HF blocking of the EN pin: add a cap...
by Roberthh
Wed Apr 14, 2021 6:11 am
Forum: ESP32 boards
Topic: How to get the full capacity of an 8MB or 16MB flash chip?
Replies: 15
Views: 738

Re: How to get the full capacity of an 8MB or 16MB flash chip?

By chance I tried yesterday to build firmware which uses 8 MB flash. What I had to to: a) create a partition table for that 8 MB flash and place it in the esp32 directory. The name is arbitrary. I named it partitions_8mb.csv. My copy: # Name, Type, SubType, Offset, Size, Flags # Note: if you change ...
by Roberthh
Tue Apr 13, 2021 6:11 pm
Forum: ESP8266 boards
Topic: ESP8266 Bootloop after some seconds
Replies: 10
Views: 213

Re: ESP8266 Bootloop after some seconds

OK. so -fm=dout seems to work better. At least MP starts. If you do not touch REPL, does it reboot too?
Another measure some people took was adding a capacitor between the EN pin and GND, and ensuring that EN is properly pulled high by a resistor.
by Roberthh
Tue Apr 13, 2021 4:27 pm
Forum: Raspberry Pi microcontroller boards
Topic: SSD1322 Oled Display with a Pico?
Replies: 3
Views: 174

Re: SSD1322 Oled Display with a Pico?

SPI is also available at the Pico.
by Roberthh
Tue Apr 13, 2021 4:25 pm
Forum: ESP8266 boards
Topic: ESP8266 Bootloop after some seconds
Replies: 10
Views: 213

Re: ESP8266 Bootloop after some seconds

Can you try other flash modes, like dout?
Also, can you try a different USB cable, in case that it is a power problem.
by Roberthh
Tue Apr 13, 2021 3:35 pm
Forum: ESP8266 boards
Topic: ESP8266 Bootloop after some seconds
Replies: 10
Views: 213

Re: ESP8266 Bootloop after some seconds

MicroPython v1.14 on 2021-02-02; ESP module (1M) with ESP8266 You seem to use the 1MB firmware. Did you try the 2MB+ firmware too? https://micropython.org/resources/firmware/esp8266-20210202-v1.14.bin, or the daily build https://micropython.org/resources/firmware/esp8266-20210413-unstable-v1.14-159...