-
Notifications
You must be signed in to change notification settings - Fork 4
OpenOCD Debugging Support for FreeRTOS Usage Instructions #50
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| # OpenOCD对FreeRTOS的调试支持使用指南 | ||
|
|
||
| 通过更新您的Nuclei Studio IDE到202502版本和下载0.7.1的sdk-nuclei_sdk,并配合一些下面的修改,就可以使用OpenOCD对FreeRTOS进行调试。 | ||
|
|
||
| ### 环境准备 | ||
|
|
||
| **Nuclei Studio**: | ||
|
|
||
| - [NucleiStudio 202502 Windows](https://download.nucleisys.com/upload/files/nucleistudio/NucleiStudio_IDE_202502-win64.zip) | ||
| - [NucleiStudio 202502 Linux](https://download.nucleisys.com/upload/files/nucleistudio/NucleiStudio_IDE_202502-lin64.tgz) | ||
|
|
||
| **Nuclei OpenOCD**: | ||
|
|
||
| - 使用NucleiStudio 202502自带的的OpenOCD即可。 | ||
|
|
||
| ### 使用步骤 | ||
|
|
||
| **step1:创建原始工程** | ||
|
|
||
| 在NucleiStudio IDE下载好0.7.1版本的sdk-nuclei_sdk。 | ||
|
|
||
|  | ||
|
|
||
| 创建一个900的项目,如下图。 | ||
|
|
||
|  | ||
|
|
||
| 开发板烧写对应的bit即可,这里我们使用u900_best_config_ku060_50M_c1dd7f44af_915aefa97_202504141013_v4.1.0.bit | ||
|
|
||
| **step2:修改portmacro.h内容** | ||
|
|
||
| 项目创建好,找到nuclei_sdk\OS\FreeRTOS\Source\portable\portmacro.h, 修改该文件内容如下 | ||
|
|
||
| ~~~ | ||
| typedef uint32_t TickType_t; | ||
| #define portMAX_DELAY ( TickType_t )0xFFFFFFFFUL | ||
| /* RISC-V TIMER is 64-bit long */ | ||
| //typedef uint64_t TickType_t; | ||
| //#define portMAX_DELAY ( TickType_t )0xFFFFFFFFFFFFFFFFULL | ||
| ~~~ | ||
|
|
||
|  | ||
|
|
||
| **step3:修改openocd_evalsoc.cfg内容** | ||
|
|
||
| 找到nuclei_sdk/SoC/evalsoc/Board/nuclei_fpga_eval/openocd_evalsoc.cfg,修改第118行内容 | ||
|
|
||
| ~~~ | ||
| target create $_TARGETNAME riscv -chain-position $_TARGETNAME -coreid $BOOTHART -rtos FreeRTOS | ||
|
|
||
| ~~~ | ||
|
|
||
|  | ||
|
|
||
| **step4:openocd调试工程** | ||
|
|
||
| Debug运行程序,打开Debugger Console视图。 | ||
|
|
||
| 在Debugger Console视图下输入info threads,回车。 | ||
|
|
||
|  | ||
|
|
||
| ### 使用说明 | ||
|
|
||
| 目前支持**FreeRTOS**,不支持**Zephyr**、**ThreadX**、**UCOSII**。 | ||
|
|
||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
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.
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.
多了一行空格