bluehash 1,581 Posted March 3, 2013 Share Posted March 3, 2013 Thanks Calinp. Could you update the first post of this thread with a link to the latest version post. Makes it easier for members to find. sirri 1 Quote Link to post Share on other sites
sirri 28 Posted March 18, 2013 Share Posted March 18, 2013 Can you please give a simple "writing" example for this library? Thanks, Sirri Quote Link to post Share on other sites
bluehash 1,581 Posted March 18, 2013 Share Posted March 18, 2013 Can you please give a simple "writing" example for this library? Thanks, Sirri See Calinp post above mine. There is an example in the package. sirri 1 Quote Link to post Share on other sites
sirri 28 Posted March 18, 2013 Share Posted March 18, 2013 See Calinp post above mine. There is an example in the package. Thanks, i have seen the sample but it looks quite complicated :/ I will try it soon though. Quote Link to post Share on other sites
sirri 28 Posted March 19, 2013 Share Posted March 19, 2013 I have formatted my SD Card to FAT file system My pin connections are as below (checked in the petit fatfs libray) (and 10 for the CS) I have pasted t_read and t_write .txt files into the sd card.. P.S. My 16MHz Crystal is not soldered is this an issue for this task? uint8_t data; uint8_t _SCLK = 7; uint8_t _MOSI = 15; uint8_t _MISO = 14; //defaults on HW SPI pins I am getting this message on serial monitor and so when i check my sd card i see that t_write is still blank.. Press button to start... Open a test file (t_read.txt). Failed with rc=6 Quote Link to post Share on other sites
calinp 24 Posted March 20, 2013 Author Share Posted March 20, 2013 Hi Sirri, From the pictures I think you are using an SD adapter that have level shifting so it can interface to 5V microcontrollers (like Arduino). This will not work, because the MSP430 is a 3.3V device and the voltage levels from the card will be to low. Try to connect the card directly using the first method from http://www.43oh.com/2011/02/five-cheap-breadboard-prototyping-tips-and-tricks-list-2/ ( this is what I used ) Regards, Calin sirri 1 Quote Link to post Share on other sites
sirri 28 Posted March 20, 2013 Share Posted March 20, 2013 Hi Sirri, From the pictures I think you are using an SD adapter that have level shifting so it can interface to 5V microcontrollers (like Arduino). This will not work, because the MSP430 is a 3.3V device and the voltage levels from the card will be to low. Try to connect the card directly using the first method from http://www.43oh.com/2011/02/five-cheap-breadboard-prototyping-tips-and-tricks-list-2/ ( this is what I used ) Regards, Calin Hi Calin, But there is also +3.3V just above +5V.. What about connecting USB 5V to there (3.3V and also 5V) ? Will that burn something? : ) Thanks, Sirri Quote Link to post Share on other sites
calinp 24 Posted March 20, 2013 Author Share Posted March 20, 2013 I looked again the picture and there is no need to supply 5V from USB to the SD board. Try with FatFs.begin(cs_pin,16); this will lower the SPI clock Check if your Energia/hardware/msp430/libraries/SPI/utility/usci_spi.cpp and Energia/hardware/msp430/cores/msp430/usci_isr_handler.c files are the same as the ones in github. Calin sirri 1 Quote Link to post Share on other sites
sirri 28 Posted March 21, 2013 Share Posted March 21, 2013 I looked again the picture and there is no need to supply 5V from USB to the SD board. Try with FatFs.begin(cs_pin,16); this will lower the SPI clock Check if your Energia/hardware/msp430/libraries/SPI/utility/usci_spi.cpp and Energia/hardware/msp430/cores/msp430/usci_isr_handler.c files are the same as the ones in github. Calin I have checked usci_spi.cpp and usci_isr_handler.c and i was suprised that they are really changed in github. i have replaced my files with the ones in github. However it still doesn't work : / Here is the result when i test the code (attached image) Sirri Quote Link to post Share on other sites
sirri 28 Posted March 24, 2013 Share Posted March 24, 2013 i will be very happy if someone helps. i want to do "datalogging" Quote Link to post Share on other sites
bluehash 1,581 Posted March 24, 2013 Share Posted March 24, 2013 can you connect the SDCard directly to the LP without using your breakout board? Quote Link to post Share on other sites
sirri 28 Posted March 24, 2013 Share Posted March 24, 2013 can you connect the SDCard directly to the LP without using your breakout board? i can try.. will it work that way? Quote Link to post Share on other sites
bluehash 1,581 Posted March 24, 2013 Share Posted March 24, 2013 It should. I'm not sure what your current bread board is doing. Quote Link to post Share on other sites
sirri 28 Posted March 24, 2013 Share Posted March 24, 2013 It should. I'm not sure what your current bread board is doing. ok, thanks bluehash, i will try it tomorrow evening and tell you the results. Quote Link to post Share on other sites
sirri 28 Posted March 25, 2013 Share Posted March 25, 2013 @@bluehash ; i guess you are suggesting me to use this method: http://www.43oh.com/2011/02/five-cheap-breadboard-prototyping-tips-and-tricks-list-2/ (number 1 : 1. SDcard breakout with headers) Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.