<?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>i.MX RT Crossover MCUsのトピックRe: Debugger error: Cannot find MEM-AP selected by core index</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Debugger-error-Cannot-find-MEM-AP-selected-by-core-index/m-p/1294286#M14768</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the reason for this debugger error was the call to GPIO_PortToggle() inside the ISR for PIT timer. After moving the call to main() problem disappears.&lt;/P&gt;&lt;P&gt;Can anyone tell why this call inside ISR results in such debugger bahavior ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Maciek&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jun 2021 21:20:24 GMT</pubDate>
    <dc:creator>Maciek</dc:creator>
    <dc:date>2021-06-17T21:20:24Z</dc:date>
    <item>
      <title>Debugger error: Cannot find MEM-AP selected by core index</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Debugger-error-Cannot-find-MEM-AP-selected-by-core-index/m-p/1294041#M14759</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have created simple project from scratch on i.MXRT1064 EVK. To test GPIO and PIT drivers from SDK and to switch off most of the peripheral clocks.&amp;nbsp;&lt;BR /&gt;However after checking 'Run PIT in debug mode' in Peripheral Config Tool (PIT configuration) - when I was trying to debug I've got error messages from debugger:&lt;BR /&gt;"chip initialization failed - Ep(08). Cannot access core regs when target running"&lt;/P&gt;&lt;P&gt;After that I can no longer debug any project on EVK. After restarting MCUXpresso and reconnecting EVK to PC I've got error messages that are visible in the attached screenshot. After that when trying to debug I get "0 available SWD Devices detected".&lt;/P&gt;&lt;P&gt;How to regain debugger control over the EVK ?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPDATE:&amp;nbsp;&lt;/STRONG&gt;I can recover from this by simply reflashing any demo app using serial downloader mode on EVK. But I'm running into this problem repeatedly. I'm clearing interrupt flag in the ISR and use __DBS command after that. And then I can successfully debug my application one single time (everything works) - after that any subsequent debug session ends with&amp;nbsp;"chip initialization failed - Ep(08). Cannot access core regs when target running". The exact message that ends the debug session is:&lt;/P&gt;&lt;P&gt;Opening flash driver MIMXRT1064.cfx&lt;BR /&gt;Sending VECTRESET to run flash driver&lt;BR /&gt;state - running or following reset request - re-read of state failed - rc Nn(05). Wire ACK Wait in DAP access&lt;BR /&gt;state - running or following reset request - re-read of state failed - rc Nn(05). Wire ACK Wait in DAP access&lt;BR /&gt;Warning - processor did not halt - gave up waiting&lt;BR /&gt;target failed to halt after flash driver reset - (null)&lt;BR /&gt;After error Nn(05). Wire ACK Wait in DAP access -&lt;BR /&gt;Failed to read address register in DAP - Nn(05). Wire ACK Wait in DAP access&lt;BR /&gt;Driver memory check after reset - mem not working after mailbox read - Em(17). Debug port inaccessible after access at location 0x2000A778&lt;BR /&gt;flash start - disabling IRQs failed - rc Ep(08). Cannot access core regs when target running.&lt;BR /&gt;chip initialization failed - Ep(08). Cannot access core regs when target running.&lt;BR /&gt;failed to initialize flash driver MIMXRT1064.cfx&lt;BR /&gt;error closing down debug session - Nn(05). Wire ACK Wait in DAP access&lt;/P&gt;&lt;P&gt;What can be the problem here ? What to look for ?&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Maciek&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 12:45:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Debugger-error-Cannot-find-MEM-AP-selected-by-core-index/m-p/1294041#M14759</guid>
      <dc:creator>Maciek</dc:creator>
      <dc:date>2021-06-17T12:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger error: Cannot find MEM-AP selected by core index</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Debugger-error-Cannot-find-MEM-AP-selected-by-core-index/m-p/1294286#M14768</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;the reason for this debugger error was the call to GPIO_PortToggle() inside the ISR for PIT timer. After moving the call to main() problem disappears.&lt;/P&gt;&lt;P&gt;Can anyone tell why this call inside ISR results in such debugger bahavior ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Maciek&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 21:20:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Debugger-error-Cannot-find-MEM-AP-selected-by-core-index/m-p/1294286#M14768</guid>
      <dc:creator>Maciek</dc:creator>
      <dc:date>2021-06-17T21:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Debugger error: Cannot find MEM-AP selected by core index</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Debugger-error-Cannot-find-MEM-AP-selected-by-core-index/m-p/1294627#M14781</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/12402"&gt;@Maciek&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Thank you for your interest in the NXP MIMXRT product, I would like to provide service for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; It's better to share some code snap about your issues, eg, which code will caused the issues, then which code will not.&lt;/P&gt;
&lt;P&gt;You mentioned call&amp;nbsp;&lt;SPAN&gt;to GPIO_PortToggle() inside the ISR for PIT timer will meet issues, please tell us which GPIO you are controlling? SWD related interface or the BOOT_MOD related pins?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; Do you try to control the led pins, whether that still have issues.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; From your description, your issue mainly related to your own project, can you add some code on the SDK PIT? Whether that SDK project will meet issues or not, the GPIO just use the on board LED pin.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any updated information, kindly let me know.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;kerry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 10:07:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Debugger-error-Cannot-find-MEM-AP-selected-by-core-index/m-p/1294627#M14781</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2021-06-18T10:07:02Z</dc:date>
    </item>
  </channel>
</rss>

