2022-05-20 10:26 AM
2022-05-22 11:50 PM
Hi @MDoxb.1
which kind of example do you want to convert ?
STM32CubeMP1 examples for Cortex-M4 are working on all STM32MP15 devices (except when the related peripheral/interface is not available).
STM32MP157C-DK2 and STM32MP157A-DK1are indeed very close:
Regards,
2022-05-23 06:26 AM
In the en.STM32Cube_FW_MP1_V1-5-0.zip file, there are several example projects designed for the STM32MP157C-DK2.
I know that there are differences with the clocks, so it would be nice to have a set of instructions indicating which clocks in the CubeMX (ioc file) need to be changed, and if there are any other settings in CubeMX that need to be modified. Or, could I just copy the .ioc file generated when a new STM32MP157A-DK1 is created to the example.
Hmm, I just noticed that there are no .ioc files in these projects.
What makes them 157C-DK2 projects? Do I need to change something else to use them on a 157A-DK1?
Thanks
2022-05-24 06:04 AM
Hi @MDoxb.1 ,
Most of example for STM32MP157C-DK2 are compatible with STM32MP157A-DK1 as it.
They are available in STM32MP157A-DK1 starter package under /usr/local/Cube-M4-examples
The only think to matter, and which is not consistent is that we do not provide related boot config for proper resource sharing on Linux side.
See on DK2 the boot config you can select to run exemple
Select the boot mode
1: OpenSTLinux
2: stm32mp157c-dk2-a7-examples
3: stm32mp157c-dk2-m4-examples
thanks to a related stm32mp157c-dk2-m4-examples.dts provided in kernel source.
If you manage to make the stm32mp157a-dk1-example.dts flavor I guess you can run safely most of example without changing a line.
Olivier