Search found 6 matches

by Alexdd50
Sun Feb 16, 2020 8:59 am
Forum: ESP32 boards
Topic: Memory problem : iterate a file line by line
Replies: 3
Views: 244

Re: Memory problem : iterate a file line by line

That worked for this problem ! Thanks But another appears related to the memory too. My code suddenly stops in the middle of the process and I have this error with always the same number of bytes : MemoryError: memory allocation failed, allocating 1336 bytes And after I can't do nothing in the conso...
by Alexdd50
Sat Feb 15, 2020 12:26 pm
Forum: ESP32 boards
Topic: Memory problem : iterate a file line by line
Replies: 3
Views: 244

Memory problem : iterate a file line by line

Hello, I have a memory problem with my ESP32, I download a file that is around 1000 lines and want to iterate it line by line. My code is : for line in st.splitlines(): action ... And the error : MemoryError: memory allocation failed, allocating %u bytes I tried gc.collect() before the loop, but it ...
by Alexdd50
Thu Feb 06, 2020 1:26 pm
Forum: ESP32 boards
Topic: UART Connection problem
Replies: 9
Views: 441

Re: UART Connection problem

Ok I tried to connect rx to tx and the data is transmitted I can read what I sent, It's a good thing. But when I put the cables of E-Paper in the same pins (I tried to swap them), the same problem is still here. It's strange because when I plug the E-Paper in USB to my pc with a USB to TTL, I am abl...
by Alexdd50
Thu Feb 06, 2020 12:51 pm
Forum: ESP32 boards
Topic: UART Connection problem
Replies: 9
Views: 441

Re: UART Connection problem

According to what you said, I tried to change connection pins, here's what my code looks like : uart = UART(1) uart.init(115200, timeout=5000, tx=25, rx=26) uart.write(cmd) The cmd I sent is the update command of the E-Paper display, and the code works (no errors) but nothing happens and don't know ...
by Alexdd50
Wed Feb 05, 2020 5:30 pm
Forum: ESP32 boards
Topic: UART Connection problem
Replies: 9
Views: 441

Re: UART Connection problem

Can I use any other pin than 1 and 3 to connect in UART ?
For example what is the difference between UART0, UART1 and UART2 that seems to use different ports.
I tried to use UART1 but the pins I found on the web are GPIO9 and GPIO10 but in the datasheet they are used by the system ..
by Alexdd50
Thu Jan 30, 2020 1:33 pm
Forum: ESP32 boards
Topic: UART Connection problem
Replies: 9
Views: 441

UART Connection problem

Hello, I am currently trying to establish a serial connection between a e-paper and a ESP32-WROOM-32U on a ESP32_Devkitc_V4. I connected cables to TX and RX pins on the ESP32 and created the following code : soc = UART(1) soc.init(rate, timeout=5000, tx=1, rx=3) ... soc.write(cmd) #cmd is a string I...