<?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: FatFs: trying to use f_getcwd, Default ISR in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398048#M1355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestion. How do I increase the stack size in&amp;nbsp;LPCxpresso?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 May 2017 04:08:30 GMT</pubDate>
    <dc:creator>prachipanse</dc:creator>
    <dc:date>2017-05-15T04:08:30Z</dc:date>
    <item>
      <title>FatFs: trying to use f_getcwd, Default ISR</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398038#M1345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to use the following function to retrieve the current working directory: f_getcwd&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TCHAR *filename;&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; //Pointer to the buffer to receive the current directory string&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Get current working directory&lt;/P&gt;&lt;P&gt;fr = f_getcwd (filename,sizeof(filename));&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After stepping over this line, the software goes to Default ISR.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure if I am defining the buffer correctly, there really isn't an example I can follow.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has someone worked through this issue?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Neil &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 17:13:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398038#M1345</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2015-09-21T17:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: FatFs: trying to use f_getcwd, Default ISR</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398039#M1346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neil,&lt;/P&gt;&lt;P&gt;Is that default ISR a hard fault?&lt;/P&gt;&lt;P&gt;I suggest you find out where the it happens, e.g. with &lt;A href="http://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/" title="http://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/"&gt;Debugging Hard Faults on ARM Cortex-M&lt;/A&gt;&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>Mon, 21 Sep 2015 17:55:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398039#M1346</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-09-21T17:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: FatFs: trying to use f_getcwd, Default ISR</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398040#M1347</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;&lt;/P&gt;&lt;P&gt;I don't believe it is, I am pasting what the debugger is showing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ISR issue.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53636i7040F9BC3F831664/image-size/large?v=v2&amp;amp;px=999" role="button" title="ISR issue.jpg" alt="ISR issue.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Notice that its not showing the ISR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a picture of the actual spot:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ISR issue2.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53677iC47DF56A0015701F/image-size/large?v=v2&amp;amp;px=999" role="button" title="ISR issue2.jpg" alt="ISR issue2.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure if I'm declaring this correct or using it correctly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;//Get current working directory&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;fr = f_getcwd (filename,sizeof(filename));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 18:30:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398040#M1347</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2015-09-21T18:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: FatFs: trying to use f_getcwd, Default ISR</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398041#M1348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another hint after digging around a bit more:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ISR issue3.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53716i59EC90978F871A13/image-size/large?v=v2&amp;amp;px=999" role="button" title="ISR issue3.jpg" alt="ISR issue3.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that it comes from Reset_Handler......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure what or how this is happening???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 18:37:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398041#M1348</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2015-09-21T18:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: FatFs: trying to use f_getcwd, Default ISR</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398042#M1349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Outline only shows you the first match.&lt;/P&gt;&lt;P&gt;I still think you are running into a hard fault. Unless do you have a HardFault_Handler defined in your system (do you?).&lt;/P&gt;&lt;P&gt;Keep in mind that the default handlers are 'weak' (see line 356).&lt;/P&gt;&lt;P&gt;Bottom line: add that hardfault handler as outlined in my article so you know what is happening.&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>Mon, 21 Sep 2015 18:44:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398042#M1349</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-09-21T18:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: FatFs: trying to use f_getcwd, Default ISR</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398043#M1350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I am not using PE, how do I go about doing that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 18:46:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398043#M1350</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2015-09-21T18:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: FatFs: trying to use f_getcwd, Default ISR</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398044#M1351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simply add the 'Extended Handler' from &lt;A href="http://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/" title="http://mcuoneclipse.com/2012/11/24/debugging-hard-faults-on-arm-cortex-m/"&gt;Debugging Hard Faults on ARM Cortex-M | MCU on Eclipse&lt;/A&gt;&amp;nbsp;&amp;nbsp; to your application.&lt;/P&gt;&lt;P&gt;Instead of&lt;/P&gt;&lt;P&gt;&lt;CODE class="cpp plain"&gt;PE_ISR(Cpu_ivINT_Hard_Fault)&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;use&lt;/P&gt;&lt;P&gt;&lt;CODE class="cpp plain"&gt;void HardFault_Handler(void)&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 18:50:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398044#M1351</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-09-21T18:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: FatFs: trying to use f_getcwd, Default ISR</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398045#M1352</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;&lt;/P&gt;&lt;P&gt;I couldn't figure out how to do what you suggested, but I was to f_getcwd working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Declaration: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;char&amp;nbsp; filename[256];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second Function Call:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fr = f_getcwd (filename,sizeof(filename));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, the result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"1:/", '\0' &amp;lt;repeats 96 times&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOL....... that's not what I needed.&amp;nbsp; I was looking for the filename: "Log_Data.txt"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardless, Thank You for your help. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 21:59:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398045#M1352</guid>
      <dc:creator>neilporven</dc:creator>
      <dc:date>2015-09-21T21:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: FatFs: trying to use f_getcwd, Default ISR</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398046#M1353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am also seeing a similar error where the software goes to the HardFault_Handler() on using&amp;nbsp;f_getcwd() function. I have not defined anything in the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;void HardFault_Handler(void) routine. I am using the LPC1313 microcontroller with LPCOpen library.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Please suggest what may be done.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 10:59:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398046#M1353</guid>
      <dc:creator>prachipanse</dc:creator>
      <dc:date>2017-05-12T10:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: FatFs: trying to use f_getcwd, Default ISR</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398047#M1354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;keep in mind that FatFS needs more stack than without using FatFS. I suggest you increase the stack size.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 11:16:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398047#M1354</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2017-05-12T11:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: FatFs: trying to use f_getcwd, Default ISR</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398048#M1355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestion. How do I increase the stack size in&amp;nbsp;LPCxpresso?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 May 2017 04:08:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398048#M1355</guid>
      <dc:creator>prachipanse</dc:creator>
      <dc:date>2017-05-15T04:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: FatFs: trying to use f_getcwd, Default ISR</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398049#M1356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you please suggest to me how to increase the stack size in LPCxpresso?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 03:43:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FatFs-trying-to-use-f-getcwd-Default-ISR/m-p/398049#M1356</guid>
      <dc:creator>prachipanse</dc:creator>
      <dc:date>2017-05-18T03:43:14Z</dc:date>
    </item>
  </channel>
</rss>

