Skip to content

Commit 94c07ac

Browse files
Alan-19950616wangyanwen
andauthored
docs(openocd): modify openocd.cfg examples description in intro.rst (#66)
Signed-off-by: wangyanwen <wangyanwen@nucleisys.com> Co-authored-by: wangyanwen <wangyanwen@nucleisys.com>
1 parent 0cf05ff commit 94c07ac

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

source/openocd/intro.rst

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,8 @@ The JTAG link configuration varies depending on the system architecture:
306306

307307
**Single Core System**
308308

309+
This is a n900 single core system example.
310+
309311
.. code-block:: c
310312
311313
set _CHIPNAME0 riscv0
@@ -316,6 +318,8 @@ The JTAG link configuration varies depending on the system architecture:
316318
317319
**SMP (Symmetric Multiprocessing) System**
318320

321+
This is a n900-smp4 SMP system example.
322+
319323
.. code-block:: c
320324
321325
set _CHIPNAME0 riscv0
@@ -325,17 +329,20 @@ The JTAG link configuration varies depending on the system architecture:
325329
target create $_TARGETNAME0.0 riscv -chain-position $_TARGETNAME0 -coreid 0 -rtos hwthread
326330
target create $_TARGETNAME0.1 riscv -chain-position $_TARGETNAME0 -coreid 1
327331
target create $_TARGETNAME0.2 riscv -chain-position $_TARGETNAME0 -coreid 2
328-
target smp $_TARGETNAME0.0 $_TARGETNAME0.1 $_TARGETNAME0.2
332+
target create $_TARGETNAME0.3 riscv -chain-position $_TARGETNAME0 -coreid 3
333+
target smp $_TARGETNAME0.0 $_TARGETNAME0.1 $_TARGETNAME0.2 $_TARGETNAME0.3
329334
330335
**AMP (Asymmetric Multiprocessing) System**
331336

337+
This is a n300 + n900-smp2 AMP system example.
338+
332339
.. code-block:: c
333340
334341
set _CHIPNAME0 riscv0
335-
jtag newtap $_CHIPNAME0 cpu -irlen 5 -expected-id 0x10900a6d
342+
jtag newtap $_CHIPNAME0 cpu -irlen 5 -expected-id 0x10300a6d
336343
337344
set _CHIPNAME1 riscv1
338-
jtag newtap $_CHIPNAME1 cpu -irlen 5 -expected-id 0x10300a6d
345+
jtag newtap $_CHIPNAME1 cpu -irlen 5 -expected-id 0x10900a6d
339346
340347
set _TARGETNAME0 $_CHIPNAME0.cpu
341348
target create $_TARGETNAME0 riscv -chain-position $_TARGETNAME0 -coreid 0

0 commit comments

Comments
 (0)