2015-01-10 01:14 AM
Dear All,
I would be grate if any one could advice me that in which page the SPI pin configuration is showing in the ''RM0091Reference manual'' STM32F0I mean, What are the proper Configure GPIO for MOSI, MISO and SCK pins.What is the exact pin configuration in which page is showing above configurationThanks in advance2015-01-11 08:56 AM
Look, it's a block access memory device, not a direct access memory (SRAM, NOR). Think of it like a hard drive.
You need a driver to read/write to it using the command defined in the SD/MMC card specifications. STM32F0xx_StdPeriph_Lib_V1.4.0\Utilities\STM32_EVAL\STM320518_EVAL\stm320518_eval_spi_sd.c STM32F0xx_StdPeriph_Lib_V1.4.0\Utilities\STM32_EVAL\STM32072B_EVAL\stm32072b_eval_spi_sd.c2015-01-12 08:56 AM
Dear Sir,
Thanks for the reply and adviceI decided to read more about SD card protocolAfter reading I will come backThanks2015-01-18 03:30 AM
Dear Sir,
Can you advice me how should I include ''stm320518_eval_spi_sd.c and '' stm320518_eval_spi_sd.h'' files to my project. I am using STM320518-EVAL_FW_V1.0.1 ''I tried several manner but it is giving errors2015-01-18 05:40 AM
You can't right click or float on things until the editor has browsing information generated by a compiler pass.
Focus on the errors generated during the build process, starting with the first ones.2015-01-18 06:29 AM
Dear Sir
Only one Error is showing, which is..\STM320518-EVAL_FW_V1.0.1\Utilities\STM32_EVAL\STM320518_EVAL\stm320518_eval.h(39): error: #5: cannot open source input file ''stm32_eval_legacy.h'': No such file or directory2015-01-18 06:58 AM
Only one Error is showing, which is
..\STM320518-EVAL_FW_V1.0.1\Utilities\STM32_EVAL\STM320518_EVAL\stm320518_eval.h(39): error: #5: cannot open source input file ''stm32_eval_legacy.h'': No such file or directory
Which would seem to be indicative that you haven't set up the compiler's include paths sufficiently to capture the needed files, or copied/ported the files to your own project directory(s).2015-01-18 07:13 AM
2015-01-18 09:17 AM
But it's complaining about another file, stm32_eval_legacy.h, which you evidently didn't copy, or suitably path.
2015-01-19 07:18 AM
Dear Sir,
You are correct, the issue with the path, Now it is compiling without errorsI have few more questions1. Should I use more than 4GB SD cards to read and write with this driver?2. Since the MCU have it internal pull-up, Is it necessary to use external pull-up for MOSI , MISO , SCK pins.Please adviceThanks in advance2015-01-19 12:38 PM
I haven't done a code review, a lot of ST's existing code has problems with memory >2GB due to the insistence on using 32-bit byte offsets instead of block offsets used by the memory.