<?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: Problem with FreeRTOS, FatFS on FRDM-K22F in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-FreeRTOS-FatFS-on-FRDM-K22F/m-p/400617#M22219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thank you for the answer. Thanks a ton. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Aug 2015 07:19:00 GMT</pubDate>
    <dc:creator>vishalgirisagar</dc:creator>
    <dc:date>2015-08-03T07:19:00Z</dc:date>
    <item>
      <title>Problem with FreeRTOS, FatFS on FRDM-K22F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-FreeRTOS-FatFS-on-FRDM-K22F/m-p/400615#M22217</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;&amp;nbsp; I am trying to get a simple data logger up on FRDM-K22F. I am using KDS and Processor components. I have tried to simplify the problem to the best I can. Below are three scenarios. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; margin-bottom: 1.625em; color: #373737; background-color: #f6f6f6;"&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; FatFS with SDcard, HW en, Utility, Timeout, CS1, SPIMaster_Ldd, Generic Time Date.&lt;BR /&gt;These are the components.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; margin-bottom: 1.625em; color: #373737; background-color: #f6f6f6;"&gt;During Fat1Init, SD1_init(), Below function is called.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; margin-bottom: 1.625em; color: #373737; background-color: #f6f6f6;"&gt;void SD1_SPI_WRITE(unsigned char write) {&lt;BR /&gt;unsigned char dummy;&lt;BR /&gt;SD1_DataReceivedFlag = FALSE;&lt;BR /&gt;(void)SM1_ReceiveBlock(SM1_DeviceData, &amp;amp;dummy, sizeof(dummy));&lt;BR /&gt;(void)SM1_SendBlock(SM1_DeviceData, &amp;amp;write, sizeof(write));&lt;BR /&gt;while(!SD1_DataReceivedFlag){}&lt;BR /&gt;}&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; margin-bottom: 1.625em; color: #373737; background-color: #f6f6f6;"&gt;After that, I see the interrupt getting triggered. I have put break point in SM1_Interrupt.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; margin-bottom: 1.625em; color: #373737; background-color: #f6f6f6;"&gt;&lt;STRONG&gt;Everything in this scenario works fine. I can write, read to SD card. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: #f6f6f6;"&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt; Adding FreeRTOS component to the existing project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: #f6f6f6;"&gt;Interrupt does not get triggered at all.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #f6f6f6; color: #373737; font-size: 15px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;Everything gets screwed up as soon as I add FreeRTOS component. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #f6f6f6; color: #373737; font-size: 15px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;3. &lt;/STRONG&gt;&lt;SPAN style="color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: #f6f6f6;"&gt;Remove FreeRTOS component.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: #f6f6f6;"&gt;ISR is called.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #f6f6f6; color: #373737; font-size: 15px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"&gt;Again Everything starts working. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #373737; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; background-color: #f6f6f6;"&gt;This is weird. I do not have any clue what is happening. Can someone please please help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 08:41:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-FreeRTOS-FatFS-on-FRDM-K22F/m-p/400615#M22217</guid>
      <dc:creator>vishalgirisagar</dc:creator>
      <dc:date>2015-07-31T08:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with FreeRTOS, FatFS on FRDM-K22F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-FreeRTOS-FatFS-on-FRDM-K22F/m-p/400616#M22218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interrupts are disabled until you start the operating system. Therefore calling anything like FAT1_Init() which depends on interrupts will not work.&lt;/P&gt;&lt;P&gt;You need to call FAT1_Init from a task context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2015 08:47:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-FreeRTOS-FatFS-on-FRDM-K22F/m-p/400616#M22218</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-07-31T08:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with FreeRTOS, FatFS on FRDM-K22F</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-FreeRTOS-FatFS-on-FRDM-K22F/m-p/400617#M22219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erich,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thank you for the answer. Thanks a ton. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 07:19:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problem-with-FreeRTOS-FatFS-on-FRDM-K22F/m-p/400617#M22219</guid>
      <dc:creator>vishalgirisagar</dc:creator>
      <dc:date>2015-08-03T07:19:00Z</dc:date>
    </item>
  </channel>
</rss>

