<?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: Debugging IMX6SX with jlink and eclipse get freezed after stop session in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Debugging-IMX6SX-with-jlink-and-eclipse-get-freezed-after-stop/m-p/767143#M119134</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jefferson&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hanging may be caused by that when M4 enter debug mode, the debug_req will also&lt;BR /&gt;assert in the peripherals which are used by the A9 system.&lt;/P&gt;&lt;P&gt;Need to configure the DBGEN (*) register in the related peripherals to allow &lt;BR /&gt;the peripherals not going into debug mode and keep running even if debug_req is HIGH. &lt;BR /&gt;The peripherals which need take care are: CAN, UART, EPIT, GPT, ENET, PWM,WDOG.&lt;/P&gt;&lt;P&gt;Also may be useful to check documents describing M4 usage :&lt;/P&gt;&lt;P&gt;Working with Cortex-M4 on i.MX6 SoloX Board &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.embeddedartists.com/sites/default/files/support/com/iMX6SoloX/iMX6SoloX_Working_with_Cortex-M4.pdf" title="https://www.embeddedartists.com/sites/default/files/support/com/iMX6SoloX/iMX6SoloX_Working_with_Cortex-M4.pdf"&gt;https://www.embeddedartists.com/sites/default/files/support/com/iMX6SoloX/iMX6SoloX_Working_with_Cortex-M4.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AN5317 Loading Code on Cortex-M4 from Linux for the i.MX 6SoloX and i.MX7Dual/7Solo Application Processors&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN5317.pdf" title="https://www.nxp.com/docs/en/application-note/AN5317.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN5317.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AN5127 How to Run the MQX™ RTOS on Various RAM Memories for i.MX 6SoloX&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN5127.pdf" title="https://www.nxp.com/docs/en/application-note/AN5127.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN5127.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Mar 2018 02:06:55 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-03-19T02:06:55Z</dc:date>
    <item>
      <title>Debugging IMX6SX with jlink and eclipse get freezed after stop session</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Debugging-IMX6SX-with-jlink-and-eclipse-get-freezed-after-stop/m-p/767140#M119131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it normal that operating system get freezed after finish debugging process with jlink.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a UDOO NEO board, which has UDOObuntu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I debug from TCM or OCRAM, after finish I stop the session and ubuntu is freezed, even can not access with uboot terminal console so I assume Cortex A9 get freezed.I need to restar the session again for get control and start debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am almost sure that peripherals used in my code for m4 are not being used in A9. Suspect sometine with WDT or idle power of ubuntu but I am not pretty sure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 10:16:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Debugging-IMX6SX-with-jlink-and-eclipse-get-freezed-after-stop/m-p/767140#M119131</guid>
      <dc:creator>jealcuna</dc:creator>
      <dc:date>2018-03-16T10:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging IMX6SX with jlink and eclipse get freezed after stop session</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Debugging-IMX6SX-with-jlink-and-eclipse-get-freezed-after-stop/m-p/767141#M119132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been reading more about the issue. I find a possible cause of the problem. I am using eclipse, gnu arm and eclipse. Thing is that jlink is not stoping correctly the debug process. I mean, it is just finishing without send the order to processor for resum the tasks, so in theory it is just leaving the processor stoping/halted, and in consequence all the system can noy be resumed and it is only possible to restar for starting a new session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More information about this issue here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/gnu-mcu-eclipse/eclipse-plugins/issues/196" title="https://github.com/gnu-mcu-eclipse/eclipse-plugins/issues/196"&gt;Eclipse "terminate button" halts target with the latest gcc-arm-none-eabi-6-2017-q1-update · Issue #196 · gnu-mcu-eclips…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this is just a possible cause. If somebody has a more deep knowledge about jlink, gnu and eclipse please confirm this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2018 23:28:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Debugging-IMX6SX-with-jlink-and-eclipse-get-freezed-after-stop/m-p/767141#M119132</guid>
      <dc:creator>jealcuna</dc:creator>
      <dc:date>2018-03-16T23:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging IMX6SX with jlink and eclipse get freezed after stop session</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Debugging-IMX6SX-with-jlink-and-eclipse-get-freezed-after-stop/m-p/767142#M119133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I find out the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Background of the main problem:&lt;/P&gt;&lt;P&gt;As imx6sx has a core for A9 and other one for M4, when you perform a debug process with jlink, this will halt both of these cores, in consequence after finish you can not only leave halted the processor because this will stay freezed. We&amp;nbsp; want to finish a debug process but we want also still using linux for load other code make something on it. Therefore,&amp;nbsp;we will need to be sure that processor M4 is running (not halted) after push the button "Terminate" on eclipse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Solution&amp;nbsp;for eclipse:&lt;/P&gt;&lt;P&gt;After catch the bug in the code, we need to &lt;STRONG&gt;disable breakpoints&lt;/STRONG&gt; and then &lt;STRONG&gt;run&lt;/STRONG&gt; the debugging process. After this we can use the button "&lt;STRONG&gt;terminate&lt;/STRONG&gt;" placed in console "debug [GDB SEGGER J-Link Debugging] JlinkGDBserverCL.exe".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If&amp;nbsp;you follow this rule of thumb, you will be able to debug a code without restart the UDOO Neo board.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2018 00:06:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Debugging-IMX6SX-with-jlink-and-eclipse-get-freezed-after-stop/m-p/767142#M119133</guid>
      <dc:creator>jealcuna</dc:creator>
      <dc:date>2018-03-17T00:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging IMX6SX with jlink and eclipse get freezed after stop session</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Debugging-IMX6SX-with-jlink-and-eclipse-get-freezed-after-stop/m-p/767143#M119134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jefferson&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hanging may be caused by that when M4 enter debug mode, the debug_req will also&lt;BR /&gt;assert in the peripherals which are used by the A9 system.&lt;/P&gt;&lt;P&gt;Need to configure the DBGEN (*) register in the related peripherals to allow &lt;BR /&gt;the peripherals not going into debug mode and keep running even if debug_req is HIGH. &lt;BR /&gt;The peripherals which need take care are: CAN, UART, EPIT, GPT, ENET, PWM,WDOG.&lt;/P&gt;&lt;P&gt;Also may be useful to check documents describing M4 usage :&lt;/P&gt;&lt;P&gt;Working with Cortex-M4 on i.MX6 SoloX Board &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.embeddedartists.com/sites/default/files/support/com/iMX6SoloX/iMX6SoloX_Working_with_Cortex-M4.pdf" title="https://www.embeddedartists.com/sites/default/files/support/com/iMX6SoloX/iMX6SoloX_Working_with_Cortex-M4.pdf"&gt;https://www.embeddedartists.com/sites/default/files/support/com/iMX6SoloX/iMX6SoloX_Working_with_Cortex-M4.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AN5317 Loading Code on Cortex-M4 from Linux for the i.MX 6SoloX and i.MX7Dual/7Solo Application Processors&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN5317.pdf" title="https://www.nxp.com/docs/en/application-note/AN5317.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN5317.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AN5127 How to Run the MQX™ RTOS on Various RAM Memories for i.MX 6SoloX&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN5127.pdf" title="https://www.nxp.com/docs/en/application-note/AN5127.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN5127.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 02:06:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Debugging-IMX6SX-with-jlink-and-eclipse-get-freezed-after-stop/m-p/767143#M119134</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-03-19T02:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging IMX6SX with jlink and eclipse get freezed after stop session</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Debugging-IMX6SX-with-jlink-and-eclipse-get-freezed-after-stop/m-p/767144#M119135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, but i am only using uart1 for uboot debugging which is in domain of A9 and SSH trough usb, which also has inA9 domain. In the other side, I am just testing hello world with uart2 from M4 and I checked twice that this was not activated in A9 on device tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After all this considerations jlink&amp;nbsp;still halting both cores. Now I read also, that I am using a old version of kernel linux 3.14.58 from udoo team, and also uboot 2015.xx, I read in embedded artist tutorial that the problem is related&amp;nbsp;to&amp;nbsp;RDC initialization for A9 on uboot which is not possible in my actual uboot version. However, for me this statement does not make sense since I was careful selecting, enabling and isolating peripherals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not want to update linux, because is a huge labor. Udoo neo team is not bringing a new version with uboot and linux updated. So I will need to port from NXP official repository, and build my own image from scratch. I am leaving this updating process like my last alternative if every else fault.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I was checking the similitude between sabre board and udoo neo board and does not look to different in hardware point of view. Probably I am wrong...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I can work debugging without reset the board, but for me, still being a lost of time copy the built project to boot partition and then executing from linux and then debug... It is annoying. I am trying figure out how to flash directly the built project .bin with jlink by connecting to A9 side. It is a huge process also and there is not more information...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, I already read all documentation that you recommend me, I dont know if I am forgetting something and probably I can debug without halt A9 with my actual version of images...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 12:34:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Debugging-IMX6SX-with-jlink-and-eclipse-get-freezed-after-stop/m-p/767144#M119135</guid>
      <dc:creator>jealcuna</dc:creator>
      <dc:date>2018-03-19T12:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging IMX6SX with jlink and eclipse get freezed after stop session</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Debugging-IMX6SX-with-jlink-and-eclipse-get-freezed-after-stop/m-p/767145#M119136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jefferson&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it does not matter if uart1(or any of mentioned modules: CAN, UART, EPIT,&lt;/P&gt;&lt;P&gt;GPT, ENET, PWM,WDOG) is in domain of A9, possible reason of misbehaviour may be that &lt;/P&gt;&lt;P&gt;when M4 enter debug mode it sets debug_req for all modules, below example for uart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35159i62FC2EFA2ECBE427/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.jpg" alt="pastedImage_4.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So one can set DBGEN=1 for all modules used by A9, for not going into debug mode&lt;/P&gt;&lt;P&gt;and keep them running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 07:19:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Debugging-IMX6SX-with-jlink-and-eclipse-get-freezed-after-stop/m-p/767145#M119136</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-03-20T07:19:30Z</dc:date>
    </item>
  </channel>
</rss>

