SPIRAM UART init

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

SPIRAM UART init

Post by davef » Sun Jun 06, 2021 11:37 pm

esp32spiram-20210418-v1.15.bin

After encountering a panic with:

Code: Select all

#ser = UART(1)
#ser.init(baudrate=115200, tx=22, rx=21, bits=8, parity=None, stop=1, timeout=300)
I found this issue https://github.com/micropython/micropython/issues/6166

It also seems that you have to do all init in one line, ie:

Code: Select all

ser = UART(1,baudrate=115200, bits=8, parity=None, stop=1, rx=21, tx=22, timeout=300)

srbpavel
Posts: 10
Joined: Tue Jan 19, 2021 5:09 pm

Re: SPIRAM UART init

Post by srbpavel » Sat Jun 12, 2021 7:30 am

hallo davef, yes you are right, i have found the same with v.1.14 versions


#esp32-idf4-20210202-v1.14.bin
self.gps=UART(1, 9600)
self.gps.init(tx=self.tx, rx=self.rx)

#esp32spiram-idf4-20210202-v1.14.binhall
self.gps=UART(self.uart_bus, 9600, tx=self.tx, rx=self.rx)

just a note: you need to do the same one liner for rpi_pico [that is where i have found this originally]

#rp2-pico-20210202-v1.14.uf2
#rp2-pico-20210205-unstable-v1.14-8-g1f800cac3.uf2
#rp2-pico-20210217-unstable-v1.14-67-gcf6a01588.uf2
radio=UART(0, baudrate=115200, bits=8, parity=None, stop=1, tx=Pin(0), rx=Pin(1))

pavel

Post Reply