Ubuntu16インストールSTM32CubeMX

免責事項:この記事はブロガーオリジナル記事ですが、許可ブロガーなく再生してはなりません。https://blog.csdn.net/weifengdq/article/details/81332802

インストール

リファレンス64のUbuntu 16.04 STM32CubeMX-4.24.0をマウント

次の主要な手順を記録します。

#安装32位运行时库
sudo apt install libc6-i386
#安装jre
sudo apt install default-jre
#设置path, 参考 https://segmentfault.com/a/1190000001703180
sudo update-alternatives --config java
#选1 java-8
#安装STM32CubeMX, 注意文件名中的版本号可能不同
sudo ./SetupSTM32CubeMX-4.26.1.linux 

デフォルトのインストールパスでは、/ usr / local / STマイクロエレクトロニクス/ STM32Cubeで 、/ STM32CubeMX /ホーム/ karotoにそれを回す/ドキュメントは/アプリ / STM32CubeMX、 インストールが完了した後STM32組み込みソフトウェアがインストールされた後、STM32CubeMXを開くにはダブルクリックしますUbuntuのパッケージ。STM32の開発環境を使用することができますTrueStudioを

ヒント

私は、STM32CubeMXの4.26.1バージョンをインストールので、次の9 Javaで間違っているように見えるsudo apt install default-jre、彼らはパスを確認する必要があり、私が通じどのように不注意なJavaの9のインストールを知らないsudo update-alternatives --config java:変更、一部のレコードのJava 8を

karoto@karoto-PC:~/Downloads/lz/en.stm32cubemx$ sudo ./SetupSTM32CubeMX-4.26.1.linux 
chdir /home/karoto/Downloads/lz/en.stm32cubemx/.
current dir /home/karoto/Downloads/lz/en.stm32cubemx
Aug 11, 2018 4:04:18 PM INFO: Logging initialized at level 'INFO'
Aug 11, 2018 4:04:18 PM INFO: Commandline arguments: 
Aug 11, 2018 4:04:19 PM INFO: Detected platform: ubuntu_linux,version=4.15.0-30-generic,arch=x64,symbolicName=null,javaVersion=9-internal
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f616e921009, pid=3922, tid=3978
#
# JRE version: OpenJDK Runtime Environment (9.0) (build 9-internal+0-2016-04-14-195246.buildd.src)
# Java VM: OpenJDK 64-Bit Server VM (9-internal+0-2016-04-14-195246.buildd.src, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  [libjava.so+0x1d009]  JNU_GetEnv+0x19
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P" (or dumping to /home/karoto/Downloads/lz/en.stm32cubemx/core.3922)
#
# An error report file with more information is saved as:
# /home/karoto/Downloads/lz/en.stm32cubemx/hs_err_pid3922.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Aborted (core dumped)


karoto@karoto-PC:~/Downloads/lz/en.stm32cubemx$ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-9-openjdk-amd64/bin/java       1091      auto mode
  1            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode
  2            /usr/lib/jvm/java-9-openjdk-amd64/bin/java       1091      manual mode

Press <enter> to keep the current choice[*], or type selection number: 1
update-alternatives: using /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java to provide /usr/bin/java (java) in manual mode


karoto@karoto-PC:~/Downloads/lz/en.stm32cubemx$ sudo ./SetupSTM32CubeMX-4.26.1.linux 
chdir /home/karoto/Downloads/lz/en.stm32cubemx/.
current dir /home/karoto/Downloads/lz/en.stm32cubemx
Aug 11, 2018 4:09:53 PM INFO: Logging initialized at level 'INFO'
Aug 11, 2018 4:09:53 PM INFO: Commandline arguments: 
Aug 11, 2018 4:09:53 PM INFO: Detected platform: ubuntu_linux,version=4.15.0-30-generic,arch=x64,symbolicName=null,javaVersion=1.8.0_181
[ Writing the uninstaller data ... ]

おすすめ

転載: blog.csdn.net/weifengdq/article/details/81332802
おすすめ