<?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: OM13098 SD-RAM issues ... in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/OM13098-SD-RAM-issues/m-p/1093420#M41886</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;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I am not sure what those values may have referred to.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;My "issue" was that the debugger (memory view at 0xA000.0000) did show seemingly correct values (at 16 bit writes).&lt;/P&gt;&lt;P&gt;After another write to the EMC (different address),the previous value was reset to zero.&lt;/P&gt;&lt;P&gt;I suppose the EMC interface has some transparent caching mechanism that fooled the debugger - I might need to study the appropriate MCU manual section in detail ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Aug 2020 05:58:57 GMT</pubDate>
    <dc:creator>frank_m</dc:creator>
    <dc:date>2020-08-24T05:58:57Z</dc:date>
    <item>
      <title>OM13098 SD-RAM issues ...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/OM13098-SD-RAM-issues/m-p/1093416#M41882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having a bit of a difficulty with the external SDRAM on the OM13098 board (LPC54628).&lt;BR /&gt;My application is basically an event recorder, that samples a fixed amount of input data for a certain time, and stores them to SD card afterwards. For size reasons, I want to store the input data in SDRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first, less elegant approach was to assign a fixed address (0xA000.0000) to a pointer variable.&lt;BR /&gt;That works partially, but I'm having some strange problems.&lt;BR /&gt;The input data (several channels) are gathered via ADC interrupt, and written to the SDRAM buffer.&lt;BR /&gt;If I step &lt;STRONG&gt;&lt;EM&gt;into&lt;/EM&gt;&lt;/STRONG&gt; the interrupt handler, I can see plausible values, and they are written to the proper SDRAM addresses (checked in the debugger).&lt;BR /&gt;If I step &lt;EM&gt;&lt;STRONG&gt;over&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;the data collection function (which just enables the trigger for timer &amp;amp; ADC, and waits for a ready flag), the SDRAM buffer is empty afterwards, i.e. contains the all-zero initialisation values (check the "Memory" view in the debugger, set to the given address).&lt;BR /&gt;Respective data types are all "volatile". &lt;BR /&gt;To debug and test other parts, I use the internal RAM temporarily, which is filled to 80% ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, checking the MCUXpresso help, there seems a more elegant way I currently explore.&lt;BR /&gt;When including cr_section_macros.h, I can use the sections provided in the linker script, which already include the SDRAM.&lt;BR /&gt;Since the SDRAM does not "exist" during startup, I need the __NOINIT macro, I suppose.&lt;BR /&gt;So, something like this:&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;__NOINIT(BOARD_SDRAM) uint16_t my_buffer[SIZE];&lt;/SPAN&gt;&lt;BR /&gt;Confusingly, the map file contains (empty) sections for SD_RAM code and data which are &lt;EM&gt;&lt;STRONG&gt;not&lt;/STRONG&gt;&lt;/EM&gt; ".noinit".&lt;BR /&gt;Wouldn't such initialisations fail catastrophically if no EMC/SDRAM init preceded the startup memory initialisation ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps someone experienced with the MCUXpresso toolchain can shed some light on this issue.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Frank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 13:32:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/OM13098-SD-RAM-issues/m-p/1093416#M41882</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2020-07-27T13:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: OM13098 SD-RAM issues ...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/OM13098-SD-RAM-issues/m-p/1093417#M41883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems I fell into the ad-hoc project generation trap again.&lt;/P&gt;&lt;P&gt;The SDRAM example from the SDK worked fine, so I knew it's not the hardware.&lt;/P&gt;&lt;P&gt;My current project is derived from the SD/FatFS example.&lt;/P&gt;&lt;P&gt;So, I copied the EMC init code, but&amp;nbsp;forgot about the pin mux initializations ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 11:38:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/OM13098-SD-RAM-issues/m-p/1093417#M41883</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2020-07-28T11:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: OM13098 SD-RAM issues ...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/OM13098-SD-RAM-issues/m-p/1093418#M41884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adding the proper pin mux initialisation helps, the application than works as expected.&lt;/P&gt;&lt;P&gt;I still don't fully understand what the debugger had been showing me. Writing three 16-bit words in short succession to the SDRAM, the debugger (memory window at 0xA000.0000) showed a proper value directly after one write.&lt;/P&gt;&lt;P&gt;But with the write to the next address, the value was "gone", i.e. changed to zero.&lt;/P&gt;&lt;P&gt;Perhaps the EMC peripheral is routed via an internal buffer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 14:55:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/OM13098-SD-RAM-issues/m-p/1093418#M41884</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2020-07-29T14:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: OM13098 SD-RAM issues ...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/OM13098-SD-RAM-issues/m-p/1093419#M41885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad that you were able to resolve the issue. I am not sure what those values may have referred to.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If its possible to reproduce on the evaluation board please share your project. Include&amp;nbsp; the changes before and after you are seeing this and what memory range you were able to see values.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2020 16:55:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/OM13098-SD-RAM-issues/m-p/1093419#M41885</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2020-07-30T16:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: OM13098 SD-RAM issues ...</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/OM13098-SD-RAM-issues/m-p/1093420#M41886</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;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I am not sure what those values may have referred to.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;My "issue" was that the debugger (memory view at 0xA000.0000) did show seemingly correct values (at 16 bit writes).&lt;/P&gt;&lt;P&gt;After another write to the EMC (different address),the previous value was reset to zero.&lt;/P&gt;&lt;P&gt;I suppose the EMC interface has some transparent caching mechanism that fooled the debugger - I might need to study the appropriate MCU manual section in detail ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2020 05:58:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/OM13098-SD-RAM-issues/m-p/1093420#M41886</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2020-08-24T05:58:57Z</dc:date>
    </item>
  </channel>
</rss>

