| View previous topic :: View next topic |
| Author |
Message |
tinley
Joined: 09 May 2006 Posts: 69
|
|
Posted: Tue Sep 07, 2010 9:02 am |
|
|
| Douglas Kennedy wrote: | | Quote: | | IANAL, but the Microsoft patents are for long file name support, not FAT support. Avoid long file names and you should be fine. Note that the CCS library *does* include LFN support! |
Perhaps this could be true but it seems a flimsy thread to defend against a patent suit. Your honor we used all of their specifications except we used shorter file names that's why there is no patent infringement. Mr Edison we used all your ideas but we call it a lite bulb not the longer name light bulb.
Now a read only of FAT may be more defensible since nothing new is actually created. Anyway a letter from Microsoft authorizing royalty free use of FAT with short file names has to be the better approach. |
Thank you for your input, but this is somewhat off topic!!! |
|
 |
tinley
Joined: 09 May 2006 Posts: 69
|
|
Posted: Tue Sep 07, 2010 9:34 am |
|
|
| newguy wrote: | | tinley wrote: | | newguy wrote: | Since you mentioned that you're willing to pay for a solution, google "brush electronics". That site sells a complete FAT SD card file system/hardware driver, written for the CCS compiler.
I'm a very satisfied customer - it just works, right "out of the box." |
Unfortunately not for a PCD compiler??? |
It will work for the PCD compiler too.
....Whether PCD will generate useable code at this point in time is debateable, however. |
Thank you. I will email Brush and ask then, but it specifically states C30 compiler on their website... but maybe a C30 compiler is the best way forward anyway! |
|
 |
newguy
Joined: 24 Jun 2004 Posts: 1946
|
|
Posted: Tue Sep 07, 2010 9:55 am |
|
|
| tinley wrote: |
Thank you. I will email Brush and ask then, but it specifically states C30 compiler on their website... but maybe a C30 compiler is the best way forward anyway! |
I really don't know what you're looking at. http://www.smallridge.com.au/#SDFS Scroll down. First on the list, "SD/MMC Driver and File System Source Code for CCS PIC18F"
It will work for 18F and up (24F, 30F etc) processors. |
|
 |
tinley
Joined: 09 May 2006 Posts: 69
|
|
Posted: Tue Sep 07, 2010 10:10 am |
|
|
| newguy wrote: | | tinley wrote: |
Thank you. I will email Brush and ask then, but it specifically states C30 compiler on their website... but maybe a C30 compiler is the best way forward anyway! |
I really don't know what you're looking at. http://www.smallridge.com.au/#SDFS Scroll down. First on the list, "SD/MMC Driver and File System Source Code for CCS PIC18F"
It will work for 18F and up (24F, 30F etc) processors. |
Have you tried it with a 30F?
Why do they stipulate 18F if it will work with 18F and upwards?
They say they have three versions:
System Source Code for CCS PIC18F
System Source Code for C18
System Source Code for C30
No mention of CCS dsPIC30F! Is it not logical to assume it won't work with 30F's??? |
|
 |
newguy
Joined: 24 Jun 2004 Posts: 1946
|
|
Posted: Tue Sep 07, 2010 10:29 am |
|
|
Please take my word for it, as a current customer, that the source code available for purchase will port to a 30F.
The only possible area where you may have trouble is with setting up the SPI module within the 30F, as I'm pretty sure that I've seen PCD users posting here regarding some of the built-in functions.....such as setup_spi(), among others. This isn't an issue with the SD driver in question, it's an issue with CCS's PCD compiler.
C code is c code. Take away the hardware specific stuff (and there sure isn't much, if any, of that in the driver we're talking about), and whatever runs on one platform will run on another.
I'll let the author take over now. He'll be able to allay your concerns much better than I. |
|
 |
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Tue Sep 07, 2010 12:24 pm |
|
|
| I was basically able to port the brushelectronics FATM C30 to PCD and have it working in a product. As any complex application, that involves a considerable amount of int32 and pointer operations, it revealed some previously undetected PCD bugs. The FATM driver itself is operating well. |
|
 |
tinley
Joined: 09 May 2006 Posts: 69
|
|
Posted: Wed Sep 08, 2010 2:01 am |
|
|
Thanks FvM,
So you are the customer that Andrew from Brush said had managed to port his code after he had given up then! Well done!
I just don't have the time to do this myself. I need an off the shelf solution since the CCS code/compiler has let me down.
So how do I go about getting this working code whilst keeping everybody happy? How about you sell it back to Brush and I buy it from them???
My other option at this stage is to purchase the C30 compiler...  |
|
 |
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Wed Sep 08, 2010 3:37 am |
|
|
| I already agreed to giving the modified code to Andrew. But I also applied some changes related to my application enviroment rather than PCD itself, so I intended to make a "clean" port. Perhaps I should give the code to Andrew as is to speed up everything. |
|
 |
andrewg
Joined: 17 Aug 2005 Posts: 316 Location: Perth, Western Australia
|
|
Posted: Wed Sep 08, 2010 8:44 am |
|
|
I don't know if this helps, but I found this FAT implementation yesterday:
http://elm-chan.org/fsw/ff/00index_e.html
I haven't used it. What it seems to be missing is an implementation of the block level I/O, but that looks simple enough - the CCS mmcsd.c library could be used. _________________ Andrew |
|
 |
asmallri
Joined: 12 Aug 2004 Posts: 1680 Location: Perth, Australia
|
|
Posted: Sat Sep 11, 2010 7:26 pm |
|
|
| FvM wrote: | | I already agreed to giving the modified code to Andrew. But I also applied some changes related to my application enviroment rather than PCD itself, so I intended to make a "clean" port. Perhaps I should give the code to Andrew as is to speed up everything. |
OK, If you send the ported code to me I will extract the extract the bits.
Regards, Andrew _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
 |
asmallri
Joined: 12 Aug 2004 Posts: 1680 Location: Perth, Australia
|
|
Posted: Sat Sep 11, 2010 7:44 pm |
|
|
| newguy wrote: | Please take my word for it, as a current customer, that the source code available for purchase will port to a 30F.
The only possible area where you may have trouble is with setting up the SPI module within the 30F, as I'm pretty sure that I've seen PCD users posting here regarding some of the built-in functions.....such as setup_spi(), among others. This isn't an issue with the SD driver in question, it's an issue with CCS's PCD compiler.
C code is c code. Take away the hardware specific stuff (and there sure isn't much, if any, of that in the driver we're talking about), and whatever runs on one platform will run on another.
I'll let the author take over now. He'll be able to allay your concerns much better than I. |
Sorry for joining the thread late. I was traveling on the east coast of Malaysia last week and did not have internet connectivity.
The existing Brush Electronics file system driver for the CCS compiler supports only the PIC18 family. While in theory it should have been be a simple port, bugs that existed in the early versions of the PCD compiler prevented it from being so. The port to PCD requires changes to the SPI initialization functions in the low level media_io driver and also requires changes to the pointer operations used in the basic boot sector discover function used to determine the layout of the file system on the media. The existing driver uses byte aligned pointer operations, the PIC24 / dsPIC33 requires these operations to be word aligned otherwise an exception will be generated by the PIC.
Our driver does NOT support LFN nor formatting the media. New media comes formatted. _________________ Regards, Andrew
http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!! |
|
 |
|