-
Notifications
You must be signed in to change notification settings - Fork 8k
drivers: i2s: stm32_sai: add sai support for stm32g4xx #93480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
6b4f696
to
bdb1002
Compare
Please retry analysis of this Pull-Request directly on SonarQube Cloud |
bdb1002
to
7e6324d
Compare
7e6324d
to
48a8ef5
Compare
6b1d227
to
e7eba28
Compare
@evgeniy-paltsev Do you have access to any other stm32g4xx boards for further tests? |
No, only with stm32g0, but it doesn't have sai. Btw, I'll get a stm32u585 board soon - so I'll be able to test something on it, if needed. |
@@ -0,0 +1 @@ | |||
CONFIG_HEAP_MEM_POOL_SIZE=4192 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BTW, where do we use it?
From what I see we should do allocations from message queue (statically defined in sai driver) and from slab (statically defined in samples/drivers/i2s/output/src/main.c).
Where do we use system heap?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If CONFIG_HEAP_MEM_POOL_SIZE=4192
is removed then k_msgq_alloc_init()
fails
[00:00:00.000,000] <err> i2s_stm32_sai: k_msgq_alloc_init(): <FAILED>
8c8fb36
to
e2878b5
Compare
e2878b5
to
2af4b2e
Compare
Define SAI1 node A & B for STM32G4xx series Signed-off-by: Mario Paja <[email protected]>
STM32G4xx series shares several DMA configurations with the other platforms. These changes aim to enable platform specific DMA configuration and align them to other platforms. Signed-off-by: Mario Paja <[email protected]>
Add nucleo_g431kb board in samples/drivers/i2s/output Signed-off-by: Mario Paja <[email protected]>
2af4b2e
to
b0d7572
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 questions around dma.
This PR enables SAI on STM32G4xx series by:
samples/drivers/i2s/output