Olimex Support Forum

Microcontrollers => ESP32 => Topic started by: punchcard on March 09, 2023, 07:36:20 PM

Title: Serial port stops when ETH activates with POE
Post by: punchcard on March 09, 2023, 07:36:20 PM
On the Olimex POE ISO the serial port seems to stop when the Ethernet port activates with POE, this does not happen without POE. Strange. Is there a fix for this?
Title: Re: Serial port stops when ETH activates with POE
Post by: LubOlimex on March 10, 2023, 08:45:25 AM
Which pins do you use for the serial port?

You know that you can define any GPIO for serial port, right?
Title: Re: Serial port stops when ETH activates with POE
Post by: punchcard on March 10, 2023, 09:41:08 PM
I did not change the defaults here. I just use:

  Serial.begin(115200);
  Serial.println("hello world");

but as the code proceeds, it prints a control character, then stops printing to the console connected via the USB interface. Is it possible I'm conflicting with one of the GPIOs? What are the default GPIOs for the serial port?

And if I wanted to change those, how do I do that?

Thanks!
Title: Re: Serial port stops when ETH activates with POE
Post by: punchcard on March 10, 2023, 09:50:21 PM
Sorry - Thinking about your statement more. If I'm using GPIO 1,3 and 5 for pullup resistors for push buttons, would that cause a conflict with the serial ports? I see they are marked U0TXD and U0RXD. I'm trying to avoid GPIOs tied to ADC2 as those cause conflict with WiFi. So between that, 3 other input pins for a joystick, i2c for an LCD display, I'm running out of GPIOs for button inputs.

Appreciate any guidance here

Thanks
Title: Re: Serial port stops when ETH activates with POE
Post by: LubOlimex on March 15, 2023, 09:05:35 AM
> I see they are marked U0TXD and U0RXD

Yes, this might bug the serial-USB convertor CH340T. I would not recommend using GPIO1 and GPIO3 if you wish to program the board via USB in future. The best idea is to track the schematic. There should be enough pins for what you are aiming for.

By the way are you using an SD card in your setup? You can use the pins for the SD card if you don't have one inserted.
Title: Re: Serial port stops when ETH activates with POE
Post by: punchcard on March 18, 2023, 01:42:45 AM
Yeah - I switched to different pins and everything is good to go now.

If there is a fix for this in the future, let me know.

Thanks