emFile compiling but not working

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
GeJo_4320246
Level 1
Level 1
First like received First like given

Hi,

Here what I use in this project :

  • 'PSoC 5LP CY8C5888LT*-LP097' Prototyping kit
  • 2Go Micro SD transcend card
  • microSD click from Mikroe
  • SD Card Formatter and/or Formatter from Windows 10
  • UART (named UARTGPS because of my project) communication with Termite 3.4  instead of LCD in the example.
  • Default configuration for emFile in TopDesign
  • Tried FAT16 and FAT32
  • tried with pins 2[3:6] then 12.0 12.4 12.3 12.2

My code compile without error,

But in the end, it just does nothing, and it seems that it doesn't even see the sd card. It only displays a generic name "mmc:0" which is why I changed the SD card name to "UMTS" to be sure it was not working.

Here I link the schematics for my SD card Reader : https://download.mikroe.com/documents/add-on-boards/click/microsd/microsd-click-schematic.pdf

And all the information : https://www.mikroe.com/microsd-click

Intersting fact that might be a lead : I measured voltage with a voltmeter (DC mode) and I couldn't measure anything except for CS pin

0 Likes
1 Solution

Geoffrey,

I believe I solved both yours and my problem.

Your main() left out the

CyGlobalIntEnable; /* Enable global interrupts. */

Once I inserted it early in the initialization, my SPI communication lines to the SD begin working.

Note:  I'm still having difficulty formatting and other FS functions but I can see the SPI is working now.

Does anyone have access to the FS API calls?  [Update] Never mind.  Found it!

Len

Len
"Engineering is an Art. The Art of Compromise."

View solution in original post

0 Likes
19 Replies