<?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: MX7 M4: Loading/executing freeRTOS BSP example code with and without SD card in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718860#M111696</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright I figured that part out. It was actually a misconfiguration in the eclipse settings that was pointing to the wrong executable in the Jlink folder (RemoteServer instead of GDBServer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eclipse is now able to start a debug session.&lt;/P&gt;&lt;P&gt;However, I do not see anything happen. As in:&lt;BR /&gt;The project is built, uploaded, and the status bar adjusts to "Launching &amp;lt;debug session name&amp;gt;:(100%)".&lt;BR /&gt;Eclipse switches to debug view. But all buttons like Resume, Suspend, Step over/into/etc are greyed out, except for "Terminate". No breakpoints are reached. So I assume PC/SP are set up&amp;nbsp;incorrectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When looking at the SEGGER JLink control panel that pops up as a tray icon, I can see R13 and R15 (Stack pointer, Program counter) are 0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Segger_PC_SP_0.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/553i0979BFD0411CF549/image-size/large?v=v2&amp;amp;px=999" role="button" title="Segger_PC_SP_0.PNG" alt="Segger_PC_SP_0.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can set registers and correctly read their value back, so I assume this is not a readout error.&lt;/P&gt;&lt;P&gt;This is probably a misconfiguration in Eclipse?&lt;/P&gt;&lt;P&gt;After uploading the binary, the PC/SP should be set by Eclipse through the jlink i assume.&lt;BR /&gt;How can I find out what values these registers should have?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a freeRTOS example project for this. I read they are all meant to be built for tightly coupled memory. Not sure if this refers to the usage of the provided batch/shell files for building a project. I have not set up any linker file from what I remember.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Feb 2018 09:13:01 GMT</pubDate>
    <dc:creator>demoniacmilk</dc:creator>
    <dc:date>2018-02-07T09:13:01Z</dc:date>
    <item>
      <title>MX7 M4: Loading/executing freeRTOS BSP example code with and without SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718853#M111689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello! I have some questions on running bare metal/freeRTOS on the MX7's Cortex-M4 core.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WITH&amp;nbsp;SD CARD on SABRE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For the sabre board it is possible to start the M4 core through uboot using the fatload {source path}{address} command where uboot copies a prevously stored file from the file system to a memory address. After loading a .bin/.elf file, bootaux {address} starts the M4 and runs the program starting at the specified address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FreeRTOS BSP Hello World example has been built succesfully using GNU MCU Eclipse.&lt;/P&gt;&lt;P&gt;Two terminal instances are connected to the virtual com ports to see the A7 and M4 debug output.&lt;/P&gt;&lt;P&gt;Using the A7 terminal, the M4 application is loaded and started as follows:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;=&amp;gt; fatload mmc 0:1 0x80800000 M4_HelloWorld.elf&lt;BR /&gt;reading M4_HelloWorld.elf&lt;BR /&gt;33400 bytes read in 32 ms (1018.6 KiB/s)&lt;BR /&gt;=&amp;gt; bootaux 0x80800000&lt;BR /&gt;## Starting auxiliary core at 0x80800000 ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not see any output on the M4 terminal, including echo. So something went wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fatload address is located in RAM. I randomly picked an address to load to and execute from. Are there any restrictions on what addresses might be chosen (while within&amp;nbsp;RAM boundaries)?&lt;/P&gt;&lt;P&gt;A couple loader files like&amp;nbsp;MCIMX7D_M4_ddr.ld are included in the BSP (platform/devices/MCIMX7D/linker). I have not understood what I should do with these.&lt;/P&gt;&lt;P&gt;Is the Hello World example meant to work out of the box or are any adjustments needed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WITHOUT SD CARD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Our custom MX7 hardware does not have an SD card. Instead, EMMC and&amp;nbsp;NAND&amp;nbsp;are used in the system. JTAG is avilable,&amp;nbsp;the next revision will have a USB connector on USB OTG 1 as well.&lt;/P&gt;&lt;P&gt;How can I actually get my program to run on the M4 under these conditions? May I use JTAG? With a JLink debugger I can connect to the two A7 cores but not to the M4 (target cpu could not be halted).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are the steps to load a binary and execute on the M4?&lt;/P&gt;&lt;P&gt;(No Linux available).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 15:51:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718853#M111689</guid>
      <dc:creator>demoniacmilk</dc:creator>
      <dc:date>2018-02-05T15:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: MX7 M4: Loading/executing freeRTOS BSP example code with and without SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718854#M111690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lars&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can look at procedures described in AN5317 and use jtag with various developments IDEs :&lt;/P&gt;&lt;P&gt;Loading Code on Cortex-M4 from Linux for the i.MX 6SoloX and i.MX7Dual/7Solo Application Processors&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;&lt;A class="link-titled" href="https://github.com/codeauroraforum/imx-m4fwloader" title="https://github.com/codeauroraforum/imx-m4fwloader"&gt;GitHub - codeauroraforum/imx-m4fwloader: Tool for loading firmware to M4 core on i.MX6SX and 7D&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developer.toradex.com/knowledge-base/using-arm-ds-5-ide-with-cortex-m4-of-a-colibri-imx7" title="https://developer.toradex.com/knowledge-base/using-arm-ds-5-ide-with-cortex-m4-of-a-colibri-imx7"&gt;Using ARM DS-5 IDE with Cortex-M4 of a Colibri iMX7&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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, 05 Feb 2018 23:34:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718854#M111690</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-02-05T23:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: MX7 M4: Loading/executing freeRTOS BSP example code with and without SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718855#M111691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lars,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you using Segger J-Link &amp;amp; Eclipse tools , and just working on M4 with no Linux booting on A7, then in my experience that should be straight forward. I've experienced more issues when /after Linux runs, but that's sorted too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Have you seen this thread?&amp;nbsp;&lt;A href="https://community.nxp.com/thread/461296"&gt;https://community.nxp.com/thread/461296&lt;/A&gt;&amp;nbsp;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll be happy to share any setting if they may be of use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 00:28:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718855#M111691</guid>
      <dc:creator>dry</dc:creator>
      <dc:date>2018-02-06T00:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: MX7 M4: Loading/executing freeRTOS BSP example code with and without SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718856#M111692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for the hint. That is quite a good thread!&lt;/P&gt;&lt;P&gt;However, on trying to connect to the M4 through Eclipse (or standalone JLinkGDBServerCL.exe) I run into the following problem (even if the Segger MX7 M4 connect script is used):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="nxp_eclipse_gdb_noconnect.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/505i6876091C23B21A74/image-size/large?v=v2&amp;amp;px=999" role="button" title="nxp_eclipse_gdb_noconnect.PNG" alt="nxp_eclipse_gdb_noconnect.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This did not change if I use the script provided in your thread at first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding the options to the debug configurations startup tab and disabling Pre-run/Restart reset I get the following error instead:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Error in services launch sequence&lt;BR /&gt;Starting J-Link GDB Server timed out.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Any idea what might be the cause for this? Starting Eclipse in Admin mode did not have any effect (I thought maybe Eclipse is not allowed to start the GDB Server)&lt;BR /&gt;Here are my startup settings:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="nxp_eclipse_gdb_noconnect_launchSettings.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/574iEEFC4798F7319216/image-size/large?v=v2&amp;amp;px=999" role="button" title="nxp_eclipse_gdb_noconnect_launchSettings.PNG" alt="nxp_eclipse_gdb_noconnect_launchSettings.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 10:14:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718856#M111692</guid>
      <dc:creator>demoniacmilk</dc:creator>
      <dc:date>2018-02-06T10:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: MX7 M4: Loading/executing freeRTOS BSP example code with and without SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718857#M111693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for the ressources, but they are all about loading code from Linux.&lt;BR /&gt;Unfortunately no Linux is available on the custom hardware so this is not helpful for me.&lt;BR /&gt;I am looking for a way to load/debug code from Eclipse (basic eclipse and arm plugins).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 10:27:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718857#M111693</guid>
      <dc:creator>demoniacmilk</dc:creator>
      <dc:date>2018-02-06T10:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: MX7 M4: Loading/executing freeRTOS BSP example code with and without SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718858#M111694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lars&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please look on&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://forum.segger.com/index.php?page=Thread&amp;amp;threadID=3493" title="http://forum.segger.com/index.php?page=Thread&amp;amp;threadID=3493"&gt;[SOLVED] Support of NXP's i.MX7 - J-Link/Flasher related - SEGGER Forum&lt;/A&gt;&amp;nbsp;&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, 06 Feb 2018 10:47:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718858#M111694</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-02-06T10:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: MX7 M4: Loading/executing freeRTOS BSP example code with and without SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718859#M111695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen this thread before and am using the connect scripts.&lt;/P&gt;&lt;P&gt;The thread linked by D. RY included some more settings for the debug configuration.&lt;BR /&gt;Now I am told the GDB Server times out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 11:07:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718859#M111695</guid>
      <dc:creator>demoniacmilk</dc:creator>
      <dc:date>2018-02-06T11:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: MX7 M4: Loading/executing freeRTOS BSP example code with and without SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718860#M111696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright I figured that part out. It was actually a misconfiguration in the eclipse settings that was pointing to the wrong executable in the Jlink folder (RemoteServer instead of GDBServer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eclipse is now able to start a debug session.&lt;/P&gt;&lt;P&gt;However, I do not see anything happen. As in:&lt;BR /&gt;The project is built, uploaded, and the status bar adjusts to "Launching &amp;lt;debug session name&amp;gt;:(100%)".&lt;BR /&gt;Eclipse switches to debug view. But all buttons like Resume, Suspend, Step over/into/etc are greyed out, except for "Terminate". No breakpoints are reached. So I assume PC/SP are set up&amp;nbsp;incorrectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When looking at the SEGGER JLink control panel that pops up as a tray icon, I can see R13 and R15 (Stack pointer, Program counter) are 0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Segger_PC_SP_0.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/553i0979BFD0411CF549/image-size/large?v=v2&amp;amp;px=999" role="button" title="Segger_PC_SP_0.PNG" alt="Segger_PC_SP_0.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can set registers and correctly read their value back, so I assume this is not a readout error.&lt;/P&gt;&lt;P&gt;This is probably a misconfiguration in Eclipse?&lt;/P&gt;&lt;P&gt;After uploading the binary, the PC/SP should be set by Eclipse through the jlink i assume.&lt;BR /&gt;How can I find out what values these registers should have?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a freeRTOS example project for this. I read they are all meant to be built for tightly coupled memory. Not sure if this refers to the usage of the provided batch/shell files for building a project. I have not set up any linker file from what I remember.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 09:13:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718860#M111696</guid>
      <dc:creator>demoniacmilk</dc:creator>
      <dc:date>2018-02-07T09:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: MX7 M4: Loading/executing freeRTOS BSP example code with and without SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718861#M111697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;So the commands as you inserted into Eclipse&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;eval "monitor memU32 0x00180000 %p", &amp;amp;__stack&lt;/SPAN&gt;&lt;BR style="color: #51626f; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;eval "monitor memU32 0x00180004 %p", &amp;amp;Reset_Handler + 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So those set the values SP and PC in the M4 reset control register (if i got the name right),&amp;nbsp;through J-Link. They get loaded to SP,PC respectively, on M4 reset.&lt;/P&gt;&lt;P&gt;(Also note, you can't just hit Eclipse re-load / restart button with the configuration, you have to kill debug session and start it again each time you want to restart).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set the break point in the reset handler. The temporary bpoint should work&amp;nbsp; - tbreak .&lt;/P&gt;&lt;P&gt;If you do not get there, there is a setup problem . You should hit it on the debug session start . If you do and can single step then it should all work .. (does for me).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you suspecting Eclipse setup, I say do JLinkExe&amp;nbsp; / JLinkGDBServer + gdb from command line first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 10:08:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718861#M111697</guid>
      <dc:creator>dry</dc:creator>
      <dc:date>2018-02-07T10:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: MX7 M4: Loading/executing freeRTOS BSP example code with and without SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718862#M111698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I have not set up any linker file from what I remember.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All linker files as provided in examples are good &amp;amp; usable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I can ask, sorry for obvious thing, but have you verified you can connect to the M4 core with J-Link commander properly?&amp;nbsp; And read registers, from command line.&amp;nbsp; I really like that :smileyhappy:&amp;nbsp; . Followed by command line JLinkGDBServer + gdb test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use Segger's Linux command line tools but I know you can do with JLink windows commander same thing for testing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also just to understand, when you wrote&amp;nbsp; "(no Linux is available)",&amp;nbsp; do you mean you do not run Linux on A7 core(s) of the target?&amp;nbsp; Do you at least boot U-boot?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 10:28:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718862#M111698</guid>
      <dc:creator>dry</dc:creator>
      <dc:date>2018-02-07T10:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: MX7 M4: Loading/executing freeRTOS BSP example code with and without SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718863#M111699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got a new error message that I hadnt seen before. I am not sure why. Setup should be similar to what was set up before.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Error message from debugger back end:&lt;BR /&gt;No symbol table is loaded. Use the "file" command.&lt;BR /&gt;Failed to execute MI command:&lt;BR /&gt;eval "monitor memU32 0x00180000 %p", &amp;amp;__stack&lt;BR /&gt;Error message from debugger back end:&lt;BR /&gt;No symbol table is loaded. Use the "file" command.&lt;BR /&gt;No symbol table is loaded. Use the "file" command.&lt;BR /&gt;Failed to execute MI command:&lt;BR /&gt;eval "monitor memU32 0x00180004 %p", &amp;amp;Reset_Handler + 1&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is interesting cause it did not appear before. It happens in both cases, Pre-Run/Restart reset ticked or not ticked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had changed the startup settings as in removing the custom commands in Run/Restart Commands and ticking Pre-run/Restart reset. Using these options, the debug session starts and Eclipse displays a running thread.&lt;BR /&gt;However, I cannot hold the CPU so I cannot read any registers.&lt;/P&gt;&lt;P&gt;I guess its all about finding a way to properly halt/resume&amp;nbsp;CPU functionality and doing the initial setup. I can connect to the M4 using your updated connect script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output of JLink.exe on trying to connect:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Device "MCIMX7D7_M4" selected.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Connecting to target via JTAG&lt;BR /&gt;*************************************************&lt;BR /&gt;J-Link script: iMX7D Cortex-M4 core J-Link script&lt;BR /&gt;*************************************************&lt;BR /&gt;TotalIRLen = 4, IRPrint = 0x01&lt;BR /&gt;JTAG chain detection found 1 devices:&lt;BR /&gt; #0 Id: 0x5BA00477, IRLen: 04, CoreSight JTAG-DP&lt;BR /&gt;AP map detection skipped. Manually configured AP map found.&lt;BR /&gt;AP[0]: AHB-AP (IDR: Not set)&lt;BR /&gt;AP[1]: APB-AP (IDR: Not set)&lt;BR /&gt;AP[2]: CUSTOM-AP (IDR: Not set)&lt;BR /&gt;AP[3]: CUSTOM-AP (IDR: Not set)&lt;BR /&gt;AP[4]: AHB-AP (IDR: Not set)&lt;BR /&gt;AP[4]: Core found&lt;BR /&gt;AP[4]: AHB-AP ROM base: 0xE00FF000&lt;BR /&gt;CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)&lt;BR /&gt;Found Cortex-M4 r0p1, Little endian.&lt;BR /&gt;FPUnit: 6 code (BP) slots and 2 literal slots&lt;BR /&gt;CoreSight components:&lt;BR /&gt;ROMTbl[0] @ E00FF000&lt;BR /&gt;ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7&lt;BR /&gt;ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT&lt;BR /&gt;ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB&lt;BR /&gt;ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM&lt;BR /&gt;ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM&lt;BR /&gt;ROMTbl[0][7]: E0043000, CID: B105900D, PID: 001BB908 CSTF&lt;BR /&gt;ROMTbl[0][8]: E0044000, CID: B105900D, PID: 004BB906 CTI&lt;BR /&gt;Cortex-M4 identified.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Running the JLinkGDBServer from the windows command line with command&lt;/P&gt;&lt;P&gt;&lt;EM&gt;JLinkGDBServerCL.exe -if jtag -speed 300 -scriptfile Devices\NXP\iMX7D\NXP_iMX7D_Connect_CortexM4_DRy_Mod.JLinkScript -device MCIMX7D7_M4&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;gives the following result (text in bold may be an issue?):&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;SEGGER J-Link GDB Server V6.30b Command Line Version&lt;/P&gt;&lt;P&gt;JLinkARM.dll V6.30b (DLL compiled Feb 2 2018 18:36:54)&lt;/P&gt;&lt;P&gt;Command line: -if jtag -speed 300 -scriptfile Devices\NXP\iMX7D\NXP_iMX7D_Connect_CortexM4_DRy_Mod.JLinkScript -device MCIMX7D7_M4&lt;BR /&gt;-----GDB Server start settings-----&lt;BR /&gt;GDBInit file: none&lt;BR /&gt;GDB Server Listening port: 2331&lt;BR /&gt;SWO raw output listening port: 2332&lt;BR /&gt;Terminal I/O port: 2333&lt;BR /&gt;Accept remote connection: localhost only&lt;BR /&gt;Generate logfile: off&lt;BR /&gt;Verify download: off&lt;BR /&gt;Init regs on start: off&lt;BR /&gt;Silent mode: off&lt;BR /&gt;Single run mode: off&lt;BR /&gt;Target connection timeout: 0 ms&lt;BR /&gt;------J-Link related settings------&lt;BR /&gt;J-Link Host interface: USB&lt;BR /&gt;J-Link script: Devices\NXP\iMX7D\NXP_iMX7D_Connect_CortexM4_DRy_Mod.JLinkScript&lt;BR /&gt;J-Link settings file: none&lt;BR /&gt;------Target related settings------&lt;BR /&gt;Target device: MCIMX7D7_M4&lt;BR /&gt;Target interface: JTAG&lt;BR /&gt;Target interface speed: 300kHz&lt;BR /&gt;Target endian: little&lt;/P&gt;&lt;P&gt;Connecting to J-Link...&lt;BR /&gt;J-Link is connected.&lt;BR /&gt;Firmware: J-Link V10 compiled Feb 2 2018 18:12:40&lt;BR /&gt;Hardware: V10.10&lt;BR /&gt;S/N: 50117772&lt;BR /&gt;Feature(s): GDB&lt;BR /&gt;Checking target voltage...&lt;BR /&gt;Target voltage: 1.81 V&lt;BR /&gt;Listening on TCP/IP port 2331&lt;BR /&gt;Connecting to target...&lt;BR /&gt;J-Link found 1 JTAG device, Total IRLen = 4&lt;BR /&gt;JTAG ID: 0x5BA00477 (Cortex-M4)&lt;BR /&gt;&lt;STRONG&gt;WARNING: CPU could not be halted&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Halting target device failed. Trying again with reset&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WARNING: T-bit of XPSR is 0 but should be 1. Changed to 1.&lt;/STRONG&gt;&lt;BR /&gt;Connected to target&lt;BR /&gt;Waiting for GDB connection...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;ill go ahead and start arm-none-eabi-gdb with the elf file to see what happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 10:45:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718863#M111699</guid>
      <dc:creator>demoniacmilk</dc:creator>
      <dc:date>2018-02-07T10:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: MX7 M4: Loading/executing freeRTOS BSP example code with and without SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718864#M111700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;All linker files as provided in examples are good &amp;amp; usable.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Guess i need to figure out how to use them :smileygrin:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;If I can ask, sorry for obvious thing, but have you verified you can connect to the M4 core with J-Link commander properly?&amp;nbsp; And read registers, from command line.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Whenever the connection has been established (like right now using the JLinkGDBServerCL.exe through the command prompt) a JLink control panel tray icon shows up. Clicking on that i can go ahead and read all registers.I can modify the register values and when I read them back the values remain.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;When the connection is established using JLink.exe it seems to work as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;J-Link&amp;gt;connect&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;[...]&lt;BR /&gt;Cortex-M4 identified.&lt;BR /&gt;&lt;STRONG&gt;J-Link&amp;gt;mem32 0,1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;00000000 = 4C1B8F02&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Also just to understand, when you wrote&amp;nbsp; "(no Linux is available)",&amp;nbsp; do you mean you do not run Linux on A7 core(s) of the target?&amp;nbsp; Do you at least boot U-boot?&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The hardware at hand was developed for a customer. The customer does all the software stuff (Linux image, application to run on the system etc). All I want to do is check/verify&amp;nbsp;my hardware design as in: reading/writing data on some interfaces like i2c, uart, ethenet and read out e.g. device IDs of components attached to these interfaces. The whole point of this is to verify the hardware functionality. As i've never done any &lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Linux development or built a custom kernel or figured out how to get a kernel/uboot image into the system (it does not have an SD card) I'd like to not use Linux at all. I just want to run some simple, bare metal interface tests.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 11:09:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718864#M111700</guid>
      <dc:creator>demoniacmilk</dc:creator>
      <dc:date>2018-02-07T11:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: MX7 M4: Loading/executing freeRTOS BSP example code with and without SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718865#M111701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Lars Heinrichs wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WARNING: CPU could not be halted&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Halting target device failed. Trying again with reset&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WARNING: T-bit of XPSR is 0 but should be 1. Changed to 1.&lt;/STRONG&gt;&lt;BR /&gt;Connected to target&lt;BR /&gt;Waiting for GDB connection...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats all good, ignore second warning. It attempts the reset which succeeds.&lt;/P&gt;&lt;P&gt;I get same traces too when uploading code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="color: #666666; background-color: #ffffff; font-size: 14px;"&gt;No symbol table is loaded. Use the "file" command.&lt;/SPAN&gt;&lt;BR style="color: #666666; background-color: #ffffff; font-size: 14px; margin: 0px; padding: 0px;" /&gt;&lt;SPAN style="color: #666666; background-color: #ffffff; font-size: 14px;"&gt;No symbol table is loaded. Use the "file" command.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That looks like your binary &amp;amp; symbols were not loaded , check your elf file. The other gdb/monitor commands fail to execute because of that, you didn't load the elf with gdb&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 12:31:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718865#M111701</guid>
      <dc:creator>dry</dc:creator>
      <dc:date>2018-02-07T12:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: MX7 M4: Loading/executing freeRTOS BSP example code with and without SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718866#M111702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Guess i need to figure out how to use them&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;They are used, when the examples get built, so you don't do anything unless you need to modify them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;r figured out how to get a kernel/uboot image into the system&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be check it out,&amp;nbsp; U-boot may be handy, even without rest (Linux) running.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 12:33:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718866#M111702</guid>
      <dc:creator>dry</dc:creator>
      <dc:date>2018-02-07T12:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: MX7 M4: Loading/executing freeRTOS BSP example code with and without SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718867#M111703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright, without an elf file i can use the Segger and arm gbd client/server to connect to the target:&lt;/P&gt;&lt;P&gt;However, I can only halt it once it seems and have to do a power cycle afterwards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Segger GDB Server:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Halting target device failed. Trying again with reset&lt;BR /&gt;WARNING: T-bit of XPSR is 0 but should be 1. Changed to 1.&lt;BR /&gt;Connected to target&lt;BR /&gt;Waiting for GDB connection...Connected to 127.0.0.1&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00000000 (Data = 0x00000000)&lt;BR /&gt;Read 2 bytes @ address 0x00000000 (Data = 0x0000)&lt;BR /&gt;Received monitor command: halt&lt;BR /&gt;Halting target CPU...&lt;BR /&gt;...Target halted (PC = 0x00000000)&lt;BR /&gt;Received monitor command: go&lt;BR /&gt;Starting target CPU...&lt;BR /&gt;Received monitor command: halt&lt;BR /&gt;Halting target CPU...&lt;BR /&gt;WARNING: CPU could not be halted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also checked the .elf file.&lt;/P&gt;&lt;P&gt;It is really weird. except for maybe the first and last 100 byte all bytes are 0. I dont think this is what a proper program looks like&amp;nbsp;:smileygrin:&amp;nbsp;The binary file is similar, ~65k of 66k chars in that file are 0. Not sure what i going wrong there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 13:07:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718867#M111703</guid>
      <dc:creator>demoniacmilk</dc:creator>
      <dc:date>2018-02-07T13:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: MX7 M4: Loading/executing freeRTOS BSP example code with and without SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718868#M111704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;nbsp;They are used, when the examples get built, so you don't do anything unless you need to modify them.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even if I do not build them with the provided makefiles/batch scripts/shell scripts? Just the source files have been imported to eclipse, I haven't told the build system anything about the loader files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;BR /&gt;I added a linker file in&lt;/P&gt;&lt;P&gt;Project Preferences - C/C++ Build - Settings - GNU ARM Cross C Linker - General&amp;nbsp;- Script files&lt;/P&gt;&lt;P&gt;that I have found in&lt;/P&gt;&lt;P&gt;&amp;lt;RTOS BSP&amp;gt;/platform/devices/linker/&lt;/P&gt;&lt;P&gt;I am not sure of arm or gcc shall be used so i tried both.&lt;/P&gt;&lt;P&gt;When using the file in the arm folder ,I get:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;c:/eclipse_mcu_and_toolchains/gcc-arm-none-eabi-7-2017-q4/bin/../lib/gcc/arm-none-eabi/7.2.1/../../../../arm-none-eabi/bin/ld.exe:C:\Eclipse_MCU_And_Toolchains\RTOS_BSP\platform\devices\MCIMX7D\linker\arm\MCIMX7D_M4_ocram.scf:1: syntax error&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;and with the file in folder gcc the created elf file suddenly has a size of 2.9 MB instead of 33 kB.&lt;/P&gt;&lt;P&gt;So I have&amp;nbsp;tried to debug the new elf file through eclipse and got the following console output:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Halting target CPU...&lt;BR /&gt;...Target halted (PC = 0x00000000)&lt;BR /&gt;Read 4 bytes @ address 0x00000000 (Data = 0x00000000)&lt;BR /&gt;Read 2 bytes @ address 0x00000000 (Data = 0x0000)&lt;BR /&gt;WARNING: Failed to read memory @ address 0xFFFFFFFE&lt;BR /&gt;WARNING: Failed to read memory @ address 0xFFFFFFFE&lt;BR /&gt;Reading 64 bytes @ address 0x20214180&lt;BR /&gt;Read 2 bytes @ address 0x202141A6 (Data = 0x404E)&lt;BR /&gt;Read 2 bytes @ address 0x202141A6 (Data = 0x404E)&lt;BR /&gt;Read 2 bytes @ address 0x202141A6 (Data = 0x404E)&lt;BR /&gt;Received monitor command: regs&lt;BR /&gt;R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000&lt;BR /&gt;R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000&lt;BR /&gt;R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000&lt;BR /&gt;R12= 00000000, R13= 00000000, MSP= 00000000, PSP= 00000000&lt;BR /&gt;R14(LR) = FFFFFFFF, R15(PC) = 00000000&lt;BR /&gt;XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000&lt;BR /&gt;CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00&lt;BR /&gt;Reading all registers&lt;BR /&gt;&lt;STRONG&gt;Setting breakpoint @ address 0x202141A6, Size = 2, BPHandle = 0x0001&lt;/STRONG&gt;&lt;BR /&gt;Starting target CPU...&lt;BR /&gt;&lt;STRONG&gt;Debugger requested to halt target...&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WARNING: CPU could not be halted&lt;/STRONG&gt;&lt;BR /&gt;Reading all registers&lt;BR /&gt;WARNING: CPU could not be halted&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I assume the debugger requesting a target halt happened on hitting the breakpoint that was set before?&lt;/P&gt;&lt;P&gt;But halting the target didnt work, so .. hm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;U-boot may be handy, even without rest (Linux) running.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Not sure how uboot would help me. Maybe by doing the RAM setup?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;The current hardware version has neither an USB connector (for mfgtools) nor an SD card slot.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 13:57:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718868#M111704</guid>
      <dc:creator>demoniacmilk</dc:creator>
      <dc:date>2018-02-07T13:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: MX7 M4: Loading/executing freeRTOS BSP example code with and without SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718869#M111705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I only need to figure out how to enable the CPU to be halted (either help the Emulator to halt the cpu or ... i dont know if this may require a setup or hardware change?). Can you halt the CPU multiple times with your setup?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 16:46:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718869#M111705</guid>
      <dc:creator>demoniacmilk</dc:creator>
      <dc:date>2018-02-07T16:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: MX7 M4: Loading/executing freeRTOS BSP example code with and without SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718870#M111706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Lars,&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Even if I do not build them with the provided makefiles/batch scripts/shell scripts? Just the source files have been imported to eclipse, I haven't told the build system anything about the loader files.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, sorry, I didn't realize you not using the standard provided build setup (as delivered by NXP) for your FreeRTOS examples.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course linker files must be used, and required for the binaries to be loaded correctly into memory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suggest you use provided build system.&lt;/P&gt;&lt;P&gt;I will not help you with re-creating that setup as you want, sorry.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Otherewise, my PayPal account is ..... :smileysilly:&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;I think I only need to figure out how to enable the CPU to be halted (either help the Emulator to halt the cpu or ... i dont know if this may require a setup or hardware change?). Can you halt the CPU multiple times with your setup?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you loaded junk (which you did,&amp;nbsp; like 0's for those values), you won't be able to re-halt it, as by now the CPU is in a fault state (if those addresses looked valid before M4 started). Power cycle would cleanly fix that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start with building all as is&amp;nbsp; /provided in examples. Proceed to test with command line, then proceed to Eclipse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G'luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 21:25:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718870#M111706</guid>
      <dc:creator>dry</dc:creator>
      <dc:date>2018-02-07T21:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: MX7 M4: Loading/executing freeRTOS BSP example code with and without SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718871#M111707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I will not help you with re-creating that setup as you want, sorry.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;(Otherewise, my PayPal account is .....&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes i totally understand this :smileyhappy:&lt;/P&gt;&lt;P&gt;I installed MinGW and CMake to be able to compile the provided examples with the script files.&lt;BR /&gt;Compilation was succesful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went with the Hello World OCRAM example. Started the GDB server, followed by arm-none-eabi-gdb, set the file to the created elf file, loaded it (console prints different sections being loaded), then "monitor go", but i do not see any console output unfortuntely (Putty on COM port). I see symbols being sent to the SABRE board (indicator LEDs) so I know the&amp;nbsp;putty setup is okay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 11:38:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718871#M111707</guid>
      <dc:creator>demoniacmilk</dc:creator>
      <dc:date>2018-02-08T11:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: MX7 M4: Loading/executing freeRTOS BSP example code with and without SD card</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718872#M111708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It sounds like you almost there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try do as: after clean start, connect JLinkGDBServer, then connect gdb to it, then load elf file (as you were doing), then before anything else (not going monitor go), set the break point in reset handler , e..g with tbreak. Then use gdb's command continue. You should hit the break point and gdb should stop on it.&lt;/P&gt;&lt;P&gt;Try single step, then set another breakpoint in the console stuff or where that threat prints hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Also handy , Cntrl^C in gdb I believe is to break immediately the current execution).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Feb 2018 12:13:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/MX7-M4-Loading-executing-freeRTOS-BSP-example-code-with-and/m-p/718872#M111708</guid>
      <dc:creator>dry</dc:creator>
      <dc:date>2018-02-08T12:13:27Z</dc:date>
    </item>
  </channel>
</rss>

