SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world.
And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download two short videos (registration required) highlighting:

System Workbench for STM32

SPDIF Example for STM32F7?


Searched the STM32Cube_FW_F7_V1.1.0 library yet didnt see any SPDIF example.
Is there somewhere any such example project for the SPDIF which I could use?


Thanks Bernard for taking the time to reply.
Yes, I did a cross-post in the ST forum, yet didnt receive a reply yet there.

I’m quite new to ST and the SW IDE, so got many questions, I’ll post some which are relevant to SW here now that I understand better the differentiation.

thanks again

I have SPDIF Input working on STM32F7 Discovery board.

Actually, not so difficult to bring it up: all FW functions are there (in CubeF7).
- use CubeMX in order to create a demo project for SPDIF. It generates almost all the code you need. Just modify some configs
- take the audio player from demo, e.g. stm32764g_discovery_audio.*
- configure SPDIF as: hSPDIFRX_IN0.Init.DataFormat = SPDIFRX_DATAFORMAT_32BITS;
it is needed for stereo over S/PDIF. Just: even your play 24bit over S/PDIF - just 2x16bit come into your FW (just 16bit stereo resolution)
- if SPDIF input buffer is half full - start DMA to SAI2 via: BSP_AUDIO_OUT_Play((uint16_t *)SPDIFIN0_RxBuf, (SPDIF_SAMPLE_NUM - 192) * 4);
- start the SPDIF Interrupt via: if (HAL_SPDIFRX_ReceiveDataFlow_IT(&hSPDIFRX_IN0, SPDIFIN0_RxBuf, SPDIF_SAMPLE_NUM) == HAL_OK)
- and let all running, in the background, no other calls (my mistake: do not start DMA and Play again),
it works in background: SPDIF Interrupt receives the audio data, DMA to SAI2 streams it out

It works !

Please see here: https://www.youtube.com/watch?v=k0vCi0mrIhIQuestion
Cool, now I have an USB and SPDIF input (front end) for my “Lyrebird True24” DAC: http://www.tjaekel.com/lyrebird/Question

If you need demo project for it: please visit: http://www.tjaekel.com/lyrebird/Question and send me an email.

Hi tjaekel,
really thanks for this, very interesting! I’m new on STM, just get my first STM32F7 discovery board, after a day of googling I find System Workbench and finally I’m able to do something with this board, then I find this post, wow!
I have compiled succesfully, just performed one simple change to avoid compiling errors.
I really hope to see other projects like this, I have learned more from your example than standard ST ones!