Skip to content

Commit

Permalink
doc: add FAQ for could not find available hardware trigger and no lib…
Browse files Browse the repository at this point in the history
…ncrt support for rv64 (#31)

* 添加新的faq

* add about cannot find -lncrt_balanced: No such file or directory

---------

Co-authored-by: zhangzegang <[email protected]>
  • Loading branch information
fanghuaqi and zhangzegang authored Jul 4, 2024
1 parent 7b63fd8 commit 4c02826
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 0 deletions.
19 changes: 19 additions & 0 deletions 13-error_could_not_find_an_available_hardware_trigger.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Error: Couldn't find an available hardware trigger / Error: can't add breakpoint: resource not available

## 问题说明

在NucleiStudio中使用OpenOCD调试hbird/hbirdv2处理器(不支持硬件断点)或者 Nuclei 100 系列的处理器时,当程序运行在Flash/FlashXip下时,会报Error。
```
Error: Couldn't find an available hardware trigger.
Error: can't add breakpoint: resource not available
```

![](asserts/images/13-1.png)

![](asserts/images/13-2.png)

是因为所运行的CPU不支持硬件断点,导致程序运行在Flash上的时候,IDE调试功能无法正常工作,这个是IDE会需要打一个临时断点的缘故导致的。如果需要下载并运行程序,切换到Run运行模式可以正常运行程序。

## 解决方案

当在调试此类型处理器时,如果需要调试的话,就需要将程序编译运行在RAM上。
21 changes: 21 additions & 0 deletions 14-cannot_find_-lncrt_balanced_no_such_file_or_directory.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# cannot find -lncrt_balanced: No such file or directory

## 问题说明

在NucleiStudio中使用编译工程时有报错信息如下:
```
G:/NucleiStudio/toolchain/gcc/bin/../lib/gcc/riscv64-unknown-elf/13.1.1/../../../../riscv64-unknown-elf/bin/ld.exe: cannot find -lncrt_balanced: No such file or directory
G:/NucleiStudio/toolchain/gcc/bin/../lib/gcc/riscv64-unknown-elf/13.1.1/../../../../riscv64-unknown-elf/bin/ld.exe: cannot find -lheapops_basic: No such file or directory
G:/NucleiStudio/toolchain/gcc/bin/../lib/gcc/riscv64-unknown-elf/13.1.1/../../../../riscv64-unknown-elf/bin/ld.exe: cannot find -lfileops_uart: No such file or directory
G:/NucleiStudio/toolchain/gcc/bin/../lib/gcc/riscv64-unknown-elf/13.1.1/../../../../riscv64-unknown-elf/bin/ld.exe: cannot find -lncrt_balanced: No such file or directory
```

![](asserts/images/14-1.png)

是因为在创建工程时,我们创建了一个64位的工程,同时在Standard C Library时,选择了带`-lncrt_balanced``-lfileops_uart`的扩展,而此类扩展又不支持64位,导致编译不通过。

![](asserts/images/14-2.png)

## 解决方案

`-lncrt_balanced``-lfileops_uart`不支持64位处理器,在创建此类处理器工程时,避免使用此类扩展。
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ Click [this link](https://nuclei-software.github.io/nuclei-studio/) to see onlin
| [10-compiling_projects_with_headless_in_nuclei_studio.md](10-compiling_projects_with_headless_in_nuclei_studio.md) | 在Nuclei Studio下用命令行编译工程 |
| [11-openocd_reported_error_not_known_as_fespi_capable.md](11-openocd_reported_error_not_known_as_fespi_capable.md) | OpenOCD烧写程序时报错Error:Device ID 8xle2g8a6d is not known as FESPI capable |
| [12-nucleisdk-0.5.0-dhrystone-score-lower-than-expected-in-IDE.md](12-nucleisdk-0.5.0-dhrystone-score-lower-than-expected-in-IDE.md) | 关于dhrystone在IDE上跑分和NSDK命令行跑分不一致的问题 |
| [13-error_could_not_find_an_available_hardware_trigger.md](13-error_could_not_find_an_available_hardware_trigger.md) | Error: Couldn't find an available hardware trigger / Error: can't add breakpoint: resource not available |
| [14-cannot_find_-lncrt_balanced_no_such_file_or_directory.md](14-cannot_find_-lncrt_balanced_no_such_file_or_directory.md) | cannot find -lncrt_balanced: No such file or directory |

Binary file added asserts/images/13-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added asserts/images/13-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added asserts/images/14-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added asserts/images/14-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ nav:
- 9-modify_the_cproject_file_to_change_the_project_to_gcc13.md
- 10-compiling_projects_with_headless_in_nuclei_studio.md
- 11-openocd_reported_error_not_known_as_fespi_capable.md
- 12-nucleisdk-0.5.0-dhrystone-score-lower-than-expected-in-IDE.md
- 13-error_could_not_find_an_available_hardware_trigger.md
- 14-cannot_find_-lncrt_balanced_no_such_file_or_directory.md
exclude_docs: |
0-*.md
theme:
Expand Down

0 comments on commit 4c02826

Please sign in to comment.