about the SD cards

12 views
Skip to first unread message

klaine8

unread,
Dec 9, 2009, 12:18:37 PM12/9/09
to PIC32-Basic, kla...@gmail.com
Hi,

I added second SD-card to BV513. So they should be a and b or 0 and 1.

I am not able to open file with openfile("a:crc.txt",'r') or openfile
("b:crc.txt,'r') .

I am also not able to xtransfer tile to sd-card 1 with command

xload to "b:crc.txt"

I get
error: ncant open file

Are you people using two sd-cards at the same time?

If I have only card 1 connected I can use xload to "crc.txt" just
fine.
Same with the card 0.

I am totally lost with this problem.

Best Regards
Kari

peter247

unread,
Dec 9, 2009, 6:02:57 PM12/9/09
to PIC32-Basic
Not got a second sd , but I think it`s currentcard()

http://www.pic32.byvac.com/pic32_files.php

Kari Laine

unread,
Dec 10, 2009, 3:02:17 AM12/10/09
to pic32...@googlegroups.com
Hi Peter,

thanks.

On Thu, Dec 10, 2009 at 1:02 AM, peter247 <peter...@gmail.com> wrote:
> Not got a second sd , but I think it`s currentcard()
This just returns 0, which is not much help in trying to use both cards.

>
> http://www.pic32.byvac.com/pic32_files.php

I have read that but what I need is

openfile("b:testi.txt",'r')

and

openfile("a:crc.txt", 'r')

to work.

Best Regards
Kari

Kari Laine

unread,
Dec 10, 2009, 3:13:13 AM12/10/09
to pic32...@googlegroups.com
Hi Again Peter,

could you test to open a file on an SD-card with syntax

openfile("a:<file to open>",'r')

does it work. It does not work with either BV513 I have.

Best Regards
Kari
Reply all
Reply to author
Forward
0 new messages