Helpful ReplyHot!PIC24FJ128Ga106 MLA file I/O

Author
yo123
Starting Member
  • Total Posts : 41
  • Reward points : 0
  • Joined: 2017/04/19 09:52:08
  • Location: 0
  • Status: offline
2018/06/25 01:37:07 (permalink)
0

PIC24FJ128Ga106 MLA file I/O

hi,
 i want interface  sd card with PIC24FJ128Ga106 , but as i  have search i found that MLA fileio library is used for interfacing sd card .   can anybody tell me the flow of MLA library for sd card interface.
thanks in advance.
 
#1
Mysil
Super Member
  • Total Posts : 3214
  • Reward points : 0
  • Joined: 2012/07/01 04:19:50
  • Location: Norway
  • Status: online
Re: PIC24FJ128Ga106 MLA file I/O 2018/06/25 06:20:13 (permalink) ☄ Helpfulby yo123 2018/06/26 02:57:28
+2 (2)
MLA version 2013_06_15 and earlier have MDD filesystem v1.4.4 that is able to read and write files on SD-card.
 
After that release, there was a rewrite started, that is still not completed.
In the current release of MLA, there is MDD filesystem version v1.4 for PIC24 devices
and some example projects with MPLAB X, including for PIC24FJ128GA010 and PIC24FJ128GB204.
 
There are descriptions in  /fileio/doc/help_mla_fileio.pdf
 
   Mysil
#2
yo123
Starting Member
  • Total Posts : 41
  • Reward points : 0
  • Joined: 2017/04/19 09:52:08
  • Location: 0
  • Status: offline
Re: PIC24FJ128Ga106 MLA file I/O 2018/09/06 03:29:21 (permalink)
0
Mysil
MLA version 2013_06_15 and earlier have MDD filesystem v1.4.4 that is able to read and write files on SD-card.
 
After that release, there was a rewrite started, that is still not completed.
In the current release of MLA, there is MDD filesystem version v1.4 for PIC24 devices
and some example projects with MPLAB X, including for PIC24FJ128GA010 and PIC24FJ128GB204.
 
There are descriptions in  /fileio/doc/help_mla_fileio.pdf
 
   Mysil




thanks for your response, i read  help_mla_fileio.pdf and fileio_sd_card_demo in fileio example. but i have some query, as CS, WP pin is given "system.c" but what about the SDO,SDI,SCK pin which is peripheral pin select.
could you please tell where it is defined and if not how should i link with MLA library function .
thanking you.
#3
yo123
Starting Member
  • Total Posts : 41
  • Reward points : 0
  • Joined: 2017/04/19 09:52:08
  • Location: 0
  • Status: offline
Re: PIC24FJ128Ga106 MLA file I/O 2019/01/12 07:25:05 (permalink)
0
Mysil
MLA version 2013_06_15 and earlier have MDD filesystem v1.4.4 that is able to read and write files on SD-card.
 
After that release, there was a rewrite started, that is still not completed.
In the current release of MLA, there is MDD filesystem version v1.4 for PIC24 devices
and some example projects with MPLAB X, including for PIC24FJ128GA010 and PIC24FJ128GB204.
 
There are descriptions in  /fileio/doc/help_mla_fileio.pdf
 
   Mysil


i went through the example,
Queries=> I Am interfacing MicroSD card and that card dont have CD(CHIP Detect) and WP(Write Protection) pin. still i dump the program in controller and "FILEIO_MediaDetect" get "true" value
and jump to the case => DEMO_STATE_MEDIA_DETECTED
in that FILEIO_DriveMount function get the "FILEIO_ERROR_INIT_ERROR" and the switch condition again move to the case "DEMO_STATE_NO_MEDIA".
i am using internal clock frequecny of  8000000Hz,  SD card size of 8gb with fat32 format ed. what should be the reason behind
"FILEIO_ERROR_INIT_ERROR".
Is this because of CD and WP function what should i do to bypass  this function.

 
inline bool USER_SdSpiGetCd(void)
{
    return (!PORTFbits.RF0) ? true : false;
}

inline bool USER_SdSpiGetWp(void)
{
    return (PORTFbits.RF1) ? true : false;
}
 

 
 
 
post edited by yo123 - 2019/01/12 11:07:33
#4
Jump to:
© 2019 APG vNext Commercial Version 4.5