new 5 seconds delay during boot

felixcollins
Posts: 125
Joined: Fri May 24, 2019 2:02 am

new 5 seconds delay during boot

Postby felixcollins » Fri Nov 03, 2023 1:21 am

I have a strange delay during boot - long enough to be quite noticeable (see log timing):

Has anyone else seen this? Is there a fix?

Code: Select all

W (70) HOOK: Latching Power On
W (35) HOOK: This hook is called AFTER bootloader initialization
I (5710) cpu_start: Multicore app
I (5711) cpu_start: Pro cpu up.
I (5711) cpu_start: Starting app cpu, entry point is 0x400815c0
WROOM-32E module MGN16
ESP32 Chip rev: v3.1
IDF :v4.4.6
ADF :2.0.3

Running Windows and VSCODE

This has just started happening. I have just changed from ADF master bcad553 and idf release/4.4 cc71308e2f.

felixcollins
Posts: 125
Joined: Fri May 24, 2019 2:02 am

Re: new 5 seconds delay during boot

Postby felixcollins » Fri Nov 03, 2023 1:38 am

I have bootloader hooks installed.

Code: Select all

void bootloader_before_init(void) {
    /* Keep in my mind that a lot of functions cannot be called from here
     * as system initialization has not been performed yet, including
     * BSS, SPI flash, or memory protection. */
	ESP_LOGW("HOOK", "Latching Power On");

	// Latch power on.
	gpio_ll_output_enable(&GPIO, POWER_LATCH_GPIO);
	gpio_ll_set_level(&GPIO, POWER_LATCH_GPIO, 1);
	
	//Turn On green LED
	gpio_ll_output_enable(&GPIO, GREEN_LED_GPIO);
	gpio_ll_set_level(&GPIO, GREEN_LED_GPIO, 1);
}

void bootloader_after_init(void) {
    ESP_LOGW("HOOK", "This hook is called AFTER bootloader initialization");
}

felixcollins
Posts: 125
Joined: Fri May 24, 2019 2:02 am

SOLVED: new 5 seconds delay during boot

Postby felixcollins » Tue Nov 07, 2023 12:21 am

It was my own dumb fault. I was fiddling with some SDKCONFIG settings and changed the factory reset gpio to be active high instead of active low (which is necessary for my board). This meant that a factory reset was triggering every boot.

Who is online

Users browsing this forum: Bing [Bot] and 306 guests