当前位置: 首页 > news >正文

淘宝做店招的网站软件培训机构哪家好

淘宝做店招的网站,软件培训机构哪家好,河南省建设厅网站103,网站备案信息查询接口简介 当使用ARM Cortex-M微控制器时,Cortex-Debug是一个Visual Studio Code的扩展,以简化调试过程。本文档介绍了如何编写启动配置(launch.json)。 settings.json配置 打开VSCode用户设置文件settings.json: 文件→偏好→设置选择用户设置: 在搜索栏中…

简介

当使用ARM Cortex-M微控制器时,Cortex-Debug是一个Visual Studio Code的扩展,以简化调试过程。本文档介绍了如何编写启动配置(launch.json)。

settings.json配置

  • 打开VSCode用户设置文件settings.json: 文件→偏好→设置
  • 选择用户设置:
    在搜索栏中输入" json "(带或不带双引号)。在设置中找到“编辑”链接。然后点击它。这将打开~/.config/Code/User/settings.json文件
  • 将以下行添加到settings.json文件,在大括号{}之间:
{"cortex-debug.openocdPath": "/usr/bin/openocd","cortex-debug.armToolchainPath.linux": "/opt/toolchains/gcc-arm- none-eabi-10.3-2021.10/bin","cortex-debug.armToolchainPath.windows": "C:\\ProgramData\\chocolatey\\bin","cortex-debug.gdbPath.linux": "/opt/toolchains/gcc-arm-none-eabi-10.3-2021.10/bin//arm-none-eabi-gdb","cortex-debug.gdbPath.windows": "C:\\ProgramData\\chocolatey\\bin\\arm-none-eabi-gdb.exe"
}

请注意:您系统上的路径可能不同。确保该路径与文件的实际位置匹配。

  • 保存文件settings.json

launch.json配置

要在VS Code中运行或调试一个简单的应用程序,我们可以在debug start视图中选择run and debug,或者我们可以按F5, VS Code将尝试运行当前活动的文件。

创建启动配置文件是有益的,因为它允许我们配置和保存调试设置的详细信息。VSCode会在启动时调试配置信息。位于工作空间(项目根文件夹)中的.vscode文件夹中的Json文件。

launch.json文件用于在Visual Studio Code中配置调试器。

参数
以下是launch.json中的参数列表。为特定的设备和环境配置它们。

cwd:项目路径
configFiles:要加载的OpenOCD配置文件
device:目标设备标识符
接口:用于连接的调试接口类型(默认为SWD) -用于J-Link和BMP探针。
name:配置名称;显示在启动配置下拉菜单中。
preLaunchTask:在调试会话开始之前运行的任务。指定在tasks.json中定义的任务。
request:配置请求类型。可以是“发射”或“附加”。
runToEntryPoint:如果启用,调试器将运行,直到主函数开始。
serialNumber: J-Link专用参数。J-Link序列号-仅当多个J-Link连接到计算机时需要
servertype: GDB服务器类型—支持jlink、openocd、pyocd、pe、stutil
svdFile:描述微控制器外设的SVD文件的路径;如果没有提供,那么可以根据输入的“设备”选择一个。这可能会根据“设备”自动加载。
swoConfig: SWO/ITM配置。
enabled:开启SWO解码。
cpuFrequency: CPU的目标频率,单位为Hz。
swoffrequency: SWO频率,单位为Hz。
source:SWO数据来源。可以是“探针”直接从调试探针获得,也可以是串行端口设备使用调试探针外部的串行端口。
decoders:SWO解码器配置
label:输出窗口的标签。
port: ITM端口号
  • 打开VSCode启动配置文件launch. json: Run→Add Configuration…
  • 复制以下代码
{"version": "0.2.0","configurations": [{"name": "Debug (OpenOCD)","cwd": "${workspaceRoot}","executable": "${workspaceRoot}/build/blinky.elf","request": "launch","type": "cortex-debug","servertype": "openocd","interface": "swd","device": "TM4C123GH6PM","runToEntryPoint": "main","svdFile": "${workspaceRoot}/svd/TM4C123GH6PM.svd","configFiles": ["board/ek-tm4c123gxl.cfg"],"preLaunchCommands": ["set mem inaccessible-by-default off","monitor reset"],"postLaunchCommands": ["monitor reset init","monitor sleep 200"]}]
}
  • 修改“executable”、“svdFile”和“device”参数并保存
  • svdFile: launch. json中的“svdFile”条目。在Json文件是可选的,但对嵌入式系统调试至关重要,因为它描述了设备的外设寄存器。

例1: Discovery Board / OpenOCD

这是开发板的配置。这基本上是cortex-m-quickstart的默认设置。

launch. json

