-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tools] 增加vscode pyocd下载命令 scons --target=vsc --pack=xxx #8036
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tools/vsc.py
Outdated
vsc_space_file.close() | ||
vsc_space_file.close() | ||
|
||
res_pyocdconf = pyocdconf.get_cmsisPack_targetId() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果是ARM Cortex-A会怎么样?aarch64,又或者是riscv64会怎么样?又过测试吗?
tools/vsc.py
Outdated
config_obj['type'] = 'cortex-debug' | ||
config_obj['runToEntryPoint'] = 'Reset_Handler' | ||
config_obj['servertype'] = 'pyocd' | ||
config_obj['toolchainPrefix'] = 'arm-none-eabi' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
riscv64会怎么样?
目前还没有
…------------------ 原始邮件 ------------------
发件人: Bernard Xiong ***@***.***>
发送时间: 2023年9月14日 23:03
收件人: RT-Thread/rt-thread ***@***.***>
抄送: liYangYang ***@***.***>, Author ***@***.***>
主题: Re: [RT-Thread/rt-thread] [tools] VsCode 环境搭建(编译、下载、调试) (PR #8036)
@BernardXiong commented on this pull request.
In tools/vsc.py:
> @@ -103,7 +104,69 @@ def GenerateCFiles(env): path['name'] = 'rtthread/' + '/'.join([p for p in path['path'].split('\\') if p != '..']) json_obj['folders'] = path_list vsc_space_file.write(json.dumps(json_obj, ensure_ascii=False, indent=4)) - vsc_space_file.close() + vsc_space_file.close() + + res_pyocdconf = pyocdconf.get_cmsisPack_targetId()
如果是ARM Cortex-A会怎么样?aarch64,又或者是riscv64会怎么样?又过测试吗?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
待讨论和修改,目前仅提出并收集改进思路 |
#8046 创建了一个vscode相关的讨论,欢迎一起来沟通。 |
先合并 开源之夏结题需要,后续VSCode需求可以继续跟进补充 |
mysterywolf
approved these changes
Oct 22, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
拉取/合并请求描述:(PR description)
[
目的
为rt-thread的VsCode开发环境搭建编译、下载、调试环境!
使用流程如下:
执行
scons --target=vsc --pack=xxx
命令--pack=xxx 用于指定cmsisPack包的路径,或者可以使用默认路径<--pack=env>(前提是在env安装路径下需要创建一个
/tools/cmsisPacks/
文件夹用来存放你的cmsisPack包)主要核心也就是生成
launch.json
和tasks.json
两个文件,利用python的pyocd库进行下载调试功能。]
当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:
#if 0
代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up