08-31-2009 11:50 AM
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
Solved! Go to Solution.
08-31-2009 01:00 PM
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
08-31-2009 02:06 PM
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?
08-31-2009 02:44 PM
08-31-2009 04:21 PM
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.
09-01-2009 10:19 AM
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!
09-02-2009 08:45 AM
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.
09-02-2009 09:32 AM
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.
09-02-2009 09:51 AM
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
09-02-2009 01:29 PM
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.