最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

歡迎光臨散文網(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ó)家法律
海兴县| 九龙县| 丰都县| 资阳市| 化德县| 平乡县| 玉屏| 阜新| 江达县| 原平市| 北辰区| 正宁县| 思南县| 平罗县| 澄江县| 曲松县| 乌鲁木齐县| 宜州市| 库伦旗| 洱源县| 三原县| 芮城县| 邹平县| 启东市| 浪卡子县| 韩城市| 临城县| 理塘县| 中西区| 西乌珠穆沁旗| 古田县| 温州市| 大城县| 新兴县| 福鼎市| 平顺县| 新蔡县| 调兵山市| 大足县| 安远县| 衡水市|