Search found 16 matches

by cederom
Thu Aug 18, 2022 3:04 am
Forum: ESP32 boards
Topic: E (100167) uart: uart_set_pin(559): tx_io_num error
Replies: 2
Views: 4237

Re: E (100167) uart: uart_set_pin(559): tx_io_num error

Well, turned out to be my bug :-) Some part of the code that was defining the hardware on the fly swapped 19 with 35 and obviously IO35 can be input only :-) Sorry for the noise!! :-) By the way, I have managed to successfully use UART1 to serve two different devices attached to a different GPIO por...
by cederom
Wed Aug 17, 2022 9:36 pm
Forum: ESP32 boards
Topic: E (100167) uart: uart_set_pin(559): tx_io_num error
Replies: 2
Views: 4237

E (100167) uart: uart_set_pin(559): tx_io_num error

Hello world :-) I have problem running UART in the following configuration: UART(1, tx=19, rx=35, baudrate=115200) I get this error: E (100167) uart: uart_set_pin(559): tx_io_num error According to QuickRef (https://docs.micropython.org/en/latest/esp32/quickref.html#uart-serial-bus): Any GPIO can be...
by cederom
Fri Jun 17, 2022 11:09 pm
Forum: ESP32 boards
Topic: internal flash write speed with packed data
Replies: 1
Views: 1582

internal flash write speed with packed data

Hello world :-) I am creating a logger on ESP32 that needs to write measurements to internal flash memory as fast as possible (1ms would be enough but 10ms in worst case). Each measurement will be a set of floating point values with an integer timestamp. What would be the most efficient and quick wa...
by cederom
Sat Mar 26, 2022 3:47 am
Forum: ESP32 boards
Topic: Micropython on ESP32-C3
Replies: 36
Views: 245458

Re: Micropython on ESP32-C3

Hello world :-) Some more questions on ESP32-C3: there seems to be a USB Serial/JTAG port that I would like to use on ESP32-C3-WROOM-02 instead UART0 RX/TX so I do not have to use USB-UART converter but USB directly. I would like to use that port for firmware upload and REPL/CLI with my firmware. 1....
by cederom
Sun Feb 27, 2022 5:50 pm
Forum: ESP32 boards
Topic: A replacement for _uart.wait_tx_done in esp32
Replies: 5
Views: 4525

Re: A replacement for _uart.wait_tx_done in esp32

Thank you :-) All clear now, UART.deinit() destroys the object, it needs to be re-created again before UART.init(), but UART.init() can be called multiple times to change settings :-) Here is the GH issue: https://github.com/micropython/micropython/issues/8362 Documentation needs an update with clar...
by cederom
Sun Feb 27, 2022 4:00 pm
Forum: ESP32 boards
Topic: A replacement for _uart.wait_tx_done in esp32
Replies: 5
Views: 4525

Re: A replacement for _uart.wait_tx_done in esp32

Hello world :-) I am using UART on ESP32 with MP 1.18. I am getting errors like: E (747225) uart: uart_wait_tx_done(995): uart driver error E (747235) uart: uart_write_bytes(1119): uart driver error E (747245) uart: uart_write_bytes(1119): uart driver error E (747255) uart: uart_write_bytes(1119): u...
by cederom
Fri Jan 28, 2022 4:17 am
Forum: Development of MicroPython
Topic: try except and backtrace print log
Replies: 2
Views: 6739

Re: try except and backtrace print log

dhylands wrote:
Fri Jan 28, 2022 4:10 am
Here's an example for you: https://github.com/dhylands/upy-example ... int_exc.py
Look at sys.print_exception: http://docs.micropython.org/en/latest/l ... _exception
Wow! Thank you Dave!! :-)
by cederom
Fri Jan 28, 2022 3:42 am
Forum: Development of MicroPython
Topic: try except and backtrace print log
Replies: 2
Views: 6739

try except and backtrace print log

Hello world :-) My application catches all Exceptions. I would like to log them and upload to remote server to have insight on the status and possible issues with sensors remotely. Catching Exception as e and then printing str(e) only gives me the error message. But I would also like to catch the ba...
by cederom
Sun Jan 16, 2022 10:25 pm
Forum: ESP32 boards
Topic: Micropython on ESP32-C3
Replies: 36
Views: 245458

Re: Micropython on ESP32-C3

This is not the only solution, there are other ways: uPyloader , mpremote , ampy , rshell ... RSHELL IS A DISASTER AND CAN DESTROY YOUR FILESYSTEM. AVOID! :-) When using rshell rsync -m . / it will remove all files on your computer that you have access to. Last parameter should be /pyboard or whate...