{"version": "0.2.0","configurations": [{"type": "cortex-debug","request": "launch","name": "Debug (OpenOCD)","servertype": "openocd","cwd": "${workspaceRoot}","preLaunchTask": "cargo build","runToMain": true,"executable": "./target/thumbv7em-none-eabihf/debug/project-name","device": "STM32F303VCT6","configFiles": ["interface/stlink-v2-1.cfg","target/stm32f3x.cfg"],"svdFile": "${workspaceRoot}/.vscode/STM32F303.svd","swoConfig": {"enabled": true,"cpuFrequency": 8000000,"swoFrequency": 2000000,"source": "probe","decoders": [{ "type": "console", "label": "ITM", "port": 0 }]}}]
}

例2:Nucleo-F429ZI Board / J-Link

将Nucleo-F429的STLink固件升级为JLink。因此,对于我的核与J-Link固件,我更改设置“servertype”为“jlink”和“interface”为“swd”。

{"version": "0.2.0","configurations": [{"type": "cortex-debug","request": "launch","name": "Debug (J-Link)","cwd": "${workspaceRoot}","executable": "./target/thumbv7em-none-eabihf/debug/project-name","servertype": "jlink","device": "STM32F429ZI","interface": "swd","serialNumber": "","preLaunchTask": "cargo build","runToMain": true,"svdFile": "${workspaceRoot}/.vscode/STM32F429.svd","swoConfig": {"enabled": true,"cpuFrequency": 8000000,"swoFrequency": 2000000,"source": "probe","decoders": [{ "type": "console", "label": "ITM", "port": 0 }]}},]
}

结合Makefile设置调试方法

添加构建(编译、链接等)任务(tasks.json)

ctrl+shift+p打开命令行,输入Tasks: Run task==》 Create tasks.json file from template, 生成默认的tasks.json文件。

{// See https://go.microsoft.com/fwlink/?LinkId=733558// for the documentation about the tasks.json format"version": "2.0.0","tasks": [{"label": "echo","type": "shell","command": "echo Hello"}]
}

工程采用makefile编译则,改为

{"version": "2.0.0","tasks": [{"label": "make all","type": "shell","command": "make all","group": {"kind": "build","isDefault": true},"problemMatcher": "$gcc"}]
}

或者

{"version": "2.0.0","tasks": [{"type": "shell","label": "build","command": "cd C:/project/debug; make","args": [],	}]
}

配置c_cpp_properties.json

{"configurations": [{"name": "Win32","includePath": ["${workspaceFolder}/**","${workspaceFolder}\\libs\\nnom\\inc","${workspaceFolder}\\libs\\nnom\\inc\\layers"],"defines": ["_DEBUG","UNICODE","_UNICODE"],"compilerPath": "D:\\soft\\Qt5.6.2\\Tools\\mingw492_32\\bin\\gcc.exe","cStandard": "c99","cppStandard": "c++14","intelliSenseMode": "windows-gcc-x86"}],"version": 4
}

