Search found 8 matches

by skeiron09
Wed Apr 06, 2022 4:12 am
Forum: ESP-IDF
Topic: DHCP client and server both are running in ETH interface
Replies: 1
Views: 1770

DHCP client and server both are running in ETH interface

this is netif setup: const esp_netif_ip_info_t my_ap_ip = { .ip = {.addr = ESP_IP4TOADDR(192, 168, 1, 1)}, .gw = {.addr = ESP_IP4TOADDR(192, 168, 1, 1)}, .netmask = {.addr = ESP_IP4TOADDR(255, 255, 255, 0)}, }; ESP_LOGI(TAG, "Ethernet Trying to set IP Address"); ESP_LOGI(TAG, "~~~~~~~~~~~"); ESP_LOG...
by skeiron09
Wed Mar 02, 2022 11:21 am
Forum: ESP-IDF
Topic: How to set default pin state to low in device startup
Replies: 4
Views: 2759

Re: How to set default pin state to low in device startup

Used a pulldown resistor for gpio 14 and the problem is solved. Thankyou very much for helping.
by skeiron09
Wed Mar 02, 2022 10:22 am
Forum: ESP-IDF
Topic: How to set default pin state to low in device startup
Replies: 4
Views: 2759

Re: How to set default pin state to low in device startup

first startup,
When esp restarts
by skeiron09
Wed Mar 02, 2022 7:02 am
Forum: ESP-IDF
Topic: How to set default pin state to low in device startup
Replies: 4
Views: 2759

How to set default pin state to low in device startup

I am trying to set gpio 12 and 14 at low state in powerup of esp but they are set to high in the boot process. I tried using pulldown feature but still no luck. my code: // initialize relay pin gpio_pad_select_gpio(relay_pin); gpio_pulldown_en(relay_pin); gpio_set_pull_mode(relay_pin, GPIO_PULLDOWN_...
by skeiron09
Sun Jan 23, 2022 9:38 am
Forum: ESP-IDF
Topic: want to use DMA for display and spi ram for all other but getting error
Replies: 0
Views: 2144

want to use DMA for display and spi ram for all other but getting error

CONFIG_ESP32S2_SPIRAM_SUPPORT=y CONFIG_SPIRAM_IGNORE_NOTFOUND=y CONFIG_SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY=y CONFIG_ESP32S2_SPIRAM_SUPPORT=y # # SPI RAM config # CONFIG_SPIRAM_TYPE_AUTO=y # CONFIG_SPIRAM_TYPE_ESPPSRAM16 is not set # CONFIG_SPIRAM_TYPE_ESPPSRAM32 is not set # CONFIG_SPIRAM_TYPE_ESPP...
by skeiron09
Mon Nov 15, 2021 9:57 am
Forum: ESP-IDF
Topic: ESP32 C3 gpio 18 19 usb pins
Replies: 4
Views: 4042

Re: ESP32 C3 gpio 18 19 usb pins

Thank you Felix, I compared my code with the blink example and replaced gpio_pad_select_gpio(GPIO_NUM_XX); with gpio_reset_pin(GPIO_NUM_XX); and now it works flawless. gpio_reset_pin(GPIO_NUM_18); gpio_reset_pin(GPIO_NUM_19); gpio_set_direction(GPIO_NUM_18, GPIO_MODE_OUTPUT); gpio_set_direction(GPIO...
by skeiron09
Mon Nov 15, 2021 8:11 am
Forum: ESP-IDF
Topic: ESP32 C3 gpio 18 19 usb pins
Replies: 4
Views: 4042

Re: ESP32 C3 gpio 18 19 usb pins

as GPIO_MODE_OUTPUT gpio_pad_select_gpio(GPIO_NUM_18); gpio_pad_select_gpio(GPIO_NUM_19); gpio_set_direction(GPIO_NUM_18, GPIO_MODE_OUTPUT); gpio_set_direction(GPIO_NUM_19, GPIO_MODE_OUTPUT); gpio_set_level(GPIO_NUM_18, 0); gpio_set_level(GPIO_NUM_19, 0); vTaskDelay(2000 / portTICK_PERIOD_MS); gpio_...
by skeiron09
Mon Nov 15, 2021 6:09 am
Forum: ESP-IDF
Topic: ESP32 C3 gpio 18 19 usb pins
Replies: 4
Views: 4042

ESP32 C3 gpio 18 19 usb pins

I want to use 18 and 19 pins as normal gpio digital output pins to control LED but cannot get desired output maybe due to it is configured as usb + and usb - pins. pin 18 is at 0V all the time and pin 19 is at 2V. Would be a great help if anyone can provide resources to setting up pin. I am using la...