xpress_embedo
Advanced Member level 4
- Joined
- Jul 5, 2011
- Messages
- 1,154
- Helped
- 161
- Reputation
- 396
- Reaction score
- 189
- Trophy points
- 1,353
- Location
- India
- Activity points
- 10,591
Hello!! I am trying to Interface PIC32MX795F512L with the library provided by "Lucio Di Jasio", in his book Exploring PIC32.
Although i had done interfacing with the same PIC with the help of Microchips MDD Library But i want to do it with Lucio Di Jasio Library.
But due to some reason one of which is Code Size and another one is i have to use USB Host feature and write the content of SD Card to a pen drive, that's why i cant use MDD Library of Microchip.
So i thought i will use your library as the book had very good explanation.
But i am stuck in between while reading MBR.
// 6. check if the MBR sector is valid
// verify the signature word
if (( buffer[ FO_SIGN] != 0x55) ||
( buffer[ FO_SIGN +1] != 0xAA))
{
FError = FE_INVALID_MBR;
free( D); free( buffer);
return NULL;
}
My Code returns from this loop, can anyone suggest me the possible reason of this, as the same memory card is working fine with Microchip's MDD Library and mikroC Library also.
With Regards
Although i had done interfacing with the same PIC with the help of Microchips MDD Library But i want to do it with Lucio Di Jasio Library.
But due to some reason one of which is Code Size and another one is i have to use USB Host feature and write the content of SD Card to a pen drive, that's why i cant use MDD Library of Microchip.
So i thought i will use your library as the book had very good explanation.
But i am stuck in between while reading MBR.
// 6. check if the MBR sector is valid
// verify the signature word
if (( buffer[ FO_SIGN] != 0x55) ||
( buffer[ FO_SIGN +1] != 0xAA))
{
FError = FE_INVALID_MBR;
free( D); free( buffer);
return NULL;
}
My Code returns from this loop, can anyone suggest me the possible reason of this, as the same memory card is working fine with Microchip's MDD Library and mikroC Library also.
With Regards