北京注册建设公司网站,电子商务网站开发价格,专科网页设计实训报告,网站设计难吗基于 vscode 搭建开发环境 1. 准备2. 安装2.1. 安装瑞萨软件包2.2. 安装编译器2.3. 安装 cmake2.4. 安装 openocd2.5. 安装 ninja2.6. 安装 make 3. 生成初始代码4. 修改 cmake 脚本5. 调试准备6. 仿真 1. 准备
需要瑞萨仓库中的两个软件#xff1a;
MDK_Device_Packs.zipse… 基于 vscode 搭建开发环境 1. 准备2. 安装2.1. 安装瑞萨软件包2.2. 安装编译器2.3. 安装 cmake2.4. 安装 openocd2.5. 安装 ninja2.6. 安装 make 3. 生成初始代码4. 修改 cmake 脚本5. 调试准备6. 仿真 1. 准备
需要瑞萨仓库中的两个软件
MDK_Device_Packs.zipsetup_fsp_rasc.exe(RA Smart Configurator)
交叉编译工具链
gcccmake 2. 安装
2.1. 安装瑞萨软件包
MDK_Device_Packs_v5.2.0.zip setup_fsp_v5_2_0_rasc_v2024-01.1.exe 安装 setup_fsp_rasc.exe(RA Smart Configurator)
2.2. 安装编译器
Arm GNU Toolchain Downloads – Arm Developer 下载最新版本arm-gnu-toolchain-13.2.rel1-mingw-w64-i686-arm-none-eabi.zip
下载后解压把解压路径添加到环境变量。
在终端中执行指令查看 gcc 的版本信息
$ arm-none-eabi-gcc -v
Using built-in specs.
COLLECT_GCCD:\Applications\Toolchain\arm-gnu-toolchain-13.2.Rel1-mingw-w64-i686-arm-none-eabi\bin\arm-none-eabi-gcc.exe
COLLECT_LTO_WRAPPERD:/Applications/Toolchain/arm-gnu-toolchain-13.2.Rel1-mingw-w64-i686-arm-none-eabi/bin/../libexec/gcc/arm-none-eabi/13.2.1/lto-wrapper.exe
Target: arm-none-eabi
Configured with: /data/jenkins/workspace/GNU-toolchain/arm-13/src/gcc/configure --targetarm-none-eabi --prefix/data/jenkins/workspace/GNU-toolchain/arm-13/build-mingw-arm-none-eabi/install --with-gmp/data/jenkins/workspace/GNU-toolchain/arm-13/build-mingw-arm-none-eabi/host-tools --with-mpfr/data/jenkins/workspace/GNU-toolchain/arm-13/build-mingw-arm-none-eabi/host-tools --with-mpc/data/jenkins/workspace/GNU-toolchain/arm-13/build-mingw-arm-none-eabi/host-tools --with-isl/data/jenkins/workspace/GNU-toolchain/arm-13/build-mingw-arm-none-eabi/host-tools --disable-shared --disable-nls --disable-threads --disable-tls --enable-checkingrelease --enable-languagesc,c,fortran --with-newlib --with-gnu-as --with-headersyes --with-gnu-ld --with-native-system-header-dir/include --with-sysroot/data/jenkins/workspace/GNU-toolchain/arm-13/build-mingw-arm-none-eabi/install/arm-none-eabi --with-multilib-listaprofile,rmprofile --with-libiconv-prefix/data/jenkins/workspace/GNU-toolchain/arm-13/build-mingw-arm-none-eabi/host-tools --hosti686-w64-mingw32 --with-pkgversionArm GNU Toolchain 13.2.rel1 (Build arm-13.7) --with-bugurlhttps://bugs.linaro.org/
Thread model: single
Supported LTO compression algorithms: zlib
gcc version 13.2.1 20231009 (Arm GNU Toolchain 13.2.rel1 (Build arm-13.7))2.3. 安装 cmake
https://cmake.org/download/
下载后解压把解压路径添加到环境变量。
在终端中执行指令查看 cmake 的版本信息
$ cmake --version
cmake version 3.28.4CMake suite maintained and supported by Kitware (kitware.com/cmake).2.4. 安装 openocd
https://github.com/openocd-org/openocd/releases 下载解压后将解压路径添加到环境变量中。
在终端中执行指令查看 openocd 的版本信息
$ openocd --version
Open On-Chip Debugger 0.12.0 (2023-01-14-23:37)
Licensed under GNU GPL v2
For bug reports, readhttp://openocd.org/doc/doxygen/bugs.html2.5. 安装 ninja
ninja 和 make 都是构建系统工具它们通常作为后端被 cmake 生成和使用相比之下 ninja 具有更好的性能和更专注于构建速度。
https://github.com/ninja-build/ninja/releases 下载解压后将解压路径添加到环境变量。
在终端中执行命令查看 ninja 版本信息
$ ninja --version
1.11.12.6. 安装 make
https://gnuwin32.sourceforge.net/packages/make.htm 下载安装后需要将安装路径添加到环境变量中。
在终端中执行命令查看 make 版本信息
$ make --version
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.This program built for i386-pc-mingw323. 生成初始代码
打开 rasc(RA Smart Configurator) RAFA6M3A H 3 C FB
H2MBFB144引脚 4. 修改 cmake 脚本
修改顶层 CMakeLists.txt 5. 调试准备
玩转 pyocd - 哈拎 - 博客园 (cnblogs.com)
$ pyocd list -tName Vendor Part Number Families Source
------------------------------------------------------------------------------------------------------air001 AirM2M Air001 builtin air32f103xb AirM2M Air32F103xB builtin air32f103xc AirM2M Air32F103xC builtin air32f103xe AirM2M Air32F103xE builtin air32f103xg AirM2M $ pyocd pack -sVendor Pack Version
---------------------------$ pyocd pack find R7FA6M3AH
0000684 I No pack index present, downloading now... [pack_cmd]Part Vendor Pack Version Installed
--------------------------------------------------------------R7FA6M3AH Renesas Renesas.RA_DFP 5.2.0 False$ pyocd pack -i R7FA6M3AH
Downloading packs (press Control-C to cancel):Renesas.RA_DFP.5.2.0
Downloading descriptors (001/001)$ pyocd pack -sVendor Pack Version
------------------------------Renesas RA_DFP 5.2.0$ pyocd list -p# Probe/Board Unique ID Target
----------------------------------------------------------0 XIVN1987 XV-Link CMSIS-DAP 5F95D4D86436 n/a$ pyocd flash --targetR7FA6M3AH --eraseauto --frequency1000000 ./build/FSP_Project.elf
0001841 I Loading D:\Workspace\other\ra\proj01\build\FSP_Project.elf [load_cmd]
[] 100%
0009190 I Erased chip, programmed 4992 bytes (39 pages), skipped 912 bytes (8 pages) at 0.79 kB/s [loader]没尝试过RT-Thread-使用标准PyOCD烧录RA6M3 HMI-BoardRT-Thread问答社区 - RT-Thread 6. 仿真
F5