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

歡迎光臨散文網(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ó)家法律
竹溪县| 仪征市| 慈利县| 泉州市| 贵州省| 彭山县| 桓台县| 双流县| 济源市| 扎囊县| 佛山市| 宜都市| 聂拉木县| 百色市| 平顺县| 汝南县| 张家港市| 北票市| 呼和浩特市| 视频| 凤山市| 邵阳县| 鹰潭市| 泗阳县| 紫阳县| 长岭县| 县级市| 怀安县| 柳林县| 泸溪县| 齐河县| 墨竹工卡县| 嘉禾县| 海兴县| 徐闻县| 石渠县| 崇礼县| 张掖市| 察雅县| 海南省| 天等县|