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.
2024-12-16 11:40 PM
Hi @HBujanda ,
Just tested and it works fine at my end on Windows.
Are you on windows or Ubuntu station ?
Can you share logs and screenshots ?
Olivier
2024-12-17 01:25 AM
Hi Olivier,
Which version of en.stm32cubemp2 and CubeIDE are you using?
I'm using windows but a partner is using ubuntu 20.04 and got the same error:
2024-12-17 01:28 AM
My Windows verison is Windows 10 Enterprise.
As said before, other examples for the CortexM33 build fine.
2024-12-17 01:32 AM
2024-12-17 08:59 AM
Hello @HBujanda,
I have reproduce your error on my ubuntu station.
Could you go into your project's properties then into C/C++ Build --> Settings --> MCU/MPU Settings, and tell us if you can access this menu ?
Regards,
Pwxn
2024-12-17 10:18 AM
Just clicking C/C++ Build --> Settings --> MCU/MPU Settings..... produce the same errors screens as when building:
Error during command line generation
Reason:
Unknown target
2024-12-18 12:09 AM
Hello @HBujanda,
We shared this information with the appropriate team.
We'll get back to you as soon as we have more information or a workaround.
Thank you for sharing this error.
Regards,
Pwxn
2024-12-18 02:00 AM
I mates,
While I wait for the fix to be able to build the firmware image for the CortexM0,
I've been reading the documentation on how to download the (once I have it) to the CortexM0 core.
But I dont have an entry for the cortexM0 at /sys/class/remoteproc
I've the one for the cortexm33:
root@stm32mp2:~# cat /sys/class/remoteproc/remoteproc0/name
m33
But not for the cortexm0:
root@stm32mp2:~# ls -al /sys/class/remoteproc/
lrwxrwxrwx 1 root root 0 Dec 18 09:36 remoteproc0 -> ../../devices/platform/ahb@1/0.m33/remoteproc/remoteproc0
root@stm32mp2:~#
I've flashed the images described from:
Which selects FlashLayout_sdcard_stm32mp257f-ev1-ca35tdcid-ostl-m33-examples-optee.tsv
root@stm32mp2:~# uname -a
Linux stm32mp2 6.6.48 #1 SMP PREEMPT Thu Aug 29 15:33:59 UTC 2024 aarch64 GNU/Linux
In a second step, reviewing the instructions at https://wiki.st.com/stm32mpu/wiki/How_to_use_the_Cortex-M0%2B#Memories_RIF_configuration_example
I've installed the linux kernel source code, make sure that all the pieces described there like having STM32_M0_RPROC in the defconfig and some other entries in the device tree... build the kernel image and dtb and flashed to the module....
With same result: the entry for /sys/class/remoteproc/remoteproc1/firmware is not available.
Any hint?
Thanks in advance, Hector.
2024-12-19 09:00 AM
Hi @HBujanda
Could you use the FlashLayout_sdcard_stm32mp257f-ev1-optee.tsv instead ?
We'll get back to you regarding the project. We are currently reviewing the application internally.
Regards,