2024-12-16 11:55 AM
I'm using en.stm32cubemp2-v1-1-0.zip plus patch file en.stm32cubemp2-v1-1-1.zip
I'm trying to build CM0PLUS_DEMO for STM32MP257x-EV1 for the cortex-M0 core.
I got planty of errors when trying to build it with STM32CubeIDE Version: 1.17.0 Build: 23558_20241125_2245 (UTC):
Failed to generate command line.
reason: Unknown target.
I'm reviewing the 'How to use the Cortex-M0+' document for any advise on how to build the example but it does not give any expecial advise so I assume I have to use CubeIDE:
https://wiki.st.com/stm32mpu/wiki/How_to_use_the_Cortex-M0%2B#Memories_RIF_configuration_example
Other examples for the Cortex-M33 build correctly.
Thanks in advance, Hector.
Solved! Go to Solution.
2024-12-20 01:56 AM
Thank for the suggestion.
It worked!
I though I had already tried all the *.tsv files available, but seems that not this one.
Thanks!
2025-01-14 02:31 AM
Hi
Sorry for the late respond.
Please find below the work around to use the CM0PLUS_DEMO example.
1.
In the STM32Cube_FW_MP2_V1.1.0 folder you need to add the folowing path :
Utilities/STM32CubeIDE_Patches/MP2_Patch/STM32CubeIDE/board_def
Then add in the board_def the attached stm32targets-patch-505.xml patch.
2.
Set environment variable to patch location (Utilities/STM32CubeIDE_Patches/MP2_Patch/STM32CubeIDE/board_def)
3.
In the Project File move RemoteProc/
4.
In RemoteProc/ modify line 56 of "fw_cortex_m0.sh"
from: fmw_basename="${project_name}_${fw_type}"
to: fmw_basename="${project_name}"
5.
Use ostl image: FlashLayout_sdcard_stm32mp257f-ev1-optee.tsv
Create the directory /usr/local/projects on the board
6.
In CubeIDE, in the Debug Configuration, set Load mode "thru Linux core (Production mode)"
7.
Then luch your debug session.
A patch will soon be apply to modify the STM32Cube_FW_MP2_V1.1.0. In the meantime please use this workaround.
Could you make this post as accepted solution for other to see it ? Thank you
Regards,