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

cross mob
shankaragurur_5
Employee
Employee
25 sign-ins 5 replies posted First reply posted

Need working code example with psoc creator for reading data from SDCARD where uses Psoc6

 

Thanks in advance 

0 Likes
9 Replies

@RodolfoGL ,

I believe @shankaragurur_5 was asking for a PSoC Creator example.

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

@shankaragurur_5 ,

It appears Infineon does not plan to support emFile using PSoC Creator.

Here is a link to a similar question which contains Infineon's answer:  Latest-update-on-emFile-for-PSoC-6 

It looks like you will need to migrate to MTB to support SDCARD access on a PSoC6.

Len
"Engineering is an Art. The Art of Compromise."
0 Likes
shankaragurur_5
Employee
Employee
25 sign-ins 5 replies posted First reply posted

I have tried with Modus toolbox MTB_FAT_Fs , FreeRTOS, FatFs and emfilesystem,liitlefs,emUSBfilesystem,emUSB-audio recorder none of the code example worked PsoC-62 poineerkit ,

->All above example SDcard failed to read the directory 

->No where in code I cant see the link SPI -line defined 

-> if I enable SPI (MISO,MOSI,SCK,CS)  on P12, using SCB6 , no where its links where its defined 

-> tried with psoc CY8KIT-06243012 as well  results is  same as above 

-> Even tried with NOR SPI flash and SDCARD

 

->if i need to use SPI line ,which pins to be used in PSOC-62-BLE kit , and which interface should be enable whether SCB6, or SDHC or anything else 

->Please help , its really working examples are not 

Please Help !!

 

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I found an old SDC sample for PSoC 6 BLE which someone else wrote,
and I ported it to PSoC 6 BLE Pioneer Kit (CY8CKIT-062-BLE).

And for the SD Card Interface, I used an Adafruit 2.8 "  TFT Touch Shield for Arduino with Resistive Touch Screen
https://www.adafruit.com/product/1651

The Tera Term log was something like
Note: The SD Card was written by Mac, so there are unusual files.

001-TeraTerm-log.JPG

Schematic

002-schematic.JPG

Pins

003-Pins.JPG

moto

 

 

0 Likes
shankaragurur_5
Employee
Employee
25 sign-ins 5 replies posted First reply posted

@MotooTanaka  Thanks a lot , Even I tried with exactly same example but vcc is connected to 5v . its not working consistently , it  always failed to  read directory 

@MotooTanaka  , If you have any working example with Modous toolbox ,it would be great 

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,
The shield I'm using uses 74HC4050 to convert 5V signals to 3V signals (for SD & MMC).

adafruit_products_tftshieldv2.png

If you have any working example with Modous toolbox ,it would be great 
My response was for the title "Need working code example with psoc creator ..."
If you also need example(s) for MTB, I strongly recommend you to create a new discussion 
in the ModusToolbox forum, especially PSoC 6 SDK.

moto

0 Likes
shankaragurur_5
Employee
Employee
25 sign-ins 5 replies posted First reply posted

@MotooTanaka  thanks 

I do not have adafruit sdcard  shield , i bought regular SDcard reader from amazon which has regulator in it which converts 5v to 3V 

created following discussion 

https://community.infineon.com/t5/PSoC-6/facing-error-while-reading-data-from-file-from-SDcard/td-p/...

 

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I'm sorry that I was not clear.

I suggested to creat a new discussion if you want to ask for a MTB working sample.

Error issue with 3V/5V SDCARD is another story. If you are using PSoC Creator for the test,
we can discuss here.

Meantime, reading your new discussion, I noticed that you are using 8GB SDCARD,
but if I remeber correct, older Fat File System might have limiation of 4GB per volume.
So can you try with smaller SDCARD?
I used a 4GB SDCARD. 4GB or smaller may work.

moto

0 Likes