<?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: Creating Device Configuration Data for iMXRT1021</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Creating-Device-Configuration-Data-for-iMXRT1021/m-p/974639#M4954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don´t use IAR anymore (lucky me), but you can try to play with the reset options (reset with pin, etc).&lt;/P&gt;&lt;P&gt;In addition, IAR executes a macro after connect (*.mac&amp;nbsp; files), you can alter this files to reconfigure the TCM-Configurations to the needs of the Flash-Loader.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jul 2019 05:21:57 GMT</pubDate>
    <dc:creator>Masmiseim</dc:creator>
    <dc:date>2019-07-02T05:21:57Z</dc:date>
    <item>
      <title>Creating Device Configuration Data for iMXRT1021</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Creating-Device-Configuration-Data-for-iMXRT1021/m-p/974636#M4951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;On my project, I need to increase the amount of D-TCM from 64K to 128K. I have modified my linker script to do this (no problem), but now the device Hardfaults after reset. This is because the stack pointer is in the 'new' part of D-TCM which is not configured yet. I have configuration commands in my code (setting up GPR16 &amp;amp; GPR17), but it doesn't reach them because the crash is after the first PUSH instruction after Reset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, to fix it, I need to move my setting of GPR16 and GPR17 to before the first jump. To do this, I believe I need to change the DCD.&lt;/P&gt;&lt;P&gt;Currently the DCD is in evkmimxrt1020_sdram_ini_dcd.c, but it is in 'hex' form, so it is not clear what any of it does.&lt;/P&gt;&lt;P&gt;I could just experiment by adding commands to the end and see what happens, but it would be better if I could have a tool that creates this file from a template?, or the original source file with comments?, or something else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are we supposed to make our own DCD?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2019 15:31:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Creating-Device-Configuration-Data-for-iMXRT1021/m-p/974636#M4951</guid>
      <dc:creator>chriscowdery</dc:creator>
      <dc:date>2019-06-26T15:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Device Configuration Data for iMXRT1021</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Creating-Device-Configuration-Data-for-iMXRT1021/m-p/974637#M4952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you have to reconfigure the FlexRAM during the startup-code, the SystemInitHook Function would be a fine for that. For Detail how to configuration it, check the Application-Note AN12077&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12077.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN12077.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jun 2019 13:23:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Creating-Device-Configuration-Data-for-iMXRT1021/m-p/974637#M4952</guid>
      <dc:creator>Masmiseim</dc:creator>
      <dc:date>2019-06-28T13:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Device Configuration Data for iMXRT1021</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Creating-Device-Configuration-Data-for-iMXRT1021/m-p/974638#M4953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Markus,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thanks for your reply. That application note is useful - it confirmed a number of things for me.&lt;/P&gt;&lt;P&gt;There is another aspect which is not covered, and that is the debugger.&lt;/P&gt;&lt;P&gt;The problem is that the J-Link download from the IAR tools uses a small ELF file (C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.2\arm\config\flashloader\NXP\FlashiMXRT1020_EVK_FlexSPI.out). This code assumes a certain configuration (the default) of FlexRAM. When the processor is reset via the debugger, it retains the FlexRAM configuration.&lt;/P&gt;&lt;P&gt;Therefore, if my code alters the FlexRAM configuration, the &lt;EM&gt;next&lt;/EM&gt; time that I reset, the Debugger won't work. (It took me a while to figure this out!)&lt;/P&gt;&lt;P&gt;I believe the fix is to recompile the FlashIMXRT1050... project and use that, but I drew the line here at this point in time and decided to stick with the standard configuration.&lt;/P&gt;&lt;P&gt;This wasn't too hard because it turned out that the Linker configuration wasn't using the 128Kbyte of OCRAM. It set up 64K of D-TCM, and used that as the DATA segment. Nothing went into DATA2, so I just put some large buffers in there (e.g. Ethernet), which freed enough of the 64K to get me moving again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;SDK_ALIGN(uint8_t g_txDataBuff[ENET_TXBD_NUM][SDK_SIZEALIGN(ENET_TXBUFF_SIZE, APP_ENET_BUFF_ALIGNMENT)],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APP_ENET_BUFF_ALIGNMENT) @ "OCRAM";&lt;/P&gt;&lt;P&gt;Linker:&lt;/P&gt;&lt;P&gt;place in DATA2_region&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; { section OCRAM };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(note I am using IAR tools)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2019 08:02:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Creating-Device-Configuration-Data-for-iMXRT1021/m-p/974638#M4953</guid>
      <dc:creator>chriscowdery</dc:creator>
      <dc:date>2019-07-01T08:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Device Configuration Data for iMXRT1021</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Creating-Device-Configuration-Data-for-iMXRT1021/m-p/974639#M4954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don´t use IAR anymore (lucky me), but you can try to play with the reset options (reset with pin, etc).&lt;/P&gt;&lt;P&gt;In addition, IAR executes a macro after connect (*.mac&amp;nbsp; files), you can alter this files to reconfigure the TCM-Configurations to the needs of the Flash-Loader.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2019 05:21:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Creating-Device-Configuration-Data-for-iMXRT1021/m-p/974639#M4954</guid>
      <dc:creator>Masmiseim</dc:creator>
      <dc:date>2019-07-02T05:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Device Configuration Data for iMXRT1021</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Creating-Device-Configuration-Data-for-iMXRT1021/m-p/974640#M4955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good point Markus - thankyou. I had forgotten about the macro. That would be the more sensible way to 'fix' the limitations of the .out file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2019 06:23:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Creating-Device-Configuration-Data-for-iMXRT1021/m-p/974640#M4955</guid>
      <dc:creator>chriscowdery</dc:creator>
      <dc:date>2019-07-03T06:23:52Z</dc:date>
    </item>
  </channel>
</rss>

