cancel
Showing results for 
Search instead for 
Did you mean: 

Errors building CM0PLUS_DEMO for STM32MP257x-EV1

HBujanda
Associate II

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.

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

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,

 

View solution in original post

10 REPLIES 10
Olivier GALLIEN
ST Employee

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 

 

Olivier GALLIEN
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

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:

cm0_error.png

 

HBujanda
Associate II

My Windows verison is Windows 10 Enterprise.

As said before, other examples for the CortexM33 build fine.

HBujanda
Associate II

image.png

Pwxn
ST Employee

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

 

HBujanda
Associate II

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

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

HBujanda
Associate II

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:

https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP2_boards/STM32MP257x-EV1/Let%27s_start/Populate_the_target_and_boot_the_image

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.

 

 

 

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,