esp32(esp3D) WIFI module wont talk to marlin (serial port config?) January 14, 2025 01:09AM |
Registered: 4 years ago Posts: 9 |
#define SERIAL_PORT -1 //emulated USB (hard line) #define BAUDRATE 250000 #define SERIAL_PORT_2 6 //tested, did not work: 1,2,3, #define BAUDRATE_2 250000
Re: esp32(esp3D) WIFI module wont talk to marlin (serial port config?) January 14, 2025 02:39AM |
Admin Registered: 14 years ago Posts: 7,174 |
/** * ------- * GND | 9 | | 8 | 3.3V * (ESP-CS) PB12 | 10 | | 7 | PB15 (ESP-MOSI) * 3.3V | 11 | | 6 | PB14 (ESP-MISO) * (ESP-IO0) PB10 | 12 | | 5 | PB13 (ESP-CLK) * (ESP-IO4) PB11 | 13 | | 4 | -- * -- | 14 | | 3 | 3.3V (ESP-EN) * (ESP-RX) PD8 | 15 | | 2 | -- * (ESP-TX) PD9 | 16 | | 1 | PC14 (ESP-RST) * ------- * WIFI */ #define ESP_WIFI_MODULE_COM 3 // Must also set either SERIAL_PORT or SERIAL_PORT_2 to this #define ESP_WIFI_MODULE_BAUDRATE BAUDRATE // Must use same BAUDRATE as SERIAL_PORT & SERIAL_PORT_2 #define ESP_WIFI_MODULE_RESET_PIN PC14 #define ESP_WIFI_MODULE_GPIO0_PIN PB10 #define ESP_WIFI_MODULE_GPIO4_PIN PB11
Re: esp32(esp3D) WIFI module wont talk to marlin (serial port config?) January 14, 2025 02:47AM |
Admin Registered: 14 years ago Posts: 7,174 |
Re: esp32(esp3D) WIFI module wont talk to marlin (serial port config?) January 14, 2025 04:21AM |
Registered: 4 years ago Posts: 9 |
Quote
Dust
Re serial port
And note that PD8 can be USART3_TX and PD9 can be USART3_RX, IE this is UART 3
"could I reverse 0 & 2" yes.
"marlin embedded" Marlin firmware itself is running on a chip that has wifi inbuilt, such as the esp32
"SPI connection, why aren't we using that" because Marlin only supports gcode over UARTS (port numbers >= 0) , USB CDC (port -1 ) and Ethernet (-2 is only supported on Teensy 4.1 boards so far)
Quote
Dust
The most common reason for serial ports not working is your trying to use buggy 4 year old code on the BTT github
This old broken code sets the cpu clock frequency wrong and messes up most timing, especially baud rates (except for port -1 which actually ignores baudrates)
Re: esp32(esp3D) WIFI module wont talk to marlin (serial port config?) January 14, 2025 04:56AM |
Admin Registered: 14 years ago Posts: 7,174 |
-DPIN_SERIAL3_RX=PD_9 -DPIN_SERIAL3_TX=PD_8
Re: esp32(esp3D) WIFI module wont talk to marlin (serial port config?) January 14, 2025 09:52PM |
Registered: 4 years ago Posts: 9 |
Quote
Dust
You do not define hardware uart pins in the pins file or the configuration files
You don't need to define them at all, this is done for you as parts of the build environment, and yes they should be named like they are.
-DPIN_SERIAL3_RX=PD_9 -DPIN_SERIAL3_TX=PD_8
yes you need #define SERIAL_PORT_2 3
Re: esp32(esp3D) WIFI module wont talk to marlin (serial port config?) January 15, 2025 05:22AM |
Registered: 4 years ago Posts: 9 |