Hello,
is it possible to use the ADC APIs in the 2nd-level-bootloader? (I use a ESP32-C3)
I can not integrate the "driver/adc.h" in the bootloader. In the official ESP-IDF description it is written:
"In the bootloader space, you cannot use the drivers and functions from other components. If necessary, then the required functionality should be placed in the project’s bootloader directory (note that this will increase its size)."
Does it mean I should copy the "esp-idf" folder in my custom bootloader folder?
Is there any example application on using ADC in bootloader? Or at least a hint of which layer to use, HAL, LL or Register( )?
ADC in custom Bootloader
-
- Posts: 12
- Joined: Wed Sep 13, 2017 5:27 pm
ADC in custom Bootloader
Last edited by gianluca.siano on Wed Mar 01, 2023 3:02 pm, edited 1 time in total.
Re: ADC in custom Bootloader
According to the official ESP-IDF documentation, it is not possible to use drivers and functions from other components in the bootloader space. Therefore, you will need to place the required functionality in the project's bootloader directory if it is necessary.gianluca.siano wrote: ↑Wed Mar 01, 2023 8:02 amHello,
is it possible to use the ADC APIs in the 2nd-level-bootloader? (I use a ESP32-C3)
I can not integrate the "driver/adc.h" in the bootloader. In the official ESP-IDF description it is written:
"In the bootloader space, you cannot use the drivers and functions from other components. If necessary, then the required functionality should be placed in the project’s bootloader directory (note that this will increase its size)."
Does it mean I should copy the "esp-idf" folder in my custom bootloader folder?
Is there any example application on using ADC in bootloader? Or at least a hint of which layer to use, HAL, LL or Register( )?
Regarding your question of whether you should copy the "esp-idf" folder in your custom bootloader folder, it is not recommended to do so, as it would increase the size of your bootloader unnecessarily.
Unfortunately, I am not aware of any example application on using the ADC in the bootloader, but you might find it useful to look into using the Register layer to interact with the ADC. Alternatively, you could consider using a custom ADC driver integrated directly into your project's bootloader directory.
"AskRudi"
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
-
- Posts: 12
- Joined: Wed Sep 13, 2017 5:27 pm
Re: ADC in custom Bootloader
rudi ;-) wrote: ↑Wed Mar 08, 2023 11:36 amAccording to the official ESP-IDF documentation, it is not possible to use drivers and functions from other components in the bootloader space. Therefore, you will need to place the required functionality in the project's bootloader directory if it is necessary.gianluca.siano wrote: ↑Wed Mar 01, 2023 8:02 amHello,
is it possible to use the ADC APIs in the 2nd-level-bootloader? (I use a ESP32-C3)
I can not integrate the "driver/adc.h" in the bootloader. In the official ESP-IDF description it is written:
"In the bootloader space, you cannot use the drivers and functions from other components. If necessary, then the required functionality should be placed in the project’s bootloader directory (note that this will increase its size)."
Does it mean I should copy the "esp-idf" folder in my custom bootloader folder?
Is there any example application on using ADC in bootloader? Or at least a hint of which layer to use, HAL, LL or Register( )?
Regarding your question of whether you should copy the "esp-idf" folder in your custom bootloader folder, it is not recommended to do so, as it would increase the size of your bootloader unnecessarily.
Unfortunately, I am not aware of any example application on using the ADC in the bootloader, but you might find it useful to look into using the Register layer to interact with the ADC. Alternatively, you could consider using a custom ADC driver integrated directly into your project's bootloader directory.
"AskRudi"
Ok, it would increase the bootloader unnecessarily, but I can change the partition.csv accordly
Who is online
Users browsing this forum: No registered users and 80 guests