Search found 40 matches

by dg9ngf
Thu Dec 21, 2023 9:39 pm
Forum: Hardware
Topic: RS 485 RTS/DE pin
Replies: 7
Views: 23756

Re: RS 485 RTS/DE pin

Right, the XDIR pin can be connected with the DE and /RE pins of the RS485 transceiver chip. That's exactly what they made these pins for. Ideally, the XDIR pin goes high a little bit before sending so that the transmitter can set things up properly. How I detected the beginning of an incoming trans...
by dg9ngf
Fri Jun 16, 2023 9:53 am
Forum: General Discussion
Topic: [SOLVED] Keep getting TG0WDT_SYS_RESET
Replies: 4
Views: 17805

Re: [SOLVED] Keep getting TG0WDT_SYS_RESET

For PlatformIO the file is directly next to platformio.ini. For me it's called sdkconfig.pico32. Deleting it has created a new one after reloading the project. But that didn't help. My device is still stuck in a reset loop. The code worked fine almost a year ago. Seems like the world has changed ent...
by dg9ngf
Thu Dec 29, 2022 10:44 am
Forum: ESP-IDF
Topic: Unique hardware serial number
Replies: 4
Views: 9088

Re: Unique hardware serial number

Thank you, that should work.

But will the function write 6 or 8 bytes to the provided memory? That's entirely unspecified and a likely source of crashes. AFAIK, MAC addresses are always 6 bytes. Not sure why the function would write 8 bytes.
by dg9ngf
Wed Dec 28, 2022 6:46 pm
Forum: ESP-IDF
Topic: Unique hardware serial number
Replies: 4
Views: 9088

Unique hardware serial number

Hello, Is there a unique serial number somewhere in an ESP32 chip? I want to provide a way to distinguish multiple ESP32-based devices on a field bus and would have used a serial number for that. Other microcontrollers provide such a number that is different in each device without any customisation ...
by dg9ngf
Fri Dec 09, 2022 4:24 pm
Forum: Hardware
Topic: ESP32-WROOM seems dead
Replies: 2
Views: 3074

Re: ESP32-WROOM seems dead

Thank you for the information. None of that was true on my board, so I had to inspect it a little closer. I found several issues. Some solder connections weren't good so I guess the module didn't even have power applied. Resoldering with a little more solder seems to have made the connection. I firs...
by dg9ngf
Mon Dec 05, 2022 8:25 pm
Forum: Hardware
Topic: ESP32-WROOM seems dead
Replies: 2
Views: 3074

ESP32-WROOM seems dead

Hello, After playing with a PICO kit and an ESP32-WROOM module on a breakout board, I dared to order a PCB for the full application and put it all together. I had some trouble getting the ESP32 stick on the board. First I tried solder paste and hot air like for all other SMD parts. But that wasn't m...
by dg9ngf
Fri Nov 11, 2022 3:38 pm
Forum: ESP-IDF
Topic: UART2 does not receive anything
Replies: 4
Views: 4532

Re: UART2 does not receive anything

ESP's example code has exactly this, and the documentation (last paragraph here) suggests that hw flow control must be disabled for this circuit "B" which I use.
by dg9ngf
Fri Nov 11, 2022 3:04 pm
Forum: ESP-IDF
Topic: UART2 does not receive anything
Replies: 4
Views: 4532

Re: UART2 does not receive anything

New experiments, still no success. I've discovered that the U2RTS signal was kept high all the time, enabling the RS-485 driver permanently. The ESP32 UART driver would never release the bus. It was only released when I disconnected the IO4 pin from the transceiver's DE input. Even with this line di...
by dg9ngf
Thu Nov 10, 2022 10:13 pm
Forum: ESP-IDF
Topic: UART2 does not receive anything
Replies: 4
Views: 4532

Re: UART2 does not receive anything

A few tests later, I see that the problem is not limited to UART2. None of the UARTs can receive anymore. I've changed it to UART_NUM_1 with the same effect (it can use any pins) and with UART_NUM_0 it would mix up my serial output with the formatted logging, but still not receive any input. Here is...
by dg9ngf
Thu Nov 10, 2022 10:05 pm
Forum: ESP-IDF
Topic: UART2 does not receive anything
Replies: 4
Views: 4532

UART2 does not receive anything

Hello, I've assembled an ESP32WROOM module on a breakout board and set up some tests. I'd like to wire it up to an RS-485 transceiver chip for bus communication. My first efforts were to get UART input working with the USB serial console UART0, the one that is used to program the device. That worked...