2016-12-15 02:38 PM
Just wanted to mention a small bug in CubeMX 4.18.0. I am using STM32F446ZET. It has two I2S peripherals. When I configure I2S1 in the Pinout tab, the Clock tab shows the clocks wired for I2S2. And vice versa. The chosen pins, Configuration and generated code are all correct, it just seems the Clock view gets them swapped.
Solved! Go to Solution.
2016-12-16 03:37 AM
Dear
Downey.Elwood
,After checking, this is not a bug, as
clock for
I2S1 mapped on APB2 and clock for I2S2 mapped on APB1.
This is mentioned in the RM0390 (page 116):
'
I2S1/2 clocks
To achieve high-quality audio performance and for a better configuration flexibility, the I2S1 clock and I2S2 clock (which are respectively clocks for I2Ss mapped on APB1 and APB2) can be derived from four sources: specific main PLL output, a specific PLLI2S output, from an external clock mapped on the I2S_CKIN pin or from HSI/HSE
'
Best Regards
-Imen-
2016-12-16 03:37 AM
Dear
Downey.Elwood
,After checking, this is not a bug, as
clock for
I2S1 mapped on APB2 and clock for I2S2 mapped on APB1.
This is mentioned in the RM0390 (page 116):
'
I2S1/2 clocks
To achieve high-quality audio performance and for a better configuration flexibility, the I2S1 clock and I2S2 clock (which are respectively clocks for I2Ss mapped on APB1 and APB2) can be derived from four sources: specific main PLL output, a specific PLLI2S output, from an external clock mapped on the I2S_CKIN pin or from HSI/HSE
'
Best Regards
-Imen-
2016-12-16 05:32 AM
So, if I understand it correctly, the I2S1 *signal* is the clock source for SPI/I2S modules on the APB1 bus, which are namely SPI2/I2S2 and SPI3/I2S3.
And the I2S2 *signal* is the clock source for SPI/I2S modules on the APB1 bus, which is namely SPI1/I2S1.
This is a very unfortunately chosen signal naming...
JW
2016-12-16 08:44 AM
Jan,
You are correct:
Sorry for the confusion the user interface may introduce but that's not a bug, MX followed the reference manual naming conventions:
I2S1 *signal* is the clock source for SPI/I2S modules on the APB1 bus [SPI2/I2S2 and SPI3/I2S3].
I2S2 *signal* is the clock source for SPI/I2S modules on the APB1 bus [SPI1/I2S1].
Best regards
2016-12-16 09:05 AM
Hello,
Your comments are reported internally for further review.
Thanks for sharing your feedback.Best Regards
-Imen-