@@ -172,6 +172,35 @@ The MIMXRT1160 SoC has six pairs of pinmux/gpio controllers.
172172| GPIO_AD_04 | FLEXPWM1_PWM2 | pwm |
173173+---------------+-----------------+---------------------------+
174174
175+
176+ Dual Core samples
177+ *****************
178+
179+ +-----------+------------------+----------------------------+
180+ | Core | Boot Address | Comment |
181+ +===========+==================+============================+
182+ | Cortex M7 | 0x30000000[630K] | primary core |
183+ +-----------+------------------+----------------------------+
184+ | Cortex M4 | 0x20020000[96k] | boots from OCRAM |
185+ +-----------+------------------+----------------------------+
186+
187+ +----------+------------------+-----------------------+
188+ | Memory | Address[Size] | Comment |
189+ +==========+==================+=======================+
190+ | flexspi1 | 0x30000000[16M] | Cortex M7 flash |
191+ +----------+------------------+-----------------------+
192+ | sdram0 | 0x80030000[64M] | Cortex M7 ram |
193+ +----------+------------------+-----------------------+
194+ | ocram | 0x20020000[512K] | Cortex M4 "flash" |
195+ +----------+------------------+-----------------------+
196+ | sram1 | 0x20000000[128K] | Cortex M4 ram |
197+ +----------+------------------+-----------------------+
198+ | ocram2 | 0x200C0000[512K] | Mailbox/shared memory |
199+ +----------+------------------+-----------------------+
200+
201+ Only the first 16K of ocram2 has the correct MPU region attributes set to be
202+ used as shared memory
203+
175204System Clock
176205============
177206
@@ -190,6 +219,20 @@ Programming and Debugging
190219Build and flash applications as usual (see :ref: `build_an_application ` and
191220:ref: `application_run ` for more details).
192221
222+ Building a Dual-Core Image
223+ ==========================
224+ Dual core samples load the M4 core image from flash into the shared ``ocram ``
225+ region. The M7 core then sets the M4 boot address to this region. The only
226+ sample currently enabled for dual core builds is the ``openamp `` sample.
227+ To flash a dual core sample, the M4 image must be flashed first, so that it is
228+ written to flash. Then, the M7 image must be flashed. The openamp sysbuild
229+ sample will do this automatically by setting the image order.
230+
231+ The secondary core can be debugged normally in single core builds
232+ (where the target is ``mimxrt1160_evk_cm4 ``). For dual core builds, the
233+ secondary core should be placed into a loop, then a debugger can be attached
234+ (see `AN13264 `_, section 4.2.3 for more information)
235+
193236Configuring a Debug Probe
194237=========================
195238
@@ -285,3 +328,6 @@ should see the following message in the terminal:
285328
286329.. _Using J-Link with MIMXRT1160-EVK or MIMXRT1170-EVK :
287330 https://community.nxp.com/t5/i-MX-RT-Knowledge-Base/Using-J-Link-with-MIMXRT1160-EVK-or-MIMXRT1170-EVK/ta-p/1529760
331+
332+ .. _AN13264 :
333+ https://www.nxp.com/docs/en/application-note/AN13264.pdf
0 commit comments