无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

Ubuntu環(huán)境下,使用開(kāi)發(fā)STM32

2023-08-31 12:33 作者:WT_D  | 我要投稿

Building STM32 development environment in Linux system

(Using Ubuntu 18.04 + Arm GNU Toolchain 12 + VS Code)

1.???? Add normal user to root:

(1)?? $ sudo vim /etc/sudoers

(2)?? Insert the command:

2.???? Install?Java

(1)?? Installation command:

$ sudo apt install openjdk-11-jdk

or $ sudo apt install openjdk-8-jdk (for other versions)

(2)?? verify installation:

$ java --version


(3)?? Add it to environment variable (optional):

$ sudo vim /etc/environment

add the java installation path: /usr/lib/jvm/java-11-openjdk-amd64

(4)?? Enable the change:

$ source /etc/environment

(5)? ?Verify the change:

$ echo $JAVA_HOME

3.???? Install the GCC-Arm:

(1)?? Download the gcc-arm toolchain:

(2)?? Copy the package to /usr/local/arm:

$ sudo cp arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi.tar.xz /usr/local/arm/

(3)?? Extract the package:

$ sudo tar -xvf arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi.tar.xz

(4)?? Add path to the environment:

$sudo vim /etc/profile

(5)?? After restart, verify the change:

(6)?? Set VSCode:

Find GCC installation path:

4.???? Install the OpenOCD:

(1)?? Use git to download the openocd:

$ git clone https://github.com/openocd-org/openocd.git

(2)?? Download the essential library:

$sudo apt install build-essential pkg-config autoconf automake libtool libusb-dev libusb-1.0-0-dev libhidapi-dev libtool libsysfs-dev

(3)?? Open the OpenOCD directory and enter $ sudo ./bootstrap

(4)?? Enter the $ sudo ./configure

(5)?? Enter $ sudo make and then enter $ sudo make install to finish the installation.

(6)?? Verify the installation:

5.?Install STM32CubeMX

(1)?? After unzipping the package, set the installation file as an executable file:

$ chmod 777 SetupSTM32CubeMX-6.9.1

(2)?? Run the installation application:

$./SetupSTM32CubeMX-6.9.1

(3)?? After finishing the installation, add STM32CubeMX path to environment variable:

$ sudo vim ~/.bashrc

And then adding this command to the end of file:

Save and quit Vim. Next enable the change:

$source ~/.bashrc

(4)?Verify the Change:

6.?Add STM32CubeProgrammer to the environment path:

$ sudo vim ~/.bashrc and then $ source ~/.bashrc

7.?Install the STM32CubeCLT:

8.?VSCode and Makefile setting:

(1)?? VScode



get Defines from Makefiles:

(2)?? Add?make flash command to Makefile file:

9.???? Set full screen display in Virtualbox:


Ubuntu環(huán)境下,使用開(kāi)發(fā)STM32的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
渭南市| 玉屏| 乌恰县| 砚山县| 宁武县| 调兵山市| 郴州市| 延津县| 沙洋县| 平舆县| 韶关市| 广水市| 鄢陵县| 含山县| 朝阳市| 托克逊县| 泽普县| 榕江县| 昭平县| 会昌县| 阜新市| 桃园市| 湖南省| 大荔县| 沁阳市| 井研县| 泗洪县| 酒泉市| 濮阳县| 滦南县| 松滋市| 永川市| 新余市| 新绛县| 扶绥县| 固安县| 灵宝市| 昆明市| 沽源县| 旌德县| 雷州市|