ESP32: Compilation errors after migrating to zephyr 3.2.0 #54855
Labels
bug
The issue is a bug, or the PR is fixing a bug
platform: ESP32
Espressif ESP32
priority: low
Low impact/importance bug
Build error in dma_types.h and i2s_ll.h after migrating to zephyr 3.2.0
We have custom ADC code running on ESP32 using zephyr 3.1.0, now we are migrating to zephyr 3.2.0 and observed following errors in espressif module files i.e dma_types.h and i2s_ll.h
c:\workspace\zephyr-v3.2.0\modules\hal\espressif\components\hal\include\hal\dma_types.h:41:15: error: expected constructor, destructor, or type conversion before '(' token _Static_assert(sizeof(dma_descriptor_t) == 12, "dma_descriptor_t should occupy 12 bytes in memory");
This statement is same in zephyr 3.1.0 and 3.2.0
c:\workspace\zephyr-v3.2.0\modules\hal\espressif\components\hal\esp32\include\hal\i2s_ll.h:757:25: error: invalid conversion from 'unsigned int' to 'i2s_pdm_dsr_t' [-fpermissive] *dsr = hw->pdm_conf.rx_sinc_dsr_16_en;
Function is modified in zephyr 3.2.0 as shown below:
I am able to fix this error by typecasting like
*dsr = (i2s_pdm_dsr_t)hw->pdm_conf.rx_sinc_dsr_16_en;
Latest version of hal_espressif is having the same code in both files, I haven't seen the fix for these errors.
Please suggest the resolution for both errors as soon as possible.
Environment :
The text was updated successfully, but these errors were encountered: