<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=4&amp;t=5480&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2014-01-09T09:25:36+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=5480&amp;mode</id>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2014-01-09T09:25:36+01:00</updated>
<published>2014-01-09T09:25:36+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=5480&amp;p=64367#p64367</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=5480&amp;p=64367#p64367"/>
<title type="html"><![CDATA[Re: Jak włączyć LFN w FAT_FS ???]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=5480&amp;p=64367#p64367"><![CDATA[
<div class="quotetitle">programek napisał(a):</div><div class="quotecontent"><br />Czy mogę użyć tego???? bo w folderze avr nie było???<br /></div><br /><br />no a jak myślisz ? <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /> zajrzyj do środka - sprawdź co jest i sam pomyśl czy możesz użyć czy nie <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><br /><br />ja tego pliku sam nie napisałem - jest od autora tylko trzeb poszperać po jego stronie<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 9 sty 2014, o 09:25</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[programek]]></name></author>
<updated>2014-01-09T06:39:48+01:00</updated>
<published>2014-01-09T06:39:48+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=5480&amp;p=64356#p64356</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=5480&amp;p=64356#p64356"/>
<title type="html"><![CDATA[Re: Jak włączyć LFN w FAT_FS ???]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=5480&amp;p=64356#p64356"><![CDATA[
<div class="quotetitle">mirekk36 napisał(a):</div><div class="quotecontent"><br />trzeba dołączyć do kompilacji jeszcze plik z definicjami (kodowaniem znaków), dokładnie to interesuje cię ten: <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><br /><br />ccsbcs.c<br /></div><br /><br />Szukałem tego pliku: ccsbcs.c i znalazłem go na płycie do bluebooka, tylko że w folderze  FatFs ver R0.08a / pic/ option...... Czy mogę użyć tego???? bo w folderze avr nie było???<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1526">programek</a> — 9 sty 2014, o 06:39</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2014-01-08T21:47:00+01:00</updated>
<published>2014-01-08T21:47:00+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=5480&amp;p=64319#p64319</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=5480&amp;p=64319#p64319"/>
<title type="html"><![CDATA[Re: Jak włączyć LFN w FAT_FS ???]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=5480&amp;p=64319#p64319"><![CDATA[
trzeba dołączyć do kompilacji jeszcze plik z definicjami (kodowaniem znaków), dokładnie to interesuje cię ten: <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><br /><br />ccsbcs.c<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 8 sty 2014, o 21:47</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[programek]]></name></author>
<updated>2014-01-08T21:18:54+01:00</updated>
<published>2014-01-08T21:18:54+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=5480&amp;p=64316#p64316</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=5480&amp;p=64316#p64316"/>
<title type="html"><![CDATA[Jak włączyć LFN w FAT_FS ???]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=5480&amp;p=64316#p64316"><![CDATA[
Witam... <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><br />Mecze się już kilka godzin jak włączyć długie nazwy plików w FAT_FS....<br /><br />Znalazłem w pliku ffconf.h taki fragment:<br /><br />[syntax=c]#define_USE_LFN0/* 0 to 3 */<br />#define_MAX_LFN128/* Maximum LFN length to handle (12 to 255) */<br />/* The _USE_LFN option switches the LFN support.<br />/<br />/   0: Disable LFN feature. _MAX_LFN and _LFN_UNICODE have no effect.<br />/   1: Enable LFN with static working buffer on the BSS. Always NOT reentrant.<br />/   2: Enable LFN with dynamic working buffer on the STACK.<br />/   3: Enable LFN with dynamic working buffer on the HEAP.<br />/<br />/  The LFN working buffer occupies (_MAX_LFN + 1) * 2 bytes. To enable LFN,<br />/  Unicode handling functions ff_convert() and ff_wtoupper() must be added<br />/  to the project. When enable to use heap, memory control functions<br />/  ff_memalloc() and ff_memfree() must be added to the project. */[/syntax]<br /><br />Z tego co rozumiem to aby włączyć to LFN trzeba ustawić wartość _USE_LFN na 1,2 lub 3, a następnie dodać do projektu funkcje: ff_convert() i ff_wtoupper().<br />Gdzie są te funkcje???? Przeszukiwałem wszystkie pliki FATa (może trochę niedokładnie) i ich nie znalazłem. Szukałem też trochę na stronie : <a href="http://elm-chan.org/"  class="postlink">http://elm-chan.org/</a> ale tam też nic nie znalazłem <img src="https://forum.atnel.pl/images/smilies/icon_e_sad.gif" alt=":(" title="Smutny" /><br /><br />Gdy zmienię wartość _USE_LFN na 1 i próbuję to skompilować to w consoli wyskakuje mi coś takiego:<br /><br />**** Build of configuration Release for project 15_TEST_FAT_FS ****<br /><br />make all <br />Building target: 15_FAT_FS.elf<br />Invoking: AVR C Linker<br />avr-gcc -Wl,-Map,15_FAT_FS.map -mmcu=atmega32 -o &quot;15_FAT_FS.elf&quot;  ./FatFS/ff.o ./FatFS/mmc.o  ./main.o ./uart.o ./xitoa.o   <br />./FatFS/ff.o: In function `get_fileinfo':<br />ff.c:(.text+0x3196): undefined reference to `ff_convert'<br />./FatFS/ff.o: In function `dir_find':<br />ff.c:(.text+0x364c): undefined reference to `ff_wtoupper'<br />ff.c:(.text+0x3668): undefined reference to `ff_wtoupper'<br />./FatFS/ff.o: In function `follow_path':<br />ff.c:(.text+0x3858): undefined reference to `ff_convert'<br />ff.c:(.text+0x3a28): undefined reference to `ff_wtoupper'<br />ff.c:(.text+0x3a30): undefined reference to `ff_convert'<br />make: *** [15_FAT_FS.elf] Error 1<br /><br />**** Build Finished ****<br /><br />Może ktoś już używał LFN i mógłby mi napisać jak to ustawić???? Bardzo proszę o pomoc...<br /><br />Z góry dzięki <img src="https://forum.atnel.pl/images/smilies/icon_e_biggrin.gif" alt=":D" title="Bardzo szczęśliwy" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1526">programek</a> — 8 sty 2014, o 21:18</p><hr />
]]></content>
</entry>
</feed>