<?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: Re-loading / re-starting debug session with MQX code on the M4 core of the VF61xxx in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/Re-loading-re-starting-debug-session-with-MQX-code-on-the-M4/m-p/679404#M17383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DRY,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the A5 core is the boot strap processor, so it is in charge of configuring the clocks and peripherals of M4. So I think that misbehavior is because of the lack of configuration.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Carlos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jul 2017 23:35:21 GMT</pubDate>
    <dc:creator>Carlos_Musich</dc:creator>
    <dc:date>2017-07-10T23:35:21Z</dc:date>
    <item>
      <title>Re-loading / re-starting debug session with MQX code on the M4 core of the VF61xxx</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Re-loading-re-starting-debug-session-with-MQX-code-on-the-M4/m-p/679403#M17382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you able to do this when working on the M4 core side of the VF61 SoC, with MQX based project, without resetting the whole SoC?&amp;nbsp;(either through full por, &amp;nbsp;wd reset, external pin reset).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You debugging, then you decide to modify the code, rebuild, and re-load it and restart debugging. Are you able to do this without resetting the entire system? I cannot, and I don't understand why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On first system power on and start, I can connect with hw debugger, upload firmware, and start debugging. I can also restart the debug session with same code, from beginning, and code always runs, debugging works good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I modify code, and upload it, then I get into trouble. The only thing I seems get consistently working is I get into main() which then calls _mqx. From then things just "don't work". &amp;nbsp;The code seems to run, but gets stuck in various places, &amp;nbsp;not consistent from restart to restart. Break points don't seem to (always) work either, with the exception of the one in main which I hit constantly (and also if I set it in MQX bootloader, that is spot-on 100%).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It fails or gets stuck in different places. It can be bsp init, &amp;nbsp;e.g. it can get stuck on call to enabling dcache, yet, if I single step that call, then it runs. &amp;nbsp;It can get stuck in unexpected interrupt call handler, which it being called indefinitely. &amp;nbsp;It can get stuck on application code testing for static variables being allocated properly, &amp;nbsp;which sometimes appear not to.&lt;/P&gt;&lt;P&gt;It's just a _total_chaos_, which makes me think I'm crazy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yet, _exactly_same_ modified code/binary runs superbly fine if first do full system reset with say wdog A5 reset ( I can trigger it from A5 side). &amp;nbsp;Then the system comes back from this total chaos, and I'm back at being able to work normally.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any explanations &amp;amp; suggestions please...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 03:28:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Re-loading-re-starting-debug-session-with-MQX-code-on-the-M4/m-p/679403#M17382</guid>
      <dc:creator>dry</dc:creator>
      <dc:date>2017-06-30T03:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re-loading / re-starting debug session with MQX code on the M4 core of the VF61xxx</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Re-loading-re-starting-debug-session-with-MQX-code-on-the-M4/m-p/679404#M17383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DRY,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the A5 core is the boot strap processor, so it is in charge of configuring the clocks and peripherals of M4. So I think that misbehavior is because of the lack of configuration.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Carlos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 23:35:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Re-loading-re-starting-debug-session-with-MQX-code-on-the-M4/m-p/679404#M17383</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2017-07-10T23:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re-loading / re-starting debug session with MQX code on the M4 core of the VF61xxx</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Re-loading-re-starting-debug-session-with-MQX-code-on-the-M4/m-p/679405#M17384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;Thanks for providing the feedback.&lt;/P&gt;&lt;P&gt;Could you clarify a bit what you mean? I'm not sure I understand it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since A5 is boot strap processor, yes it will configure (actually it's U-boot that runs on A5 in my tests, so this is where that happens) the main clocks for both cores. Then when I upload &amp;amp; run the M4 code with the debugger, the M4 code configures the peripherals that it needs.&lt;/P&gt;&lt;P&gt;I 've seen MQX init code may bypass certain setups, on assumption that it was done elsewhere. Like&amp;nbsp;the macro BSPCFG_ENABLE_CLKTREE_MGMT&amp;nbsp;is disabled in my configuration so MQX accepts the base clocking as given, and should only configure the clocks for peripherals the M4 controls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But all in all, if there was no system reset, and A5 is still running, the base clocks configuration thus should still be there..&lt;/P&gt;&lt;P&gt;It's the M4 that is being either restarted (restart on-going debug session) or reset (reset, upload new code &amp;amp; start debug session).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you saying that in the case where the debugger resets the M4 core &amp;amp; uploads new firmware, the M4 will loose it's clock configuration which was done by the A5? &amp;nbsp;But how would then the debug session run successfully on M4 on the first time the system booted? Something else is missing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 01:58:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Re-loading-re-starting-debug-session-with-MQX-code-on-the-M4/m-p/679405#M17384</guid>
      <dc:creator>dry</dc:creator>
      <dc:date>2017-07-11T01:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re-loading / re-starting debug session with MQX code on the M4 core of the VF61xxx</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Re-loading-re-starting-debug-session-with-MQX-code-on-the-M4/m-p/679406#M17385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi D. RY,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you restart M4 session you just move the memory pointer and it will be not synchronized with Cortex-A. Cortex-A is the one that provides M4 access to the bus, so if the initialization script does not run again M4 will not have access to the bus.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Carlos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 18:52:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Re-loading-re-starting-debug-session-with-MQX-code-on-the-M4/m-p/679406#M17385</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2017-07-11T18:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Re-loading / re-starting debug session with MQX code on the M4 core of the VF61xxx</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Re-loading-re-starting-debug-session-with-MQX-code-on-the-M4/m-p/679407#M17386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you lost me unfortunately.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;gt; When you restart M4 session..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;In this is case when you hit 'restart debug' : the action (correct?) executed by hw debug is halt the M4 core, start from beginning of the image.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;gt; &amp;nbsp;you just move the memory pointer &amp;nbsp;...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Adjusting PC and SP , per debugger setting&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;This is where I seems (or i tend to think), &amp;nbsp;have no issues with - the session restarts Ok.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Sorry to repeat my original post: what I see is the start (stop, start new debug session) of updated code doesn't work : the steps (correct?) executed by hw here is reset the M4 core, halt, upload new fw, start from beginning of image.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;gt; .&lt;SPAN&gt;so if the initialization script does not run again .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;Which initialization script? &amp;nbsp; could you share it&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jul 2017 03:40:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Re-loading-re-starting-debug-session-with-MQX-code-on-the-M4/m-p/679407#M17386</guid>
      <dc:creator>dry</dc:creator>
      <dc:date>2017-07-12T03:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re-loading / re-starting debug session with MQX code on the M4 core of the VF61xxx</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Re-loading-re-starting-debug-session-with-MQX-code-on-the-M4/m-p/679408#M17387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;gt; ..Cortex-A is the one that provides M4 access to the bus&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I do want to&amp;nbsp;figure this out for myself, so if you could point may be to the section in Vybrid manual concerning this,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;in particular in relation to while the system (M4) is under the hw JTAG control.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;In any case, if you know of way to fix my restart issue, I welcome it.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Jul 2017 03:49:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Re-loading-re-starting-debug-session-with-MQX-code-on-the-M4/m-p/679408#M17387</guid>
      <dc:creator>dry</dc:creator>
      <dc:date>2017-07-12T03:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Re-loading / re-starting debug session with MQX code on the M4 core of the VF61xxx</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/Re-loading-re-starting-debug-session-with-MQX-code-on-the-M4/m-p/679409#M17388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;Would be nice to get some more clarity on that initialization script you referred to?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Aug 2017 12:24:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/Re-loading-re-starting-debug-session-with-MQX-code-on-the-M4/m-p/679409#M17388</guid>
      <dc:creator>dry</dc:creator>
      <dc:date>2017-08-17T12:24:21Z</dc:date>
    </item>
  </channel>
</rss>

