2021-04-15 10:38 AM
I have an STM32MP157F-DK2 board. I want to be able to build my own image from scratch and I keep hitting knowledge gaps in the how-to guides on the st wiki page.
I have tried to follow multiple guides including this one: https://wiki.st.com/stm32mpu/wiki/How_to_manage_OpenSTLinux_project_in_STM32CubeIDE
What I have done:
Where I am stuck:
What I have:
What I am looking to do, as per the guide:
Solved! Go to Solution.
2021-04-28 02:49 AM
Hi VWied.1,
Sorry for the delay.
There are several points to check:
If not, please check SD-Card and boot pins: https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Let%27s_start/Populate_the_target_and_boot_the_image
Hope this help,
Ludovic
2021-04-28 09:47 AM
Hello Ludovic,
The device boots with the default software. I got the target status to show. It looks like one of my USB ports only charges and does not have any data lines. I switched the USB from that to another one and it is working now.
For getting the launch configurations, I am still having the same issue though. I still have 'Connection "" not available' See the image below. When I try to add the configuration like the guide tells me to, I get this:
2021-04-28 09:48 AM
2021-04-28 11:27 AM
So I found another community.st.com answer that mentioned that this scenario can be because the dependency of openocd is missing. I have apt installed that and I am able to find a connection now. From here, I select the local path and remote path as described in the debugging guide you shared earlier. You can find the setup that I have done for the Run configuration and the error:
2021-04-29 01:00 AM
Hi VWied.1,
First point, openOCD is part of STM32CubeIDE delivery and by default this embedded one is used.
The problem you are facing is a pure network issue:
. did you check network connection between your Linux workstation and STM32MP15 board?
. is ping working?
. target status green light?
. did you try to select a select a connection?
Best Regards,
Ludovic
2021-04-29 10:14 AM
Hello @LudovicR
I can ping the device.
The status light is now green.
I can also do "minicom -D /dev/ttyACM0
I can ping the device using the IP address that shows up in the bottom right of STM32CubeIDE now.
I don't know what has changed from yesterday, but I am now able to push a new dtb file to the device which is nice.
I am able to debug linux userspace projects as well.
The last thing that I will need to do is be able to build the full image in STM32CubeIDE that I can use DD to copy to an SD card for scaling up. Are you able to build images with CubeIDE?