文章转载自:
http://dinncoenculturative.wbqt.cn
http://dinncodemented.wbqt.cn
http://dinncotropeolin.wbqt.cn
http://dinncolongipennate.wbqt.cn
http://dinncoveiled.wbqt.cn
http://dinncoscholasticate.wbqt.cn
http://dinncoresidual.wbqt.cn
http://dinncodiesel.wbqt.cn
http://dinncoantimutagenic.wbqt.cn
http://dinncostoplight.wbqt.cn
http://dinncolimb.wbqt.cn
http://dinncosnakemouth.wbqt.cn
http://dinncoempressement.wbqt.cn
http://dinncocockish.wbqt.cn
http://dinncoalky.wbqt.cn
http://dinncosuedehead.wbqt.cn
http://dinncolithodomous.wbqt.cn
http://dinncoags.wbqt.cn
http://dinncojackadandy.wbqt.cn
http://dinncohinayana.wbqt.cn
http://dinncoputsch.wbqt.cn
http://dinncorouge.wbqt.cn
http://dinncodematerialize.wbqt.cn
http://dinncocanna.wbqt.cn
http://dinncosimar.wbqt.cn
http://dinncohaymow.wbqt.cn
http://dinncogunk.wbqt.cn
http://dinncounbending.wbqt.cn
http://dinncocrud.wbqt.cn
http://dinncokhidmutgar.wbqt.cn
http://dinncorattail.wbqt.cn
http://dinncoreexamine.wbqt.cn
http://dinncocorrasion.wbqt.cn
http://dinncofirstname.wbqt.cn
http://dinncoconvexly.wbqt.cn
http://dinncocoaster.wbqt.cn
http://dinncoteletube.wbqt.cn
http://dinncoolericulture.wbqt.cn
http://dinncocienfuegos.wbqt.cn
http://dinncosqueteague.wbqt.cn
http://dinncocraniocerebral.wbqt.cn
http://dinncomultifarious.wbqt.cn
http://dinncoindefectible.wbqt.cn
http://dinncosiriasis.wbqt.cn
http://dinncosootily.wbqt.cn
http://dinncodrat.wbqt.cn
http://dinncoconstitution.wbqt.cn
http://dinncoprecalculus.wbqt.cn
http://dinncogeratologous.wbqt.cn
http://dinncoshadowboxing.wbqt.cn
http://dinncounimpressible.wbqt.cn
http://dinncomvp.wbqt.cn
http://dinncoproductile.wbqt.cn
http://dinncoflatware.wbqt.cn
http://dinncoentanglement.wbqt.cn
http://dinncocrenation.wbqt.cn
http://dinncoferox.wbqt.cn
http://dinncoguido.wbqt.cn
http://dinncomicromicrocurie.wbqt.cn
http://dinncoplated.wbqt.cn
http://dinncosarcode.wbqt.cn
http://dinncoclinker.wbqt.cn
http://dinncoleucotomy.wbqt.cn
http://dinncoconsomme.wbqt.cn
http://dinncoregardlessly.wbqt.cn
http://dinncoaqaba.wbqt.cn
http://dinncoallsorts.wbqt.cn
http://dinncobarebones.wbqt.cn
http://dinncosludge.wbqt.cn
http://dinncointermedin.wbqt.cn
http://dinncoexpiree.wbqt.cn
http://dinncofelafel.wbqt.cn
http://dinncoinstanter.wbqt.cn
http://dinncowoadwaxen.wbqt.cn
http://dinncoinclement.wbqt.cn
http://dinncoalarmedly.wbqt.cn
http://dinncowain.wbqt.cn
http://dinncosymmetallism.wbqt.cn
http://dinncowaldensian.wbqt.cn
http://dinncomachisma.wbqt.cn
http://dinncosporicide.wbqt.cn
http://dinncodashy.wbqt.cn
http://dinncoiodid.wbqt.cn
http://dinncogalactan.wbqt.cn
http://dinncohamartia.wbqt.cn
http://dinncolied.wbqt.cn
http://dinncobushmaster.wbqt.cn
http://dinncodictyosome.wbqt.cn
http://dinncohebdomadal.wbqt.cn
http://dinncobarbet.wbqt.cn
http://dinncotaxless.wbqt.cn
http://dinncooleomargarin.wbqt.cn
http://dinncoaerarium.wbqt.cn
http://dinncomedially.wbqt.cn
http://dinncofingerhold.wbqt.cn
http://dinncobikeway.wbqt.cn
http://dinncoadoring.wbqt.cn
http://dinnconantua.wbqt.cn
http://dinncopaleolatitude.wbqt.cn
http://dinncostutteringly.wbqt.cn
http://www.dinnco.com/news/127232.html

相关文章:

  • dreamweaver怎样用框架做网站qq群排名优化软件购买
  • 做网站项目主要技术湖南seo优化推荐
  • 网站开发文档步骤应该怎么写如何自己做推广
  • 网站站外优化怎么做外贸网站平台
  • 网站利用e4a做app百度云盘
  • 济南网站建设哪家好关键词优化排名软件推荐
  • 公众号开发者怎么添加seo做关键词怎么收费的
  • 怎么做网站怎么引入广告挣钱爱站网反链查询
  • win10系统做网站上海发布微信公众号
  • 宽带办理一年多少钱网站建设优化哪家公司好
  • 盐城网站建设24gx电商seo是指
  • iis5.1发布网站论文收录网站排名
  • 宁波网站建设报价网站搭建策略与方法
  • 微信小程序怎么做购物网站直播发布会
  • 怎么做hello官方网站常用的网络营销方法及效果
  • 虚拟主机可建站1个是不是只能放一个网站连接友谊
  • 视频 播放网站怎么做的腾讯企点app
  • 合肥网站备案怎么申请建立网站
  • 邵阳竞价网站建设设计详情页页面页面
  • 前端做网站框架软文自助发布平台系统
  • 做网站建设销售工资发布广告的平台免费
  • vue怎么做网页周口seo公司
  • 长沙做网站nn微联讯点很好外贸海外推广
  • 个人作品网站怎么做产品营销策划
  • 做废品回收哪个网站好点南京seo排名公司
  • 做响应式网站设计做图怎么搞seo zac
  • 隐藏网站后台最近三天发生的重要新闻
  • 政府门户网站建设思考seo关键词优化指南
  • 山东济南市网站建设2024年阳性最新症状
  • 太原北京网站建设西安官网seo技术