I2S on STM32 #58276
Replies: 4 comments 1 reply
-
@farukhalilagic Since I have the same problem, have you found a solution? |
Beta Was this translation helpful? Give feedback.
-
Since the error occurred on the following lines, it would be helpful if you can share zephyr/drivers/i2s/i2s_ll_stm32.c Lines 120 to 129 in 7c64a8b |
Beta Was this translation helpful? Give feedback.
-
See zephyr/boards/st/nucleo_f411re/nucleo_f411re.dts Lines 108 to 111 in 65a80d5 |
Beta Was this translation helpful? Give feedback.
-
maybe the clock_control definition stm32f4_clock.h/stm32f427_clock.h are not really suitable for the stm32f429 (RM0090) Can you see with this branch https://github.com/FRASTM/zephyr/tree/stm32f4_i2s if it helps ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to enable I2S periperal on STM32F429ZI. My overlay file looks like this:
i2s3_sd_pc12:i2s3_sd_pc12{
pinmux = <STM32_PINMUX('C',12,AF6)>;
};
i2s3_ck_pc10:i2s3_ck_pc10{
pinmux = <STM32_PINMUX('C',10,AF6)>;
};
i2s3_mck_pc7:i2s3_mck_pc7{
pinmux = <STM32_PINMUX('C',7,AF6)>;
};
i2s3_ws_pa4:i2s3_ws_pa4{
pinmux = <STM32_PINMUX('A',4,AF6)>;
};
};
&dma1{
status = "okay";
};
&plli2s{
status = "okay";
mul-n=<100>;
div-r=<2>;
};
&i2s3{
mck-enabled;
clocks = < &rcc 0x40 0x8000 >, < &rcc STM32_SRC_PLL_R I2S_SEL(0)>;
pinctrl-0 = <&i2s3_ws_pa4 &i2s3_mck_pc7 &i2s3_ck_pc10 &i2s3_sd_pc12>;
pinctrl-names = "default";
status="okay";
};
But I get error:
[00:00:00.000,000] i2s_ll_stm32: Could not configure I2S domain clock
[00:00:00.000,000] i2s_ll_stm32: i2s_stm32_initialize: clock enabling failed: -5[00:00:00.208,000] i2s_ll_stm32: Failed call clock_control_get_rate(pclken[1])
Can anyone give an example of using I2S with STM32 microcontrollers ?
Beta Was this translation helpful? Give feedback.
All reactions