2019-06-12 12:10 AM
Hi ST Community,
i am using STM32CubeIDE. But i can not create an example project as i am getting the following error.
But according to old posts related to STM32MP157, other users have created the example project successfully. Need some help please for getting started.
i am using STM32CubeIDE v1.0.0.
Best Regards,
Usman
Solved! Go to Solution.
2019-07-04 02:19 AM
Good to hear it is working, for our knowledge, what's went wrong ?
For Linux debug, please have a look to https://wiki.st.com/stm32mpu/wiki/Linux_tracing,_monitoring_and_debugging
2019-06-12 01:02 AM
Hi @MBhin
As stated in the error message STM32MP157 is not yet supported in STM32CubeIDE V1.0.0
It will be supported very soon, in next version coming in July.
In the meantime you can use SW4STM32 and build a project that will be compatible with STM32CubeIDE.
BR,
Olivier
2019-06-12 01:12 AM
You could use STM32CubeMX to generate the Cortex-M4 SW4STM32 project.
2019-06-12 02:55 AM
@PatrickF @Community member Thank you so much guys it was very helpful. could you please guide me about another issue relating to Debugging.
I used STM32CubeMX v2.0.1 to create STM32MP157AAAx project. it also created STM32CubeIDE competible prject file. i can clean and build the project. But, i am getting the following error message, when i start the debug session:
Could you please guide me what am i missing. i have Power Cable plug in and ST-Link USB connected. (LD1 and LD6 are on, LD2 is blinking). and i have jumper connections as described in https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-EV1/Let%27s_start/Unpack_the_STM32MP157x-EV1_board.
2019-06-12 06:55 AM
Are you sure ST-Link drivers correctly installed ? Need to install STM32CubeProgrammer.
Otherwise, please have a look on https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-EV1/Develop_on_Arm%C2%AE_Cortex%C2%AE-M4/Modify,_rebuild_and_reload_a_firmware
and also on https://wiki.st.com/stm32mpu/wiki/STM32CubeMP1_development_guidelines
2019-06-25 05:43 AM
@PatrickF Yes the issue is with ST-Link. i have installed STM32CubeProgrmmer, currently i am using windows 10 and st-link drivers are correctely installed as i have tested the functionality of st-link on other st board. currently i am using "engineering mode" (Boot[2:0] = 0b100), and MB1263/JP1 is OFF, MB1263/JP4 [2-3] and JP5 [2-3] are O. But unfortunately i am still getting No ST-Link detected. ont thing is for sure that some configuration fails, which i am missing, can you please have a look on current settings and guide me what am i missing?
But the weired thing is DFU driver for USB_OTG is working.
2019-06-25 05:55 AM
Hi @MBhin
I'm wondering if there is not misunderstanding with my previous comment.
You can not use STM32CubeIDE at all with STM32MP1 so far. STM32MP1 target is not known.
Connection with ST-Link in engineering mode will fail.
You need to use SW4STM32 instead.
https://wiki.st.com/stm32mpu/wiki/STM32-CoPro-MPU_plugin_for_SW4STM32
Olivier
2019-06-25 06:11 AM
hi @Community member ,
i created an example project using stm32cubeMx. build it using STM32CubeIDE (which is working, i have *.out file). With STM32CubeProgrammer Theoratically i should be able to detect at lease Serial number from ST-Link if i have correctly installed version of ST-Link driver in my PC and have set the correct Jumpers to use on board st.link V2.1. But as you can see in attachment, it is not the case:
2019-06-25 06:31 AM
Hello,
with STM32MP1 family, STM32CubeProgrammer could only be used to program the board Flash (for EV1, could SD-Card, eMMC, Serial-NOR, SLC-NAND) with a Linux package (e.g. TF-A, u-Boot, Linux, Filesystem, etc..). With STM32Mp1 family, STM32CubeProgrammer only connect using USB OTG DFU (i.e. Serial Boot) and never need ST-Link (i.e. No way to Flash using JTAG/SWD). This 'serial boot' mode is not possible in BOOT[2:0] = 'Engineering boot' . See wiki.
I remind that Cortex-M4 binary cannot be directly loaded (i.e. in SRAMs/RETRAM) or even programmed in Flash using STM32CubeProgrammer, it should be part of Linux Filesystem (e.g. could be updated using SSH).
see e.g. wiki.
I understand you want to load and debug your Cortex-M4 project 'alone' (which is ok) and use "Engi mode" (i.e. no Linux running), the only way to do that is to use SW4STM32 which will then use ST-Link (SWD+VCP for the console).
In all case, ST-Link VCP is used for UART console.
2019-07-01 05:13 AM
@PatrickF Thank you so much for your answer. Could you please also guide me how can i flash the Linux Package and later an Application on Cortex-A7? there is a "STM32MP1 OpenSTLinux Starter Package" available. But i could not able to found the related Document, How to install the image file on Cortex-A.
Best Regards,
Bhinder