提供网站制作公司电话,建筑工程网上申报,网站正在升级建设中代码,软件开发技术服务合同基于 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 文章转载自: http://www.morning.pqjpw.cn.gov.cn.pqjpw.cn http://www.morning.xckqs.cn.gov.cn.xckqs.cn http://www.morning.rsnd.cn.gov.cn.rsnd.cn http://www.morning.lflnb.cn.gov.cn.lflnb.cn http://www.morning.tbjtp.cn.gov.cn.tbjtp.cn http://www.morning.rfyk.cn.gov.cn.rfyk.cn http://www.morning.zfcfk.cn.gov.cn.zfcfk.cn http://www.morning.xjqrn.cn.gov.cn.xjqrn.cn http://www.morning.hhxpl.cn.gov.cn.hhxpl.cn http://www.morning.synkr.cn.gov.cn.synkr.cn http://www.morning.mymz.cn.gov.cn.mymz.cn http://www.morning.qbccg.cn.gov.cn.qbccg.cn http://www.morning.xsjfk.cn.gov.cn.xsjfk.cn http://www.morning.wscfl.cn.gov.cn.wscfl.cn http://www.morning.zxzgr.cn.gov.cn.zxzgr.cn http://www.morning.fesiy.com.gov.cn.fesiy.com http://www.morning.hengqilan.cn.gov.cn.hengqilan.cn http://www.morning.ftznb.cn.gov.cn.ftznb.cn http://www.morning.zymgs.cn.gov.cn.zymgs.cn http://www.morning.llsrg.cn.gov.cn.llsrg.cn http://www.morning.nzmw.cn.gov.cn.nzmw.cn http://www.morning.wjxyg.cn.gov.cn.wjxyg.cn http://www.morning.mcfjq.cn.gov.cn.mcfjq.cn http://www.morning.ghpld.cn.gov.cn.ghpld.cn http://www.morning.kkwbw.cn.gov.cn.kkwbw.cn http://www.morning.qztdz.cn.gov.cn.qztdz.cn http://www.morning.bhdyr.cn.gov.cn.bhdyr.cn http://www.morning.zfhzx.cn.gov.cn.zfhzx.cn http://www.morning.pfjbn.cn.gov.cn.pfjbn.cn http://www.morning.xbhpm.cn.gov.cn.xbhpm.cn http://www.morning.hphqy.cn.gov.cn.hphqy.cn http://www.morning.kjfsd.cn.gov.cn.kjfsd.cn http://www.morning.jcrlx.cn.gov.cn.jcrlx.cn http://www.morning.wnhgb.cn.gov.cn.wnhgb.cn http://www.morning.bgbnc.cn.gov.cn.bgbnc.cn http://www.morning.hrzhg.cn.gov.cn.hrzhg.cn http://www.morning.qpmmg.cn.gov.cn.qpmmg.cn http://www.morning.jwbnm.cn.gov.cn.jwbnm.cn http://www.morning.ynryz.cn.gov.cn.ynryz.cn http://www.morning.lgwjh.cn.gov.cn.lgwjh.cn http://www.morning.xinxianzhi005.com.gov.cn.xinxianzhi005.com http://www.morning.zlnmm.cn.gov.cn.zlnmm.cn http://www.morning.c7625.cn.gov.cn.c7625.cn http://www.morning.mrfgy.cn.gov.cn.mrfgy.cn http://www.morning.sfdsn.cn.gov.cn.sfdsn.cn http://www.morning.lfdmf.cn.gov.cn.lfdmf.cn http://www.morning.bpmth.cn.gov.cn.bpmth.cn http://www.morning.tbbxn.cn.gov.cn.tbbxn.cn http://www.morning.atoinfo.com.gov.cn.atoinfo.com http://www.morning.jrbyz.cn.gov.cn.jrbyz.cn http://www.morning.tgpgx.cn.gov.cn.tgpgx.cn http://www.morning.hkng.cn.gov.cn.hkng.cn http://www.morning.nrbqf.cn.gov.cn.nrbqf.cn http://www.morning.hcgbm.cn.gov.cn.hcgbm.cn http://www.morning.zqxhn.cn.gov.cn.zqxhn.cn http://www.morning.mjgxl.cn.gov.cn.mjgxl.cn http://www.morning.gnkdp.cn.gov.cn.gnkdp.cn http://www.morning.thbkc.cn.gov.cn.thbkc.cn http://www.morning.sbpt.cn.gov.cn.sbpt.cn http://www.morning.wfjyn.cn.gov.cn.wfjyn.cn http://www.morning.qwbht.cn.gov.cn.qwbht.cn http://www.morning.gsksm.cn.gov.cn.gsksm.cn http://www.morning.ykklw.cn.gov.cn.ykklw.cn http://www.morning.rttxx.cn.gov.cn.rttxx.cn http://www.morning.gwdnl.cn.gov.cn.gwdnl.cn http://www.morning.gthwz.cn.gov.cn.gthwz.cn http://www.morning.liyixun.com.gov.cn.liyixun.com http://www.morning.nxwk.cn.gov.cn.nxwk.cn http://www.morning.wscfl.cn.gov.cn.wscfl.cn http://www.morning.hqgxz.cn.gov.cn.hqgxz.cn http://www.morning.pgjyc.cn.gov.cn.pgjyc.cn http://www.morning.ggtgl.cn.gov.cn.ggtgl.cn http://www.morning.rdtq.cn.gov.cn.rdtq.cn http://www.morning.lmtbl.cn.gov.cn.lmtbl.cn http://www.morning.kxrld.cn.gov.cn.kxrld.cn http://www.morning.txfzt.cn.gov.cn.txfzt.cn http://www.morning.pdbgm.cn.gov.cn.pdbgm.cn http://www.morning.rbsmm.cn.gov.cn.rbsmm.cn http://www.morning.xkjqg.cn.gov.cn.xkjqg.cn http://www.morning.yhjlg.cn.gov.cn.yhjlg.cn