cancel
Showing results for 
Search instead for 
Did you mean: 

M4 ELF build done in CUBEIDE is not uploaded to target on dunfell platform

meiss.M
Associate III

The program can not be uploaded under the dunfell distribution via CUBEIDE 1.3.1 to the target system. Using the thud distribution, target uploads works.

Are there any hidden upload scripts in the CUBEIDE - how to debug the debug upload?

Which yocto packages are necessary to cooperate with the CUBEIDE?

23 REPLIES 23
meiss.M
Associate III
# stm32 nucleo boards, with onboard st/linkv2-1
# ie, STM32F0, STM32F4.
# STM32VL has st/linkv1, which is quite different
 
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="374b", \
    MODE:="0666", \
    SYMLINK+="stlinkv2-1_%n"
 
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="3752", \
    MODE:="0666", \
    SYMLINK+="stlinkv2-1_%n"
 
# If you share your linux system with other users, or just don't like the
# idea of write permission for everybody, you can replace MODE:="0666" with
# OWNER:="yourusername" to create the device owned by you, or with
# GROUP:="somegroupname" and mange access using standard unix groups.

i have the following udev rules in my etc...

49-stlinkv1.rules.O 49-stlinkv2-1.rules.O 49-stlinkv2.rules.O 49-stlinkv3.rules.O

meiss.M
Associate III

I think the major issue is that the ELF file is not getting uploaded to the target device.

How can I check this in the CUBEIDE.

What is the CUBEIDE doing before uploading the ELF file to the target device?

meiss.M
Associate III

BTW:

could you please add https openocd download support, since many users are companies are behind a firewall which only allows http git fetch:

diff --git a/recipes-devtools/openocd/openocd-stm32mp_0.10.0.bb b/recipes-devtools/openocd/openocd-stm32mp_0.10.0.bb
index 1f0e02f..76f08c3 100644
--- a/recipes-devtools/openocd/openocd-stm32mp_0.10.0.bb
+++ b/recipes-devtools/openocd/openocd-stm32mp_0.10.0.bb
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
 require openocd-stm32mp.inc
 
-SRC_URI_prepend = " git://repo.or.cz/openocd.git;name=openocd "
+SRC_URI_prepend = " git://repo.or.cz/openocd.git;name=openocd;protocol=https "
 
 SRCREV_FORMAT = "openocd"
 SRCREV_openocd = "b5d2b1224fed3909aa3314339611ac5ac7ab0f82"

meiss.M
Associate III

Even if the /lib/firmware path does not exist on the target device, there is no error produced, while uploading the ELF file using CUBEIDE.

meiss.M
Associate III

I have replaced on my target dropbear_2019.78.bb with dropbear_2018.76.bb from thud.

Now the progress bar appears in the CUBEIDE.

I will now replace openocd from thud.

meiss.M
Associate III

OK, I have also downgraded the openocd and I am using the thud build .bb package and now it works.

You may check the supported ssh protocols in eclipse with respect to the dropbear implementation before shipping.😉

@Community member​ were there any differences in the dunfell starter package compared to the git repository?

Many Greetings, Markus

Olivier GALLIEN
ST Employee

Hi @meiss.M​ 

Thanks for all these inputs and finding.

We will investigate this.

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.
Olivier GALLIEN
ST Employee

@meiss.M​ 

To complete information can you share linux version you use for host ?

Thx

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.
meiss.M
Associate III
# lsb_release -d
 
Description:   Ubuntu 18.04.4 LTS

within a docker environment.

On anther build system i use arch

However, the ssh related issues should be independent of the distro.

Please, add some ssh error checking in the CUBEIDE, maybe this can be done within the remote system explorer in eclipse?

OlivierK
ST Employee

Hi @meiss.M (Community Member)​ 

This issue has been understood. It is linked to the dropbear version that has changed in 5.4 dunfell version (OpenSTLinux 2.0) with a removed feature compared to the one in kernel 4.19 (OpenSTLinux V1.2)

An OpenSTLinux V2.0 patch will be released soon, for the time being as a workaround:

  • From a Starter package:

copy "/usr/sbin/dropbear" binary file found on an OpenSTLinux V1.2 image to an OpenSTLinux V2.0 image.

  • From a Distribution package:

Add at the end of conf/local.conf: PACKAGECONFIG_append_pn-dropbear = " "

Best Regards

Olivier