Posts: 582
Joined: Wed Jun 14, 2017 9:00 pm


Postby chegewara » Sat Oct 21, 2017 1:00 am

im trying to route pin 1 with gpio_config(config) and esp32 hangs on this command.

Code: Select all

	uint64_t mask = 2;
	gpio_config_t config;
	config.pin_bit_mask = mask;
	config.mode = GPIO_MODE_INPUT_OUTPUT; // <-- all combinations here
	config.pull_up_en = GPIO_PULLUP_ENABLE;
	config.pull_down_en = GPIO_PULLDOWN_DISABLE;
	config.intr_type = GPIO_INTR_DISABLE;

User avatar
Posts: 488
Joined: Wed Dec 21, 2016 7:40 pm

Re: gpio_config

Postby loboris » Sat Oct 21, 2017 6:53 am

GPIO1 == U0TXD is tx pin of UART0, when you configure it, it is disconnected from UART and you will no longer have any output.
ESP32 does not hang, you simply do not see any output on the console.

Who is online

Users browsing this forum: No registered users and 3 guests