I'm trying to get an SD card that's designed to be used with Arduino on a Texas Instruments Hercules Launchpad.
The SD card breakout board is of Chinese make. it's part of a package of Arduino gizmos I bought second hand from the web (The packet contained two
cards - I sold one)
I know the SD shield is working. I tested it on an Arduino.
My plans are to get it working on a TI TMS570. Not because I need it, but it's a nice hook to dig deeper into working with the ARM Cortex microcontroller.
I'm not yet sure if I'll use the SPI or MIBSPI driver of my processor. I'll keep all options open.
What have I done so far:
- I've created a custom 'boosterpack' from a proto-PCB that can be plugged onto the LaunchPad. Because the LaunchPad has male headers, it's not a straightforward exercise to use it for breadboarding.
- I've tested if the signals are appearing on the right pins by using one of
TI's example applications from their e2e.ti forum. I changed the example to match my processor (it was for an RM42x), and to use a different chip-select pin. The CS0 from the original example is not available as a boosterpack breakout pin.
- I measured SCLK (I falsely called it system clock in the video), CS and MOSI with my (previous millennium early digital/analog PM 3305) Philips oscilloscope and with an Arduino as logic analyzer - just for kicks
Next step is to compile a SD library (most likely FatFs) and adapt it for this processor. I will try to maximize the use of the HALCoGen generated SPI/MIBSPI API.