Skip to content

Commit 318751a

Browse files
danieldegrassecarlescufi
authored andcommitted
boards: mimxrt1170_evk: Update RT1170 documentation for dual core support
Update RT1170 documentation for dual core support Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 1071446 commit 318751a

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

boards/arm/mimxrt1170_evk/doc/index.rst

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,34 @@ The MIMXRT1170 SoC has six pairs of pinmux/gpio controllers.
212212
| GPIO_AD_20_SAI1_RX_DATA00 | SAI1_RX_DATA00 | SAI |
213213
+---------------------------+----------------+------------------+
214214

215+
Dual Core samples
216+
*****************
217+
218+
+-----------+------------------+----------------------------+
219+
| Core | Boot Address | Comment |
220+
+===========+==================+============================+
221+
| Cortex M7 | 0x30000000[630K] | primary core |
222+
+-----------+------------------+----------------------------+
223+
| Cortex M4 | 0x20020000[96k] | boots from OCRAM |
224+
+-----------+------------------+----------------------------+
225+
226+
+----------+------------------+-----------------------+
227+
| Memory | Address[Size] | Comment |
228+
+==========+==================+=======================+
229+
| flexspi1 | 0x30000000[16M] | Cortex M7 flash |
230+
+----------+------------------+-----------------------+
231+
| sdram0 | 0x80030000[64M] | Cortex M7 ram |
232+
+----------+------------------+-----------------------+
233+
| ocram | 0x20020000[512K] | Cortex M4 "flash" |
234+
+----------+------------------+-----------------------+
235+
| sram1 | 0x20000000[128K] | Cortex M4 ram |
236+
+----------+------------------+-----------------------+
237+
| ocram2 | 0x200C0000[512K] | Mailbox/shared memory |
238+
+----------+------------------+-----------------------+
239+
240+
Only the first 16K of ocram2 has the correct MPU region attributes set to be
241+
used as shared memory
242+
215243
System Clock
216244
============
217245

@@ -230,6 +258,20 @@ Programming and Debugging
230258
Build and flash applications as usual (see :ref:`build_an_application` and
231259
:ref:`application_run` for more details).
232260

261+
Building a Dual-Core Image
262+
==========================
263+
Dual core samples load the M4 core image from flash into the shared ``ocram``
264+
region. The M7 core then sets the M4 boot address to this region. The only
265+
sample currently enabled for dual core builds is the ``openamp`` sample.
266+
To flash a dual core sample, the M4 image must be flashed first, so that it is
267+
written to flash. Then, the M7 image must be flashed. The openamp sysbuild
268+
sample will do this automatically by setting the image order.
269+
270+
The secondary core can be debugged normally in single core builds
271+
(where the target is ``mimxrt1170_evk_cm4``). For dual core builds, the
272+
secondary core should be placed into a loop, then a debugger can be attached
273+
(see `AN13264`_, section 4.2.3 for more information)
274+
233275
Configuring a Debug Probe
234276
=========================
235277

@@ -325,3 +367,6 @@ should see the following message in the terminal:
325367

326368
.. _Using J-Link with MIMXRT1160-EVK or MIMXRT1170-EVK:
327369
https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Using-J-Link-with-MIMXRT1160-EVK-or-MIMXRT1170-EVK/ta-p/1529760
370+
371+
.. _AN13264:
372+
https://www.nxp.com/docs/en/application-note/AN13264.pdf

0 commit comments

Comments
 (0)