<?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: Uploading to and executing from SDRAM on the i.MX RT1050 EVKB</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Uploading-to-and-executing-from-SDRAM-on-the-i-MX-RT1050-EVKB/m-p/1438048#M18991</link>
    <description>&lt;P&gt;I can now upload to and execute from SDRAM. However breakpoints don't work during a debug session - any breakpoints that I set are ignored and the program runs as if there are no breakpoints.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to upload to and execute from SDRAM by making the following changes:&lt;/P&gt;&lt;P&gt;1) Move "NCACHE_REGION" up in the table:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forum_6.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175725i4851949D0322262B/image-size/large?v=v2&amp;amp;px=999" role="button" title="forum_6.png" alt="forum_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2) Add "DATA_SECTION_IS_CACHEABLE=1" to the Preprocessor:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forum_7.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175726iC1D797FE0F9987C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="forum_7.png" alt="forum_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3) Change "SRAM_DTC" to "NCACHE_REGION" in "Managed Linker Script":&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forum_8.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175727i03D2DC66A03A5881/image-size/large?v=v2&amp;amp;px=999" role="button" title="forum_8.png" alt="forum_8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As mentioned, I can now upload to and execute from SDRAM the "iled_blinky" example from "demo_apps", but any breakpoints set during a debug session have no effect:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forum_5.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175728i169B3DF8DBB7992E/image-size/large?v=v2&amp;amp;px=999" role="button" title="forum_5.png" alt="forum_5.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forum_9.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175729i7594B996B9BCECB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="forum_9.png" alt="forum_9.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Apr 2022 00:02:37 GMT</pubDate>
    <dc:creator>danielmilutinov</dc:creator>
    <dc:date>2022-04-03T00:02:37Z</dc:date>
    <item>
      <title>Uploading to and executing from SDRAM on the i.MX RT1050 EVKB</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Uploading-to-and-executing-from-SDRAM-on-the-i-MX-RT1050-EVKB/m-p/1437412#M18974</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm creating an instruction manual for the i.MX RT 1050 EVK for hobbyists. It is a work in progress and can be downloaded&amp;nbsp;from Dropbox&amp;nbsp;&lt;A href="https://www.dropbox.com/s/8173q3k71ql2tby/Primer.pdf?dl=0" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In the manual I show how to execute from SRAM. It is very straightforward - simply check the "Link application to RAM" box:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forum_1.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175579i70546DFF18E5C8B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="forum_1.png" alt="forum_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This places code in "SRAM_DTC", as this memory is in the first row of the table in the "MCU settings" window. I am able to upload and debug without any problems.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I'm trying to upload to and execute from SDRAM. This is more complicated, and some of the suggestions I've tried without success include:&lt;/P&gt;&lt;P&gt;1) Move "BOARD_SDRAM" to the second row of the table&lt;/P&gt;&lt;P&gt;2) Change the location and size of the&amp;nbsp;"BOARD_SDRAM" memory&lt;/P&gt;&lt;P&gt;3) Modify the Preprocessor&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are my settings and the error message generated when I try to start a debug session:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forum_2.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175582i71BA6C996DE73B4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="forum_2.png" alt="forum_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forum_3.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175583iCDBF819A0BDF564E/image-size/large?v=v2&amp;amp;px=999" role="button" title="forum_3.png" alt="forum_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forum_4.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175584iDC444DCB1B105D3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="forum_4.png" alt="forum_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The Console View contains the following message:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MCUXpresso IDE RedlinkMulti Driver v11.5 (Dec 16 2021 12:38:31 - crt_emu_cm_redlink build 2)&lt;BR /&gt;Found chip XML file in C:/Daniel/monic/i.MX RT1050/Blinking an LED/evkbimxrt1050_iled_blinky_LED/Debug\MIMXRT1052xxxxB.xml&lt;BR /&gt;( 5) Remote configuration complete&lt;BR /&gt;Reconnected to existing LinkServer process.&lt;BR /&gt;============= SCRIPT: RT1050_connect.scp =============&lt;BR /&gt;RT1050 Connect Script&lt;BR /&gt;DpID = 0BD11477&lt;BR /&gt;APID = 0x04770041&lt;BR /&gt;Disabling MPU&lt;BR /&gt;Configure FlexRAM for 256KB OC RAM, 128KB I-TCM, 128KB D-TCM&lt;BR /&gt;Finished&lt;BR /&gt;============= END SCRIPT =============================&lt;BR /&gt;Probe Firmware: CMSIS-DAP (ARM)&lt;BR /&gt;Serial Number: 0227000047784e4500259004d7450022ddb1000097969900&lt;BR /&gt;VID:PID: 0D28:0204&lt;BR /&gt;USB Path: \\?\hid#vid_0d28&amp;amp;pid_0204&amp;amp;mi_03#8&amp;amp;2d82ebeb&amp;amp;0&amp;amp;0000#{4d1e55b2-f16f-11cf-88cb-001111000030}&lt;BR /&gt;Using memory from core 0 after searching for a good core&lt;BR /&gt;debug interface type = CoreSight DP (DAP DP ID 0BD11477) over SWD TAP 0&lt;BR /&gt;processor type = Cortex-M7 (CPU ID 00000C27) on DAP AP 0&lt;BR /&gt;number of h/w breakpoints = 8&lt;BR /&gt;number of flash patches = 0&lt;BR /&gt;number of h/w watchpoints = 4&lt;BR /&gt;Probe(0): Connected&amp;amp;Reset. DpID: 0BD11477. CpuID: 00000C27. Info: &amp;lt;None&amp;gt;&lt;BR /&gt;Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.&lt;BR /&gt;Content of CoreSight Debug ROM(s):&lt;BR /&gt;RBASE E00FD000: CID B105100D PID 000008E88C ROM (type 0x1)&lt;BR /&gt;ROM 1 E00FE000: CID B105100D PID 04000BB4C8 ROM (type 0x1)&lt;BR /&gt;ROM 2 E00FF000: CID B105100D PID 04000BB4C7 ROM (type 0x1)&lt;BR /&gt;ROM 3 E000E000: CID B105E00D PID 04000BB00C Gen SCS (type 0x0)&lt;BR /&gt;ROM 3 E0001000: CID B105E00D PID 04000BB002 Gen DWT (type 0x0)&lt;BR /&gt;ROM 3 E0002000: CID B105E00D PID 04000BB00E Gen (type 0x0)&lt;BR /&gt;ROM 3 E0000000: CID B105E00D PID 04000BB001 Gen ITM (type 0x0)&lt;BR /&gt;ROM 2 E0041000: CID B105900D PID 04001BB975 CSt ARM ETMv4.0 type 0x13 Trace Source - Core&lt;BR /&gt;ROM 2 E0042000: CID B105900D PID 04004BB906 CSt type 0x14 Debug Control - Trigger, e.g. ECT&lt;BR /&gt;ROM 1 E0040000: CID B105900D PID 04000BB9A9 CSt type 0x11 Trace Sink - TPIU&lt;BR /&gt;ROM 1 E0043000: CID B105F00D PID 04001BB101 Sys (type 0x0)&lt;BR /&gt;NXP: MIMXRT1052xxxxB&lt;BR /&gt;DAP stride is 1024 bytes (256 words)&lt;BR /&gt;Connected: was_reset=false. was_stopped=true&lt;BR /&gt;Awaiting telnet connection to port 3330 ...&lt;BR /&gt;GDB nonstop mode enabled&lt;BR /&gt;GDB stub (C:\nxp\MCUXpressoIDE_11.5.0_7232\ide\plugins\com.nxp.mcuxpresso.tools.bin.win32_11.5.0.202112161150\binaries\crt_emu_cm_redlink) terminating - GDB protocol problem: Pipe has been closed by GDB.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Apr 2022 23:43:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Uploading-to-and-executing-from-SDRAM-on-the-i-MX-RT1050-EVKB/m-p/1437412#M18974</guid>
      <dc:creator>danielmilutinov</dc:creator>
      <dc:date>2022-04-02T23:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading to and executing from SDRAM on the i.MX RT1050 EVKB</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Uploading-to-and-executing-from-SDRAM-on-the-i-MX-RT1050-EVKB/m-p/1438048#M18991</link>
      <description>&lt;P&gt;I can now upload to and execute from SDRAM. However breakpoints don't work during a debug session - any breakpoints that I set are ignored and the program runs as if there are no breakpoints.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to upload to and execute from SDRAM by making the following changes:&lt;/P&gt;&lt;P&gt;1) Move "NCACHE_REGION" up in the table:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forum_6.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175725i4851949D0322262B/image-size/large?v=v2&amp;amp;px=999" role="button" title="forum_6.png" alt="forum_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2) Add "DATA_SECTION_IS_CACHEABLE=1" to the Preprocessor:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forum_7.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175726iC1D797FE0F9987C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="forum_7.png" alt="forum_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3) Change "SRAM_DTC" to "NCACHE_REGION" in "Managed Linker Script":&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forum_8.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175727i03D2DC66A03A5881/image-size/large?v=v2&amp;amp;px=999" role="button" title="forum_8.png" alt="forum_8.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As mentioned, I can now upload to and execute from SDRAM the "iled_blinky" example from "demo_apps", but any breakpoints set during a debug session have no effect:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forum_5.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175728i169B3DF8DBB7992E/image-size/large?v=v2&amp;amp;px=999" role="button" title="forum_5.png" alt="forum_5.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="forum_9.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175729i7594B996B9BCECB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="forum_9.png" alt="forum_9.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2022 00:02:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Uploading-to-and-executing-from-SDRAM-on-the-i-MX-RT1050-EVKB/m-p/1438048#M18991</guid>
      <dc:creator>danielmilutinov</dc:creator>
      <dc:date>2022-04-03T00:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading to and executing from SDRAM on the i.MX RT1050 EVKB</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Uploading-to-and-executing-from-SDRAM-on-the-i-MX-RT1050-EVKB/m-p/1438454#M18999</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/163740"&gt;@danielmilutinov&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Yes, this is due to the cache issue. Before debug in SDRAM, you should a&lt;SPAN&gt;dd --cachelib libm7_cache.so to Additional options.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jingpan_0-1649087151548.png" style="width: 617px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/175818iF3A60B3394058FBD/image-dimensions/617x432?v=v2" width="617" height="432" role="button" title="jingpan_0-1649087151548.png" alt="jingpan_0-1649087151548.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 15:46:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Uploading-to-and-executing-from-SDRAM-on-the-i-MX-RT1050-EVKB/m-p/1438454#M18999</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2022-04-04T15:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading to and executing from SDRAM on the i.MX RT1050 EVKB</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Uploading-to-and-executing-from-SDRAM-on-the-i-MX-RT1050-EVKB/m-p/1439322#M19023</link>
      <description>&lt;P&gt;Thank you Jing, that works nicely. After adding&amp;nbsp; "&lt;SPAN&gt;--&lt;/SPAN&gt;&lt;SPAN&gt;cachelib&lt;/SPAN&gt; &lt;SPAN&gt;libm7&lt;/SPAN&gt;&lt;SPAN&gt;_cache.so" in the "Additional options" field I debug by pressing the green bug icon in the toolbar and everything works well (debugging by&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;pressing "Debug" in the "&lt;/SPAN&gt;&lt;SPAN&gt;Quickstart&lt;/SPAN&gt;&lt;SPAN&gt; Panel" View did not work for me).&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'll add step-by-step instructions to my i.MX RT1050 EVK manual for hobbyists and upload it to Dropbox.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 03:53:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Uploading-to-and-executing-from-SDRAM-on-the-i-MX-RT1050-EVKB/m-p/1439322#M19023</guid>
      <dc:creator>danielmilutinov</dc:creator>
      <dc:date>2022-04-06T03:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading to and executing from SDRAM on the i.MX RT1050 EVKB</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Uploading-to-and-executing-from-SDRAM-on-the-i-MX-RT1050-EVKB/m-p/1959149#M31890</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/163740"&gt;@danielmilutinov&lt;/a&gt;&amp;nbsp; Thank you very much, I have found what I searched.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Sep 2024 08:57:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Uploading-to-and-executing-from-SDRAM-on-the-i-MX-RT1050-EVKB/m-p/1959149#M31890</guid>
      <dc:creator>burhanhagi</dc:creator>
      <dc:date>2024-09-21T08:57:37Z</dc:date>
    </item>
  </channel>
</rss>

