MCUXpresso Installer not working in Visual Studio Code under linux

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MCUXpresso Installer not working in Visual Studio Code under linux

跳至解决方案
1,403 次查看
pejo
Contributor III

Hi all,

I'm trying to configure Visual Studio Code to work in Linux emvironment. As many others I'm using a Docker Container where I install the tools and then open Visual Studio code.

I manage to install MCUXpresso ide (so that I can keep using toolchain, cmake, make, mcu-fixelf and other tools) and MCUXpresso Installer, which is required from MCUXpresso for VS Code.

When i open the project in my Dev Container it seems to work. I just get a message that I need to reload the windos in order ot use the MCUXpresso for VS Code extension:

 
 

VSCodeDockeWarn.jpg

I reload it and then I get a message that dependencies cannot be checked because MCUXpresso installer is busy.

VSCodeDockeWarn2.jpg
And it seems busy forever..

once I do it I try to use the MCUXpresso Installer but it seem eternally busy...

标签 (1)
0 项奖励
回复
1 解答
1,294 次查看
pejo
Contributor III

Hi,

I think that I fixed the issue. For any other docker users.

How to install MCUXpresso Installer in Dockerfile:

- You need to use a user (as sudoer)

- Include packages installed with apt-get

  * dbus

  * libnss3

  * libatk1.0-0

  * libatk-bridge2.0-0

  * libcups2

  * libdrm2

  * libgtk-3-0

  * libgbm1

  * libasound2
 

- Create recursively folder /var/run/dbus/

- instal python library west

- Unpack deb MCUXpresso Installer in the user home folder (don't forget to change owner to this user)

- On starting the container you should start dbus with:

"sudo dbus-daemon --system --nofork"
- You might experience problems with the env var DISPLAY (check by running MCUXpressoInstallerCLI --help). In this case you can start the container assigning this var  like this:
DISPLAY=:0

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,366 次查看
Habib_MS
NXP Employee
NXP Employee

Hi @pejo,

Firstly, please confirm that all MCUxpresso dependences has been installed in MCUxpreso installer:

MCUxpresso_installer.jpg

Also, when all installations are ended, could you verify if when you load the page now the loading is completed?

BR
Habib 

0 项奖励
回复
1,295 次查看
pejo
Contributor III

Hi,

I think that I fixed the issue. For any other docker users.

How to install MCUXpresso Installer in Dockerfile:

- You need to use a user (as sudoer)

- Include packages installed with apt-get

  * dbus

  * libnss3

  * libatk1.0-0

  * libatk-bridge2.0-0

  * libcups2

  * libdrm2

  * libgtk-3-0

  * libgbm1

  * libasound2
 

- Create recursively folder /var/run/dbus/

- instal python library west

- Unpack deb MCUXpresso Installer in the user home folder (don't forget to change owner to this user)

- On starting the container you should start dbus with:

"sudo dbus-daemon --system --nofork"
- You might experience problems with the env var DISPLAY (check by running MCUXpressoInstallerCLI --help). In this case you can start the container assigning this var  like this:
DISPLAY=:0
0 项奖励
回复
1,334 次查看
pejo
Contributor III

Additionally I tried to run MCUXpressoInstallerCLI from the command line and this is what I'm getting:


[3225:0310/082026.037036:ERROR:ozone_platform_x11.cc(245)] Missing X server or $DISPLAY
[3225:0310/082026.037078:ERROR:env.cc(258)] The platform failed to initialize. Exiting.
Segmentation fault (core dumped)

0 项奖励
回复
1,310 次查看
Habib_MS
NXP Employee
NXP Employee

Hi @pejo

As mentioned in the following thread, there is no documentation related to a docker with all dependencies for vscode-for-mcux. I recommend looking into support for the Docker, as this issue is mainly related to the Docker dependencies, which is out of scope for the free technical support channel. But you can find more information inside the thread.

BR
Habib

0 项奖励
回复
1,336 次查看
pejo
Contributor III

Hi Habib,

Apparently Depedency check is not working either:

 

VSCodeDockeWarn3.jpg

0 项奖励
回复