LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

MCB2300 SD Card Error

Solved!
Go to solution

Hello,

 

I have downloaded trial verison of LabVIEW Embedded for ARM 2009.  I am trying to use file I/O functions to read/Write to the SD card on MCB2300 (LPC2378).   The program always gives an error at file open function.  Please find the attached screenshot.

 

Thanks in Advance

Download All
Message 1 of 24
(10,886 Views)

I think your program worked first time and the file is already there.
The VI will end with an error on Windows too (error 2/Duplicate path) – try "replace or create". You can see the error code if the error cluster is wired to a "CCG Error Handler.vi" (located near CCG Console Output in Time & Dialog).

 

 

Is this snippet working? http://forums.ni.com/ni/board/message?board.id=420&message.id=1455#M1455

0 Kudos
Message 2 of 24
(10,883 Views)

Hello NiCB,

 

 I receive error 6 (generic file I/O error).  I have changed the file open to open or create function.  I am able to read and write to the Sd card using my pc sd card slot.  Do we have to set any jumpers or any other parameters on MCB2300 board?

0 Kudos
Message 3 of 24
(10,876 Views)
I used the above snippet and it does not work.  I have inserted the SD card in the slot present under the LCD panel.  I am not sure what I am doing wrong??
0 Kudos
Message 4 of 24
(10,871 Views)

OK, this is an IO error.

I am wondering if Keil example is running (http://www.keil.com/download/docs/338.asp).

If you don't have RL-ARM just load the project file and execute flash-download.

0 Kudos
Message 5 of 24
(10,861 Views)

Hi Jaggs,

 

Have you tried using the file I/O example on our community? If not, could you run and see if you experience the same behavior?

 

 

File I/O for Embedded ARM Targets

http://decibel.ni.com/content/docs/DOC-6254

 

Thanks!

0 Kudos
Message 6 of 24
(10,847 Views)

Hello Meghan,

 

The example is not working.

 

Hello NiCB,

 

The flash download is giving a error "No ULINK device found"

i have connected COM1 port on the board to the PC COM port.  Do I need to set any jumpers?  My OS is VISTA.

 

Thanks.

 

0 Kudos
Message 7 of 24
(10,838 Views)

Hello,

 

I connected the ULINK2 and was able to download the SD file program to the flash and now when the program is running, I have connected the serial cable to COM1 and PC and trying to communicate with SD card.  However, I am not sure about the commands to use in hyperterminal.

0 Kudos
Message 8 of 24
(10,829 Views)

I don't understand the previous post, perhaps you just hadn't connected the ULINK2. However, this link may be useful in some cases http://www.keil.com/support/docs/3315.htm

 

Hyperterminal commands are listed in SD_file.c
Try "CAP", "TYPE", "REN",  "COPY",  "DEL",  "DIR", "FORMAT",   "HELP",    "FILL", "?".

Anyway, they are listed at startup as an intro message.

 

Nic

0 Kudos
Message 9 of 24
(10,826 Views)

Hello,

 

I was able to run the Sd file example and debug using COM1 Port.  Previously I was using wrong serial cable.  However, the initial problem of communicating to the SD card from LabVIEW is still present.  I found that when I initially launch LabVIEw, it says that LabVIEW embedded builder licenseis not present. I am not sure if this is causing a problem.

0 Kudos
Message 10 of 24
(10,821 Views)