Problem with sd card - SD_COMMAND_TIME_OUT

26 views
Skip to first unread message

MA - CM

unread,
Jan 18, 2021, 12:45:50 PM1/18/21
to jallib

The sd_card.jal library works for me in the simulation, but in the circuit I get the message: SD_COMMAND_TIME_OUT. I have tried many things and I am about to give up on this, please if someone can help me.

Rob CJ

unread,
Jan 19, 2021, 6:51:02 AM1/19/21
to jal...@googlegroups.com
Hi,

Is it possible to send a program that you are using that has this problem, preferably stripped down to a version that shows the issue (if not the whole program but that makes analysis more difficult)?

Since Google Groups does not accept .jal attachments (I think), rename it first to .txt so that you can send it.

Thanks.

Kind regards,

Rob

Van: jal...@googlegroups.com <jal...@googlegroups.com> namens MA - CM <maacue...@gmail.com>
Verzonden: maandag 18 januari 2021 16:42
Aan: jallib <jal...@googlegroups.com>
Onderwerp: [jallib] Problem with sd card - SD_COMMAND_TIME_OUT
 

The sd_card.jal library works for me in the simulation, but in the circuit I get the message: SD_COMMAND_TIME_OUT. I have tried many things and I am about to give up on this, please if someone can help me.

--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/5fb3a644-4a83-4e3d-b5a5-ac00bc8fb395n%40googlegroups.com.

Matthew Schinkel

unread,
Jan 19, 2021, 11:31:10 AM1/19/21
to jallib
First try another SD card that is a different size. What size of card are you using?

What circuit are you using to connect the SD card?

How do you simulate?

Matt.

MA - CM

unread,
Jan 19, 2021, 1:04:49 PM1/19/21
to jal...@googlegroups.com
Hello
Thanks for your attention. The circuit I use is the generic adapter that is commercially available. I was able to verify that it was working because as a response from the SD I receive the hexadecimal of "response" through print_byte_hex (serial_data, response) found in the sd_init () procedure. Additionally when I do not introduce memory in the socket. I get the message: "SD_DEVICE_NOT_FOUND"
I have done tests with 2GB, 4GB and 16GB memories. The response hexadecimal changes but the reported error remains the same.

I am only implementing the SD example for the 16f877a, i attach it, i will try it with extension .jal


You received this message because you are subscribed to a topic in the Google Groups "jallib" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jallib/f3dPXQzvEUI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jallib+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/b264045d-580f-4212-8cff-2c3ee665c242n%40googlegroups.com.
16f877a_sd_card.jal

Mike

unread,
Jan 20, 2021, 5:01:30 PM1/20/21
to jallib
Be sure that you are using a proper adapter.  Some have the necessary voltage level shifting and others have nothing.  If you send 5V power, and signals, to an SD card you will kill it.  I have done it.

-Mike

MA - CM

unread,
Jan 21, 2021, 10:12:32 AM1/21/21
to jal...@googlegroups.com
I really appreciate the attention to Rob and Mike, I will continue to work on this by applying their recommendations. They are very friendly and it has been very nice to know that you can count on their help.

Matt Schinkel

unread,
Jan 21, 2021, 10:40:54 AM1/21/21
to jal...@googlegroups.com
We try to help but more information would be useful. At what point in the code do you get the error SD_DEVICE_NOT_FOUND?

Matt.

Sent from my Android device.


From: jal...@googlegroups.com <jal...@googlegroups.com> on behalf of MA - CM <maacue...@gmail.com>
Sent: Thursday, January 21, 2021 10:12:20 AM
To: jal...@googlegroups.com <jal...@googlegroups.com>
Subject: Re: [jallib] Problem with sd card - SD_COMMAND_TIME_OUT
 
Reply all
Reply to author
Forward
0 new messages