<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to debug multicore example on imx7ulp in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-multicore-example-on-imx7ulp/m-p/1393575#M185261</link>
    <description>&lt;P&gt;FWIW, my debug log ends as follows:&lt;/P&gt;&lt;P&gt;Fri Dec 31, 2021 14:43:50: Software reset was performed&lt;BR /&gt;Fri Dec 31, 2021 14:43:50: Target reset&lt;BR /&gt;Fri Dec 31, 2021 14:44:11: HardFault exception.&lt;BR /&gt;Fri Dec 31, 2021 14:44:11: The processor has escalated a configurable-priority exception to HardFault.&lt;BR /&gt;Fri Dec 31, 2021 14:44:11:&lt;BR /&gt;Fri Dec 31, 2021 14:44:11: An instruction executed with an invalid EPSR.T or EPSR.IT field (CFSR.INVSTATE).&lt;BR /&gt;Fri Dec 31, 2021 14:44:11:&lt;BR /&gt;Fri Dec 31, 2021 14:44:11: Exception occurred at PC = 0x12ee6, LR = 0x4649&lt;BR /&gt;Fri Dec 31, 2021 14:44:11:&lt;BR /&gt;Fri Dec 31, 2021 14:44:11: See the call stack for more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Dec 2021 19:48:25 GMT</pubDate>
    <dc:creator>Earthshine</dc:creator>
    <dc:date>2021-12-31T19:48:25Z</dc:date>
    <item>
      <title>How to debug multicore example on imx7ulp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-multicore-example-on-imx7ulp/m-p/1307747#M176931</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to debug a multicore example in the i.MX7ULP-EVK rev B1. I work with MCUXpresso SDK_2_9_0_EVK-MCIMX7ULP for windows anr IAR toolchain.&lt;/P&gt;&lt;P&gt;Debugging a simple hello world application from ram has worked fine so I tried to go a step further and try the rpmsg_lite_pingpong_rtos example.&lt;/P&gt;&lt;P&gt;However if I start the debug session the core does not suspend at the main() funcion. I assume it does not even reach it. Right after starting the debug session I have the following messages in hte debug log:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Wed Jul 14, 2021 16:32:04: IAR Embedded Workbench 9.10.2 (C:\Program Files\IAR Systems\Embedded Workbench 9.0\arm\bin\armPROC.dll) 
