Problem in accessing Memory Card through MicroSD Adapter

Go To Last Post
19 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Myself Sumanta Kumar Show is facing a problem

regarding accessing a Memory card within MICROSD

Adapter in a MICROSD Atmega32 Data-Logger. Please find

the circuit in the Attachment where it is used. I have

made all the connections according to the circuit

diagram. Can you please give suggestions about how this

problem can be solved.

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi
exactly what is your problem ?, programming the mcu or reading/writing to the micro sd.

stephen

Codevisionavr & Avrstudio 4.18
Easyavr5A-Jtagicemk1

Call me Pedantic, But not after 9.

if Milk_Brilliant
else Codevision_Avrs==Better

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

The problem is occurring in identifying the memory

card in HYPERTERMINAL software. The HEX file is

properly burned into the microcontroller. But when I am

powering it on according to the circuit with push

button being pressed hyperterminal should detect a

memory card. But that is not getting accessed. Instead

of that the RED LED is blinking indicating that there

is error in accessing the card. I am trying to find but

yet not found out the cause of the problem as the

connection are all ok. Please check it and suggest if

anything can be done to solve the problem.

Sumanta

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I read this note on the eXtreme electronics site about their microSD data logger....

NOTE: This product is for advanced users only. As this board does not has much of magic (its just electrical no software) we cannot help the users in anyway during their experiment.

NOTE: 16GB MicroSD Card shown in the image is NOT included.

But there WAS a link there too.

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

Actually I am using 4GB memory card and have fixed

in the Bredboard through wires instead of using MICROSD

Module connector. Can u tell me how the settings of

baud rate in Avr studio4 can be done for ATNEGA32 so

that can be in synchronous with the Baud rate settings

in Hyperterminal for the memory card to be detected by

the Hyperterminal software. Waiting for your

suggestions.

Sumanta

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Please stick to ONE thread, I have deleted the others on the same subject.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

yes surely. Can you be able to give some suggestions regarding solving the problem that I have posted.

Sumanta

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Don't really understand your questions regarding baudrate.
Here's a couple of documents and a link that might help you to understand how SD cards work.
http://elm-chan.org/docs/mmc/mmc...

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You are using the eXtreme electronics sd card module I assume? It has the spi pins in a connector so you can plug it into an avr board I suppose. If the avr board has an RS232 connector, you can talk to the AVR board using hyperterminal, but you need a big fat file system program to talk to the sd card module. Am I describing your setup correctly?

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am using extreme electronics burner to burn the

program into the microcontroller. I have not used the

MICROSD module connector, but instead of that I have

soldered pins on the adapter and fixed it in the

Bredboard. Then its connections are done according as

shown in the figure. Can you please help me to sort out

the problem. Hoping to get your response.

Sumanta

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

Are there any driver file required to be installed

so that the microcontroller is able to detect the

memory card and able to display it in the HYPERTERMINAL

software through RS232 port connection.

Sumanta

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Which microcontroller board do you have? Does it have an RS232 connection? This board is separate from the eXtreme electronics sd card board, correct? Which AVR does it use?

Imagecraft compiler user

Last Edited: Mon. May 7, 2012 - 02:38 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Actually I am using ATmega microcontroller chip. It is connected to a MAX232 drivers/receivers chip which has an RS232 connection interfacing with the PC. The memory card through Adapter is connected with the microcontroller.You are right that the extreme electronics SD card board is separate which is only used for burning the program into the microcontroller. Please check the circuit diagram in my first post.

Currently I am using AVR STUDIO4 as the prgramming software. Can u give some idea how to write programs for drivers so that microcontroller may detect the memory card. Please have your suggestions regarding solving the problem.

Sumanta

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You need source code for a 'fat file system'. There is one on the elm-chan site. It is probably compiler specific. Are you using the gcc compiler or the codevision compiler? I thnk cv has a file system module in their latest release. I thought the extreme electronics sd card module had to be connected using the spi pins to the avr. Now you say this is only connected during flash programming. I can assure you that it will be impossible to read the sd card if it is not connected to the avr.

Imagecraft compiler user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
Are there any driver file required to be installed
Of course but for WHAT?

RS232? Does this work OK?

Or the SD card? https://www.avrfreaks.net/index.p...

I don't think anyone is understanding your questions here, sorry.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Can u give some idea how to write programs for drivers so that microcontroller may detect the memory card.

http://elm-chan.org/fsw/ff/00index_e.html

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
I have not used the
MICROSD module connector, but instead of that I have
soldered pins on the adapter and fixed it in the
Bredboard. Then its connections are done according as
shown in the figure.

There is no SD-card in that circuit, only a connector marked "SD card module" with the necessary SPI signals connected + another pin connected that you don't need for talking to SD card.
What have me really worried is that you also have +5V wired to same connector. SD cards need 3.3V to be happy.
This also goes for all outputs in SPI interface (SCK, MOSI and CS). You need level translators for all those signals before they are connected to SD card.
Are you doing this level translation on the breadboard?
We cannot know if you have made SPI connections correct by looking only at the connector.
If you have sent 5V to the card there is a good chance that you've destroyed it.

Seems to me that the circuit drawing is not made by you, is that correct?
Does it belong to a ready made board or a kit you've bought?
If so, is there also a ready made program to go with it that now run on your mega32?
With proved code that handle transfers between card and mega32?
With FAT file system on it to handle files?

If the answer is yes to most of the questions my guess is that your SD card is broken because you sent 5v to it.

elm-chan as suggested by both me and Cliff have a lot of info on how to connect to a card and how to initialize them.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

I have checked with the existing memory card in

card reader and it appears that the card has damaged.

Till I replace the memory card is there any

alternative way that I can run the MICROSD ATMEGA32

DATALOGGER circuit as I have the interfacing

connections of ATMEGA32 with MAX232 to the computer

through RS232 port.

Sumanta

connections in RS232 port

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you're familiar with the program inside mega32 you can change the code to simulate card data and send that to MAX232.