MCUXpresso Installer not working in Visual Studio Code under linux

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MCUXpresso Installer not working in Visual Studio Code under linux

ソリューションへジャンプ
1,640件の閲覧回数
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,531件の閲覧回数
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,603件の閲覧回数
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,532件の閲覧回数
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,571件の閲覧回数
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,547件の閲覧回数
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,573件の閲覧回数
pejo
Contributor III

Hi Habib,

Apparently Depedency check is not working either:

 

VSCodeDockeWarn3.jpg

0 件の賞賛
返信