CY8CPROTO-062-4343W Card_Detect is connect to P13_5 but can only select P12_1 in MTB1.1

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

cross mob
Ray_Liang
Employee
Employee
50 sign-ins 10 questions asked 5 likes given

Hi ,

I found that the CY8CPROTO-062-4343W DVK have the TF card reader. The HW selection is using P13_5 (R61 default) as Card_Detect, but in the MTB1.1 Device Configure and Pinout of Card_Detect is P12_1 (R62 NC).

Do I need to change the resistor to R62 by hand work?

Regards,

Ray

0 Likes
1 Solution
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Yes your right. ModusToolbox doesn't allow selection of P13_5 even though its the one thats loaded. Not sure why, but needs to be fixed. Please populate the resistor R62 and unpopulate R61 and use P12_1 for now.

Also, note that you need not assign any pin for card detect in the configurator. In the firmware you can use any GPIO custom pin for Card Detect. Add the SD Host driver Cy_SD_Host_IsCardConnected() function with the __WEAK type to your code. This function could read the value from any GPIO pin and return true when the card is connected.

Regards,

Dheeraj

View solution in original post

2 Replies
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

Yes your right. ModusToolbox doesn't allow selection of P13_5 even though its the one thats loaded. Not sure why, but needs to be fixed. Please populate the resistor R62 and unpopulate R61 and use P12_1 for now.

Also, note that you need not assign any pin for card detect in the configurator. In the firmware you can use any GPIO custom pin for Card Detect. Add the SD Host driver Cy_SD_Host_IsCardConnected() function with the __WEAK type to your code. This function could read the value from any GPIO pin and return true when the card is connected.

Regards,

Dheeraj

Dheeraj,

Thanks for clarificaiton.

Regards,

Ray

0 Likes