Wed Jul 14, 2021 16:32:04: Loaded macro file: C:\Program Files\IAR Systems\Embedded Workbench 9.0\arm\config\debugger\NXP\iMX7ULP_M4.dmac 
Wed Jul 14, 2021 16:32:04: Loaded macro file: C:\Program Files\IAR Systems\Embedded Workbench 9.0\arm\config\debugger\NXP\iMX7ULP_Trace.dmac 
Wed Jul 14, 2021 16:32:04: Loaded macro file: C:\Program Files\IAR Systems\Embedded Workbench 9.0\arm\config\debugger\NXP\iMX7ULP_Common.dmac 
Wed Jul 14, 2021 16:32:05: JLINK command: ProjectFile = D:\Projects\Almer_AR\InES\imx7ulp\SDK_2_9_0_EVK-MCIMX7ULP_windows\boards\evkmcimx7ulp\multicore_examples\rpmsg_lite_pingpong_rtos\iar\settings\rpmsg_lite_pingpong_rtos_imxcm4_debug.jlink, return = 0 
Wed Jul 14, 2021 16:32:05: JLINK command: scriptfile = C:\Program Files\IAR Systems\Embedded Workbench 9.0\arm\config\debugger\NXP\iMX7ULP_CortexM4.JLinkScript, return = 0 
Wed Jul 14, 2021 16:32:05: Device "MCIMX7U5_M4" selected. 
Wed Jul 14, 2021 16:32:05: DLL version: V7.50a, compiled Jul  8 2021 18:21:11 
Wed Jul 14, 2021 16:32:05: Firmware: J-Link ARM V8 compiled Nov 28 2014 13:44:46 
Wed Jul 14, 2021 16:32:05: JTAG speed is initially set to: 32 kHz 
Wed Jul 14, 2021 16:32:05: InitTarget() start 
Wed Jul 14, 2021 16:32:05: *************************************************** 
Wed Jul 14, 2021 16:32:05: J-Link script: iMX7ULP Cortex-M4 core J-Link script 
Wed Jul 14, 2021 16:32:05: *************************************************** 
Wed Jul 14, 2021 16:32:05: InitTarget() end 
Wed Jul 14, 2021 16:32:05: TotalIRLen = 4, IRPrint = 0x01 
Wed Jul 14, 2021 16:32:05: JTAG chain detection found 1 devices: 
Wed Jul 14, 2021 16:32:05:  #0 Id: 0x6BA00477, IRLen: 04, CoreSight JTAG-DP 
Wed Jul 14, 2021 16:32:05: DPv0 detected 
Wed Jul 14, 2021 16:32:05: AP map detection skipped. Manually configured AP map found. 
Wed Jul 14, 2021 16:32:05: AP[0]: AHB-AP (IDR: Not set) 
Wed Jul 14, 2021 16:32:05: AP[1]: APB-AP (IDR: Not set) 
Wed Jul 14, 2021 16:32:05: AP[2]: MEM-AP (IDR: Not set) 
Wed Jul 14, 2021 16:32:05: AP[3]: AHB-AP (IDR: Not set) 
Wed Jul 14, 2021 16:32:05: AP[4]: MEM-AP (IDR: Not set) 
Wed Jul 14, 2021 16:32:05: AP[5]: MEM-AP (IDR: Not set) 
Wed Jul 14, 2021 16:32:05: AP[3]: Core found 
Wed Jul 14, 2021 16:32:05: AP[3]: AHB-AP ROM base: 0xE00FF000 
Wed Jul 14, 2021 16:32:05: CPUID register: 0x410FC241. Implementer code: 0x41 (ARM) 
Wed Jul 14, 2021 16:32:05: Found Cortex-M4 r0p1, Little endian. 
Wed Jul 14, 2021 16:32:05: FPUnit: 6 code (BP) slots and 2 literal slots 
Wed Jul 14, 2021 16:32:05: CoreSight components: 
Wed Jul 14, 2021 16:32:05: ROMTbl[0] @ E00FF000 
Wed Jul 14, 2021 16:32:05: ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7 
Wed Jul 14, 2021 16:32:05: ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT 
Wed Jul 14, 2021 16:32:05: ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB 
Wed Jul 14, 2021 16:32:05: ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM 
Wed Jul 14, 2021 16:32:05: ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM 
Wed Jul 14, 2021 16:32:05: ROMTbl[0][8]: E0044000, CID: B105900D, PID: 005BB906 CTI 
Wed Jul 14, 2021 16:32:05: SetupTarget() start 
Wed Jul 14, 2021 16:32:05: Disabling Cortex-M4 MPU ... 
Wed Jul 14, 2021 16:32:05: SetupTarget() end 
Wed Jul 14, 2021 16:32:05: ResetTarget() start 
Wed Jul 14, 2021 16:32:05: ResetTarget() end 
Wed Jul 14, 2021 16:32:06: Hardware reset with strategy 0 was performed 
Wed Jul 14, 2021 16:32:06: Initial reset was performed 
Wed Jul 14, 2021 16:32:06: Found 1 JTAG device, Total IRLen = 4: 
Wed Jul 14, 2021 16:32:06:  #0 Id: 0x6BA00477, IRLen:  4, IRPrint: 0x1 CoreSight JTAG-DP 
Wed Jul 14, 2021 16:32:07: Loaded debugee: &amp;lt;path to SDK&amp;gt;\SDK_2_9_0_EVK-MCIMX7ULP_windows\boards\evkmcimx7ulp\multicore_examples\rpmsg_lite_pingpong_rtos\iar\debug\rpmsg_lite_pingpong_rtos_imxcm4.out 
Wed Jul 14, 2021 16:32:08: 203952 bytes downloaded and verified (212.11 Kbytes/sec) 
Wed Jul 14, 2021 16:32:08: Download completed and verification successful. 
Wed Jul 14, 2021 16:32:08: ResetTarget() start 
Wed Jul 14, 2021 16:32:08: ResetTarget() end 
Wed Jul 14, 2021 16:32:08: Software reset was performed 
Wed Jul 14, 2021 16:32:08: Target reset 
Wed Jul 14, 2021 16:32:09: HardFault exception. 
Wed Jul 14, 2021 16:32:09: The processor has escalated a configurable-priority exception to HardFault. 
Wed Jul 14, 2021 16:32:09:    An MPU or Execute Never (XN) default memory map access violation has occurred on an instruction fetch (CFSR.IACCVIOL, MMFAR). 
Wed Jul 14, 2021 16:32:09:  
Wed Jul 14, 2021 16:32:09: Exception occurred at PC = 0xffffffff, LR = 0x0 
Wed Jul 14, 2021 16:32:09:  
Wed Jul 14, 2021 16:32:09: See the call stack for more information. &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One can see that right after "target reset" a HardFault occurs.&lt;/P&gt;&lt;P&gt;Is there anything special that needs to be done to debug multicore applications?&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 14:38:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-multicore-example-on-imx7ulp/m-p/1307747#M176931</guid>
      <dc:creator>lorv</dc:creator>
      <dc:date>2021-07-14T14:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug multicore example on imx7ulp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-multicore-example-on-imx7ulp/m-p/1309739#M177135</link>
      <description>&lt;P&gt;Can I except any help on this?&lt;BR /&gt;If you are looking into it but have not an answer yet that is fine, but a notification that this is beeing investigated would be nice.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 09:45:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-multicore-example-on-imx7ulp/m-p/1309739#M177135</guid>
      <dc:creator>lorv</dc:creator>
      <dc:date>2021-07-19T09:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug multicore example on imx7ulp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-multicore-example-on-imx7ulp/m-p/1315523#M177665</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;May I ask for the steps that you are following for your test?&lt;BR /&gt;Also, please try by stopping at uboot and then connect using JLINK.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jul 2021 01:20:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-multicore-example-on-imx7ulp/m-p/1315523#M177665</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2021-07-30T01:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug multicore example on imx7ulp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-multicore-example-on-imx7ulp/m-p/1393563#M185259</link>
      <description>&lt;P&gt;Wondering if you ever got any resolution on this problem?&amp;nbsp; I'm running into what I think is the same issue on an i.MX8MP with the FreeRTOS multicore demos, where it immediately his the hard fault handler.&amp;nbsp; If I do a reset from within the IAR debugger, I then get to main() and can run/debug code.&amp;nbsp; But a subsequent reset after code has been running hits the hard fault handler again.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 16:44:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-multicore-example-on-imx7ulp/m-p/1393563#M185259</guid>
      <dc:creator>Earthshine</dc:creator>
      <dc:date>2021-12-31T16:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug multicore example on imx7ulp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-multicore-example-on-imx7ulp/m-p/1393575#M185261</link>
      <description>&lt;P&gt;FWIW, my debug log ends as follows:&lt;/P&gt;&lt;P&gt;Fri Dec 31, 2021 14:43:50: Software reset was performed&lt;BR /&gt;Fri Dec 31, 2021 14:43:50: Target reset&lt;BR /&gt;Fri Dec 31, 2021 14:44:11: HardFault exception.&lt;BR /&gt;Fri Dec 31, 2021 14:44:11: The processor has escalated a configurable-priority exception to HardFault.&lt;BR /&gt;Fri Dec 31, 2021 14:44:11:&lt;BR /&gt;Fri Dec 31, 2021 14:44:11: An instruction executed with an invalid EPSR.T or EPSR.IT field (CFSR.INVSTATE).&lt;BR /&gt;Fri Dec 31, 2021 14:44:11:&lt;BR /&gt;Fri Dec 31, 2021 14:44:11: Exception occurred at PC = 0x12ee6, LR = 0x4649&lt;BR /&gt;Fri Dec 31, 2021 14:44:11:&lt;BR /&gt;Fri Dec 31, 2021 14:44:11: See the call stack for more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 19:48:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-multicore-example-on-imx7ulp/m-p/1393575#M185261</guid>
      <dc:creator>Earthshine</dc:creator>
      <dc:date>2021-12-31T19:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug multicore example on imx7ulp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-multicore-example-on-imx7ulp/m-p/1394074#M185343</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;unfortunatly I never got to resovle this issue. The project moved to a different MCU in the end so I stoped looking into this.&lt;/P&gt;&lt;P&gt;Good Loock.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 08:16:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-multicore-example-on-imx7ulp/m-p/1394074#M185343</guid>
      <dc:creator>lorv</dc:creator>
      <dc:date>2022-01-04T08:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug multicore example on imx7ulp</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-multicore-example-on-imx7ulp/m-p/1394267#M185362</link>
      <description>&lt;P&gt;Bummer, but thanks.&amp;nbsp; It appears to be FreeRTOS-related, as the non-multicore FreeRTOS examples do the same thing (FreeRTOS version of "hello world", etc).&amp;nbsp; I've posted separately about this, we'll see if I get anywhere...&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 13:35:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-debug-multicore-example-on-imx7ulp/m-p/1394267#M185362</guid>
      <dc:creator>Earthshine</dc:creator>
      <dc:date>2022-01-04T13:35:31Z</dc:date>
    </item>
  </channel>
</rss>

