i'm working with a FRDM KL25Z, and i need to write on a MicroSD card... but the tutorials that i followed doesn't work, and they are made in a previous version of KDS, so, i cant find the components, or they doesn't look the same way like the tutorial... Please, I need someone who recently work with SD module on this board.
I'm using a FRDM KL25Z, with KDS 3.20, and a Sparkfun Level Shifting MicroSD breakout.
look, this is my SPI communication parameters.
it was on rising or falling edge, i change it to only rising edge. but i still have the same answer, the command diskinfo doesn`t give me any info
That picture does not help much. Can you check with a logic analyzer that you see the proper signals?
It is not clear if you really have used 5V to power the level shifters on the card adapter.
HI Erich! i'm having a little issue when i download the example code that you gave me, the code works fine, but the FRDM doesn`t see with the SD...
when i type the command diskinfo it gave me this answer.
i need to know how to connect the FRDM KL25 to this SD reader https://www.sparkfun.com/products/13743
could you help me with this connections please?
the RTOS is not needed, but makes thing simpler and scalable. So you can you it without.
As for LDD and non-LDD components: have a read here: https://mcuoneclipse.com/2015/10/18/overview-processor-expert/
In a nutshell, the LDD are newer and more powerful, but more difficult to use.
but in your tutorial is not explained how i can add the RTOS, do you have some tutorial , or would you explain me how I should configure the RTOS in my project? thanks!
it is very simple: just don't use the RTOS. I have a bare metal (BM) example with FatFS without RTOS (for CodeWarrior) here:
I hope this helps,
Excelent!, i checked it, and it's a little bit easy to understand, but, my new doubt is at the time of generate the processor expert code, because in my project, in the FATfs file system, it ask about a shell, should i add it to my project? . If I add it, how should I configure it? I saw that it could be add a RTOS in these section, is that what you do? I add my code in this message, i was wondering if you could check it and tell me what I'm forgetting to configure. thanks!
The shell component provides a command line (shell) interface for various components, including the FatFS. If you don't need that, you don't have to add it. But if you add it, it makes sense to add the RTOS too. Because then you can run the shell parser in its own thread/task.
thanks Erich! do you have any tutorial which explain the basic use os RTOS? in which explain how to make threads/tasks for diferent components? it would be helpful for the project that i'm working.
Hi Erich!, first of all, thanks for your help. I look into your proyect, and i see that you're using a Spimaster_LDD instead a SPI_SynchroMaster, is there any difference between each one?
tell me, is really necessary use of RTOS? i'm looking for a simple read/write .txt files on the sd_card.
let me complete a little bit more my project and I share to you
if using a normal SD card or micro-SD really does not matter.
I have a tutorial for the KL25Z here: https://mcuoneclipse.com/2012/11/18/arduino-data-logger-shield-with-the-frdm-kl25z-board/
The code is on GitHub (KDS v3.2) here: mcuoneclipse/Examples/KDS/FRDM-KL25Z/FRDM-KL25Z_FatFs at master · ErichStyger/mcuoneclipse · GitHub
I have attached the project as well.
I hope this helps,
Erich, the SDcard communication is by SPI?
and here is my first doubt, i'm working with kds, which provides me a SynchroMaster template that doesn´t let me change some attributes, i add the images of the attributes that I can`t change , I hope you can help me. it says that the method is disabled by the template, how do you change that?
that's the image of your proyect, and here is mine