Andy4495 / TI_Platform_Cores_For_Arduino

Replace Energia with Arduino. Use the Arduino IDE or CLI with Texas Instruments processors in the MSP430, MSP432, and Tiva families using the Arduino Boards Manager.
Other
30 stars 5 forks source link

Ship SD library? #8

Open jscrane opened 2 weeks ago

jscrane commented 2 weeks ago

A lot of Arduino cores ship with a builtin SD library these days (e.g., esp32, esp8266, rp2040).

Would it be possible to add this one?

Thanks, Steve

Andy4495 commented 2 weeks ago

Yes, I'll look into it.

It may take me a few days...

Andy

Andy4495 commented 1 week ago

After looking at the licenses, I don't think that I can incorporate the SD_TM4C library into the TI cores:

SD_TM4C is licensed per Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

The TI cores are licensed under LGPL, but this is incompatible with both GPLv3 and CC BY-NC-SA.

So, I don't think I can distribute the library with the cores.

However, the SdFat library that all of these are based on is now MIT licensed, which would allow distribution with the cores. I'll take a look at that one more closely and see if it can be adapted to the TI processors.

Andy

jscrane commented 1 week ago

I had a quick look at SdFat and it's good that it's still under development (and that it has a compatible license).

It wasn't clear to me whether its API was compatible with the Arduino SD. From this discussion it seems it isn't.

Perhaps this isn't an issue? I guess there is also the possibility of putting an SD-like wrapper around the newest SdFat, since this is what Arduino seems to have done...