-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: add FAQ for could not find available hardware trigger and no lib…
…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
Showing
8 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
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
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
21
14-cannot_find_-lncrt_balanced_no_such_file_or_directory.md
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
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位处理器,在创建此类处理器工程时,避免使用此类扩展。 |
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
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 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