Using gpio_ll_set_level in call_start_cpu0 in bootloader_start.c

MikeCode
Posts: 17
Joined: Wed Apr 20, 2022 10:25 am

Using gpio_ll_set_level in call_start_cpu0 in bootloader_start.c

Postby MikeCode » Mon Jun 02, 2025 8:29 am

Hi,

I'm porting a project from IDF 4.x to 5.x and need to call

esp_rom_gpio_pad_select_gpio(PIN_LED);
gpio_ll_input_disable(&GPIO, PIN_LED);
gpio_ll_output_enable(&GPIO, PIN_LED);
gpio_ll_set_level(&GPIO, PIN_LED, 0);

in call_start_cpu0() in
bootloader_components/main/bootloader_start.c

My problem is that
#include "hal/gpio_ll.h" is throwing an error
"hal/gpio_ll.h: No such file or directory"

What do I need to do to include "hal/gpio_ll.h" in bootloader_start.c to use gpio_ll_set_level() ?

Thank you and best regards,
Mike

MicroController
Posts: 2673
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Using gpio_ll_set_level in call_start_cpu0 in bootloader_start.c

Postby MicroController » Mon Jun 02, 2025 10:46 am

Try adding "hal" to the list of required components in your component's CMakeLists.txt.

MikeCode
Posts: 17
Joined: Wed Apr 20, 2022 10:25 am

Re: Using gpio_ll_set_level in call_start_cpu0 in bootloader_start.c

Postby MikeCode » Tue Jun 10, 2025 1:47 pm

Thank you, adding "hal" to required components in the component's CMakeLists.txt worked.

Who is online

Users browsing this forum: ChatGPT-User, Google [Bot], MicroController, PetalBot, Semrush [Bot] and 5 guests