<?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 Can't solve MCUX SDHC driver crashing in FreeRTOS. in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/Can-t-solve-MCUX-SDHC-driver-crashing-in-FreeRTOS/m-p/780525#M552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the FRDM-K64F board, MCUxpresso SDK, FreeRTOS and the SDHC driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a new project and have a FRTOS task that initialises the SD card and attempts to write a raw block of data to it, I am using the code from the "xxxx_driver_examples_sdcard_sdcard_freertos" SDK example which runs fine if I build that project to the K64F.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my new project, I am using an almost identical configuration as the example, yet my project crashes on a hard fault when attempting to write a block the SD card. SD card powers on and initialises fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the thread/stack frame list and highlighted the block of code where it crashes.&amp;nbsp;I have tried many fixes with ISR priorities and heap/stack sizes, and even when I use the same config as the example, it still crashes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only major difference is that my project is C++ using NewLibNano, and the example project is C RedLib.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jan 2018 12:28:34 GMT</pubDate>
    <dc:creator>minibix</dc:creator>
    <dc:date>2018-01-11T12:28:34Z</dc:date>
    <item>
      <title>Can't solve MCUX SDHC driver crashing in FreeRTOS.</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Can-t-solve-MCUX-SDHC-driver-crashing-in-FreeRTOS/m-p/780525#M552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the FRDM-K64F board, MCUxpresso SDK, FreeRTOS and the SDHC driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a new project and have a FRTOS task that initialises the SD card and attempts to write a raw block of data to it, I am using the code from the "xxxx_driver_examples_sdcard_sdcard_freertos" SDK example which runs fine if I build that project to the K64F.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my new project, I am using an almost identical configuration as the example, yet my project crashes on a hard fault when attempting to write a block the SD card. SD card powers on and initialises fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the thread/stack frame list and highlighted the block of code where it crashes.&amp;nbsp;I have tried many fixes with ISR priorities and heap/stack sizes, and even when I use the same config as the example, it still crashes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only major difference is that my project is C++ using NewLibNano, and the example project is C RedLib.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 12:28:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Can-t-solve-MCUX-SDHC-driver-crashing-in-FreeRTOS/m-p/780525#M552</guid>
      <dc:creator>minibix</dc:creator>
      <dc:date>2018-01-11T12:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Can't solve MCUX SDHC driver crashing in FreeRTOS.</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/Can-t-solve-MCUX-SDHC-driver-crashing-in-FreeRTOS/m-p/780526#M553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've narrowed it down and found that it is a read operation causing the issue. SD_ReadBlocks seems to be causing the issue (in my project, but not the example project).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SD_WriteBlocks and SD_EraseBlocks work fine...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 20:35:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/Can-t-solve-MCUX-SDHC-driver-crashing-in-FreeRTOS/m-p/780526#M553</guid>
      <dc:creator>minibix</dc:creator>
      <dc:date>2018-01-11T20:35:12Z</dc:date>
    </item>
  </channel>
</rss>

