NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Jaggs
Posts: 64
Accepted Solution

MCB2300 SD Card Error

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

Member
NicB
Posts: 150
0 Kudos

Re: MCB2300 SD Card Error

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

Member
Jaggs
Posts: 64
0 Kudos

Re: MCB2300 SD Card Error

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?

Member
Jaggs
Posts: 64
0 Kudos

Re: MCB2300 SD Card Error

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??
Member
NicB
Posts: 150
0 Kudos

Re: MCB2300 SD Card Error

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.

Member
MeghanK
Posts: 155
0 Kudos

Re: MCB2300 SD Card Error

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!

Meghan K.
Academic Product Marketing Engineer
National Instruments
Member
Jaggs
Posts: 64
0 Kudos

Re: MCB2300 SD Card Error

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.

 

Member
Jaggs
Posts: 64
0 Kudos

Re: MCB2300 SD Card Error

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.

Member
NicB
Posts: 150
0 Kudos

Re: MCB2300 SD Card Error

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

Member
Jaggs
Posts: 64
0 Kudos

Re: MCB2300 SD Card Error

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.

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page