Skip to content

Commit 3266ffd

Browse files
dongchen1221XL\zhangzegang
andauthored
doc: update image format in appnote 26 (#53)
* 增加关于IDE命令行执行时,弹框的说明 * Modify image path * Text error * Add appnote 26 into REAMDE.md --------- Co-authored-by: XL\zhangzegang <[email protected]>
1 parent 5b3fb4b commit 3266ffd

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

10-compiling_projects_with_headless_in_nuclei_studio.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44

55
很多客户咨询怎么在Nuclei Studio上使用IDE的无头Headless模式来构建和编译工程。
66

7-
## 解决方案
7+
## 解决方案
8+
9+
> 所有以 ``NucleiStudio.exe`` 开头的命令行执行时,会有一个弹框显示执行日志,如果需屏蔽弹框,可以将命令改为 ``eclipsec.exe``
810
9-
> 以下文档是在**2024.06**版本的IDE中实测,作为补充说明。
11+
> 以下文档是在**2024.06**版本的IDE中实测,作为补充说明。
1012
1113
因NucleiStudio 2024.06版运行在java 21的环境上,实际应用中很多用户的本地没有java 21环境,故在运行命令时发现在执行该命令时,因找不到对应的jre而报错。为解决上述问题,可以在本地机器上安装java 21的环境(如何安装用户可以自行搜索相关教程),也可以在命令行中通过 `-vm` 参数指定NucleiStudio 2024.06中自带的jre的路径。
1214

26-debugging_support_for_freertos_by_openocd.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919

2020
在NucleiStudio IDE下载好0.7.1版本的sdk-nuclei_sdk。
2121

22-
![image-20250513103947602](asserts\images\26\26-1.png)
22+
![image-20250513103947602](asserts/images/26/26-1.png)
2323

2424
创建一个900的项目,如下图。
2525

26-
![image-20250513170041690](asserts\images\26\26-2.png)
26+
![image-20250513170041690](asserts/images/26/26-2.png)
2727

2828
开发板烧写对应的bit即可,这里我们使用u900_best_config_ku060_50M_c1dd7f44af_915aefa97_202504141013_v4.1.0.bit
2929

@@ -39,7 +39,7 @@ typedef uint32_t TickType_t;
3939
//#define portMAX_DELAY ( TickType_t )0xFFFFFFFFFFFFFFFFULL
4040
~~~
4141

42-
![image-20250513165844658](asserts\images\26\26-3.png)
42+
![image-20250513165844658](asserts/images/26/26-3.png)
4343

4444
**step3:修改openocd_evalsoc.cfg内容**
4545

@@ -49,15 +49,15 @@ typedef uint32_t TickType_t;
4949
target create $_TARGETNAME riscv -chain-position $_TARGETNAME -coreid $BOOTHART -rtos FreeRTOS
5050
~~~
5151

52-
![image-20250513165933970](asserts\images\26\26-4.png)
52+
![image-20250513165933970](asserts/images/26/26-4.png)
5353

5454
**step4:openocd调试工程**
5555

5656
Debug运行程序,打开Debugger Console视图。
5757

5858
在Debugger Console视图下输入info threads,回车。
5959

60-
![image-20250513165625083](asserts\images\26\26-5.png)
60+
![image-20250513165625083](asserts/images/26/26-5.png)
6161

6262
### 使用说明
6363

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Click [this link](https://doc.nucleisys.com/nuclei_studio_supply/) to see online
3030
3131
## Documents
3232

33-
> Generated by `python3 update.py` @ 2025-04-07 17:38:39
33+
> Generated by `python3 update.py` @ 2025-05-13 19:33:52
3434
3535
| Document | Description |
3636
|:---|:---|
@@ -59,4 +59,5 @@ Click [this link](https://doc.nucleisys.com/nuclei_studio_supply/) to see online
5959
| [23-nuclei_debug_map_register_analyze.md](23-nuclei_debug_map_register_analyze.md) | 如何使用芯来提供的DebugMap寄存器分析错误现场 |
6060
| [24-example_for_adding_new_instructions_in_binutils.md](24-example_for_adding_new_instructions_in_binutils.md) | 在binutils中新增自定义汇编指令教程 |
6161
| [25-nuclei_cross_trigger_in_openocd.md](25-nuclei_cross_trigger_in_openocd.md) | OpenOCD 中 Nuclei 交叉触发功能使用指南 |
62+
| [26-debugging_support_for_freertos_by_openocd.md](26-debugging_support_for_freertos_by_openocd.md) | OpenOCD对FreeRTOS的调试支持使用指南 |
6263

update.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def get_numberic_index(filename):
2323

2424
for file in files:
2525
mkdoc_entries += f" - {file}\n"
26-
with open(file, 'r') as f:
26+
with open(file, 'r', encoding="utf-8") as f:
2727
lines = f.readlines()
2828
if lines:
2929
name = file.replace('.md', '')
@@ -36,7 +36,7 @@ def find_and_replace(fpath, start, end, replace):
3636
print("{fpath} file not exist!")
3737
return
3838
# Read the existing fpath content
39-
with open(fpath, 'r') as handle_file:
39+
with open(fpath, 'r', encoding="utf-8") as handle_file:
4040
orig_handle = handle_file.read()
4141

4242
# Update content below ## Documents
@@ -46,7 +46,7 @@ def find_and_replace(fpath, start, end, replace):
4646

4747

4848
# Write the updated content back to fpath
49-
with open(fpath, 'w') as handle_file:
49+
with open(fpath, 'w', encoding="utf-8") as handle_file:
5050
handle_file.write(updated_handle)
5151

5252
print(f"Updated in {fpath}")

0 commit comments

Comments
 (0)