Skip to main content
jasonj2
Associate III
June 19, 2024
Question

stm32cubeide cannot install custom made sdk

  • June 19, 2024
  • 2 replies
  • 1201 views

Hello,

I am developing using the OpenSTLinux Ecosystem 4.1 Distribution package.  And I generate "SDK by bitbake -c populate_sdk st-image-core", and obtained the SDK (I think it is the same to the Developer Package offererd by st.com). After that, I run the xxx.sh file inside the deploy/sdk path and finally installed it into /opt directory. Until then, everything is OK.

When I open STM32CubeIDE (version 1.15.1) to install the SDK, every time I choose the SDK installation path where there is a sysroot directory, STM32CubeIDE complains that

 

An internal error occurred during: "OpenSTLinux Lookup".
java.lang.NullPointerException

 

Here is the directory structures of my own SDK installation.

 

jason@dell15:/opt/st/stm32mp1-dragonli5$ tree 4.0.11-snapshot/ -L 2
4.0.11-snapshot/
├── environment-setup-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi
├── site-config-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi
├── sysroots
│ ├── cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi
│ └── x86_64-ostl_sdk-linux
└── version-cortexa7t2hf-neon-vfpv4-ostl-linux-gnueabi

3 directories, 3 files

 

I can source the environment-setup-xxx.sh and everything is OK.

I had tested the with STM32CubeIDE and the SDK in Ubuntu 22.04(WSL2) and Ubuntu 20.04 in a real machine.  Always the same results.

So, what is the problem? Anyone can help?

Thanks in advance.

Best regards.

 

2 replies

jasonj2
jasonj2Author
Associate III
June 24, 2024

Anyone can help? I totally has no clue what's wrong with the SDK.

Olivier GALLIEN
Technical Moderator
June 28, 2024

Hi @jasonj2 ,

 

Sorry to come late in the thread. 

 

I read you are using OSTL DV4.1 and CubeIDE 1.15 

 

This is not valid setup, CubeIDE 1.15 support only latest DV5.0 OSTL. 

 

Moreover to add a custom SDK in CubeIDE it might sctricly respect exact same name as the default one. 

 

Hope it help 

OIivier

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.