Sign in

username:

password:



Not a member?

Search lpc2000



Search tips

Subscribe to lpc2000



lpc2000 by Keywords

2106 | ADC | ARM7 | Atmel | Bootloader | CAN | CrossStudio | CrossWorks | DDS | ECos | Ethernet | ETM | FIFO | FLASH | FPGA | GCC | GDB | GNU | GNUARM | GPIO | I2C | IAP | IAR | JTAG | Kickstart | LCD | Linux | LPC | LPC-E2294 | LPC2000 | LPC2100 | LPC2104 | Lpc2106 | Lpc210x | LPC2114 | LPC2119 | LPC2124 | LPC2129 | Lpc2138 | LPC213x | LPC21xx | LPC2210 | LPC2212 | LPC2214 | LPC2292 | LPC2294 | LPC2xxx | LPC3128 | MCB2100 | Olimex | Philips | PWM | Rowley | RTC | RTOS | SPI | SSP | UART | UART0 | UART1 | ULINK | USB | Watchdog | Wiggler

Ads

Discussion Groups

Discussion Groups | LPC2000 | LPC embedded work

Discussion group dedicated to the Philips LPC2000 family of ARM MCUs

jcwren's LPC-P2148 example: problem with MMC card - Xiaofan Chen - Oct 9 19:13:06 2008

Somehow v1.20 and v1.30 gave an error message. I did not change
the firmware, just use the provided hex on the Olimex LPC-P2148 board.

ls
rrc=10 FR_NOT_ENABLED
mkfs
rrc=10 FR_NOT_ENABLED

This MMC card worked before with the examples. And it still
works with my other PC card readers and the IAR LPC2468
kickstart board USB Mass Storage Demo.

Any hints on the possible solution?

Xiaofan

------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )


Re: jcwren's LPC-P2148 example: problem with MMC card - "J.C. Wren" - Oct 9 22:18:38 2008

I'll look into this further, but one of my complaints about the fatfs
package is that when errors are propagated up, they lose relevance. There's
three effective layers, and each layer has it's own set of error codes.
This makes it just about impossible to pass up a MMC controller error (as
an example), and still have the application know that.
--jc

On Thu, Oct 9, 2008 at 7:13 PM, Xiaofan Chen wrote:

> Somehow v1.20 and v1.30 gave an error message. I did not change
> the firmware, just use the provided hex on the Olimex LPC-P2148 board.
>
> ls
> rrc=10 FR_NOT_ENABLED
> mkfs
> rrc=10 FR_NOT_ENABLED
>
> This MMC card worked before with the examples. And it still
> works with my other PC card readers and the IAR LPC2468
> kickstart board USB Mass Storage Demo.
>
> Any hints on the possible solution?
>
> Xiaofan
>
>
[Non-text portions of this message have been removed]
------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: jcwren's LPC-P2148 example: problem with MMC card - "J.C. Wren" - Oct 9 22:42:43 2008

I just tested this. If I boot the system and type 'file ls', I net
NOT_ENABLED. I'm not sure where you're getting "FR_NOT_ENABLED", unless
that was a typo and not a cut'n'paste. No such printable error text exists.
If I then type 'file mount', I get rrc=0 OK, then do a 'file ls', and I get
the file system contents.
There is, in theory, some auto-mounting logic in fatfs, but it looks a
little speccy.

--jc

On Thu, Oct 9, 2008 at 10:18 PM, J.C. Wren wrote:

> I'll look into this further, but one of my complaints about the fatfs
> package is that when errors are propagated up, they lose relevance. There's
> three effective layers, and each layer has it's own set of error codes.
> This makes it just about impossible to pass up a MMC controller error (as
> an example), and still have the application know that.
> --jc
> On Thu, Oct 9, 2008 at 7:13 PM, Xiaofan Chen wrote:
>
>> Somehow v1.20 and v1.30 gave an error message. I did not change
>> the firmware, just use the provided hex on the Olimex LPC-P2148 board.
>>
>> ls
>> rrc=10 FR_NOT_ENABLED
>> mkfs
>> rrc=10 FR_NOT_ENABLED
>>
>> This MMC card worked before with the examples. And it still
>> works with my other PC card readers and the IAR LPC2468
>> kickstart board USB Mass Storage Demo.
>>
>> Any hints on the possible solution?
>>
>> Xiaofan
>>
>>
[Non-text portions of this message have been removed]
------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

LPC embedded work - Bruce Paterson - Oct 10 0:40:13 2008


Leon, I hope it's OK to post this short request ?

Due to some overcommitted resources, we may be after an embedded LPC
programmer for a few months work in Melbourne, Australia. Familiarity
with SSP, SPI, Ethernet and USB Host useful, and work with synchronous
clocking a plus. Coding would be largely in Gnu-C. Get back to me via
email directly if you're interested.

Cheers,
Bruce

Bruce Paterson
Beam Communications

------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: LPC embedded work - justin james - Oct 12 13:21:22 2008

sir ,
I have worked as a project trainee at NXP semiconductors and I have been
involved with projects using LPC2103 and LPC2368 for six months. I am
sending u my detailed biodata. please let me know if I can be of any
interest to your concern.
Thanks and regards
justin james
[Non-text portions of this message have been removed]
------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: LPC embedded work - "J.C. Wren" - Oct 12 13:52:19 2008

You'd be a lot more credible if you used proper capitalization, punctuation,
and also didn't use the idiotic form of 'you'.

Hopefully your actual resume is better written.

--jc

On Sun, Oct 12, 2008 at 12:19 PM, justin james wrote:

> sir ,
> I have worked as a project trainee at NXP semiconductors and I have been
> involved with projects using LPC2103 and LPC2368 for six months. I am
> sending u my detailed biodata. please let me know if I can be of any
> interest to your concern.
>
> Thanks and regards
> justin james
>
> [Non-text portions of this message have been removed]
>
>
>
[Non-text portions of this message have been removed]
------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: jcwren's LPC-P2148 example: problem with MMC card - Xiaofan Chen - Oct 12 19:02:24 2008

On Fri, Oct 10, 2008 at 10:42 AM, J.C. Wren wrote:
> I just tested this. If I boot the system and type 'file ls', I net
> NOT_ENABLED. I'm not sure where you're getting "FR_NOT_ENABLED", unless
> that was a typo and not a cut'n'paste. No such printable error text exists.
> If I then type 'file mount', I get rrc=0 OK, then do a 'file ls', and I get
> the file system contents.
> There is, in theory, some auto-mounting logic in fatfs, but it looks a
> little speccy.
>

You are right. Thanks.

LPC-P2148 Demo, Version 1.30, Oct 5 2008 23:04:33
Copyright (c) 2007, J.C. Wren
Demo>file ls
rrc=10 NOT_ENABLED
Demo>file mount
rrc=0 OK
Demo>file ls

D---- 2006/06/17 17:01 0 hex
----A 2005/11/30 11:59 2523 10f206.hex
----A 2005/11/30 11:59 2523 10F206~1.HEX
D---- 2007/09/08 20:12 0 LPC214~1
2 File(s), 5046 bytes
2 Dir(s), 503016K bytes free

Regards,
Xiaofan

------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: jcwren's LPC-P2148 example: problem with MMC card - Xiaofan Chen - Oct 12 19:18:11 2008

On Mon, Oct 13, 2008 at 7:02 AM, Xiaofan Chen wrote:
> On Fri, Oct 10, 2008 at 10:42 AM, J.C. Wren wrote:
>> I just tested this. If I boot the system and type 'file ls', I net
>> NOT_ENABLED. I'm not sure where you're getting "FR_NOT_ENABLED", unless
>> that was a typo and not a cut'n'paste. No such printable error text exists.
>> If I then type 'file mount', I get rrc=0 OK, then do a 'file ls', and I get
>> the file system contents.
>> There is, in theory, some auto-mounting logic in fatfs, but it looks a
>> little speccy.
>> You are right. Thanks.

Some other findings.
1. I could not get the console to work under Vista using various
terminal programs. Under Linux (Ubuntu 8.04), I have good results
with cutecom.

2. To program the chip under Linux, I use lpc2k_pgm which works
fine. I could not get lpc21isp_160 to work. That will be a separate
post.

3. I built the compiler following the instructions from GNUARM
(gcc 4.1.1) and it works fine. Then I tried to build the demo
with the following option
"export LPC2148DEMO_OPTS=-D CFG_USB_MSC -D CFG_CONSOLE_UART0".

USB mass storage seems to work fine under Vista and Linux. But
Linux complains something like the following.

[ 1098.811379] usb 1-3: new full speed USB device using ohci_hcd and address 6
[ 1099.035680] usb 1-3: configuration #1 chosen from 1 choice
[ 1099.038986] scsi7 : SCSI emulation for USB Mass Storage devices
[ 1099.041324] usb-storage: device found at 6
[ 1099.041329] usb-storage: waiting for device to settle before scanning
[ 1104.029740] usb-storage: device scan complete
[ 1104.036722] scsi 7:0:0:0: Direct-Access LPCUSB Mass storage
0.1 PQ: 0 ANSI: 5
[ 1104.051684] sd 7:0:0:0: [sdg] 1014785 512-byte hardware sectors (520 MB)
[ 1104.068648] sd 7:0:0:0: [sdg] Test WP failed, assume Write Enabled
[ 1104.068652] sd 7:0:0:0: [sdg] Assuming drive cache: write through
[ 1104.100574] sd 7:0:0:0: [sdg] 1014785 512-byte hardware sectors (520 MB)
[ 1104.117537] sd 7:0:0:0: [sdg] Test WP failed, assume Write Enabled
[ 1104.117541] sd 7:0:0:0: [sdg] Assuming drive cache: write through
[ 1104.117546] sdg: sdg1
[ 1104.133565] sd 7:0:0:0: [sdg] Attached SCSI removable disk
[ 1104.133607] sd 7:0:0:0: Attached scsi generic sg7 type 0
[ 1104.359001] sd 7:0:0:0: [sdg] Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE,SUGGEST_OK
[ 1104.359007] sd 7:0:0:0: [sdg] Sense Key : Medium Error [current]
[ 1104.359010] sd 7:0:0:0: [sdg] Add. Sense: Unrecovered read error
[ 1104.359014] end_request: I/O error, dev sdg, sector 1014784
[ 1104.359017] Buffer I/O error on device sdg, logical block 1014784
[ 1104.375961] sd 7:0:0:0: [sdg] Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE,SUGGEST_OK
[ 1104.375964] sd 7:0:0:0: [sdg] Sense Key : Medium Error [current]
[ 1104.375966] sd 7:0:0:0: [sdg] Add. Sense: Unrecovered read error
[ 1104.375969] end_request: I/O error, dev sdg, sector 1014784
[ 1104.375971] Buffer I/O error on device sdg, logical block 1014784
[ 1104.414877] sd 7:0:0:0: [sdg] Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE,SUGGEST_OK
[ 1104.414881] sd 7:0:0:0: [sdg] Sense Key : Medium Error [current]
[ 1104.414884] sd 7:0:0:0: [sdg] Add. Sense: Unrecovered read error
[ 1104.414887] end_request: I/O error, dev sdg, sector 1014784
[ 1104.414889] Buffer I/O error on device sdg, logical block 1014784
[ 1104.431839] sd 7:0:0:0: [sdg] Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE,SUGGEST_OK
[ 1104.431842] sd 7:0:0:0: [sdg] Sense Key : Medium Error [current]
[ 1104.431845] sd 7:0:0:0: [sdg] Add. Sense: Unrecovered read error
[ 1104.431848] end_request: I/O error, dev sdg, sector 1014784
[ 1104.431849] Buffer I/O error on device sdg, logical block 1014784
[ 1104.448802] sd 7:0:0:0: [sdg] Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE,SUGGEST_OK
[ 1104.448805] sd 7:0:0:0: [sdg] Sense Key : Medium Error [current]
[ 1104.448808] sd 7:0:0:0: [sdg] Add. Sense: Unrecovered read error
[ 1104.448810] end_request: I/O error, dev sdg, sector 1014784
[ 1104.448812] Buffer I/O error on device sdg, logical block 1014784
[ 1104.531626] sd 7:0:0:0: [sdg] Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE,SUGGEST_OK
[ 1104.531633] sd 7:0:0:0: [sdg] Sense Key : Medium Error [current]
[ 1104.531636] sd 7:0:0:0: [sdg] Add. Sense: Unrecovered read error
[ 1104.531640] end_request: I/O error, dev sdg, sector 1014784
[ 1104.531643] Buffer I/O error on device sdg, logical block 1014784
[ 1104.548585] sd 7:0:0:0: [sdg] Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE,SUGGEST_OK
[ 1104.548588] sd 7:0:0:0: [sdg] Sense Key : Medium Error [current]
[ 1104.548591] sd 7:0:0:0: [sdg] Add. Sense: Unrecovered read error
[ 1104.548594] end_request: I/O error, dev sdg, sector 1014784
[ 1104.548595] Buffer I/O error on device sdg, logical block 1014784

But I am not sure how to use the console now.
help --> \0xece\0xec|\0x16
Regards,
Xiaofan

------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: jcwren's LPC-P2148 example: problem with MMC card - tarun_112 - Oct 14 3:17:42 2008

i am tarun i am doing the project to interface the sd card with
lpc2148 my first 3 commands are working but i am unable to write the
data on the sd card can u help me my email is t...@yahoo.com
------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )

Re: jcwren's LPC-P2148 example: problem with MMC card - Xiaofan Chen - Oct 20 11:02:25 2008

On Mon, Oct 13, 2008 at 7:18 AM, Xiaofan Chen wrote:
> Some other findings.
> 1. I could not get the console to work under Vista using various
> terminal programs. Under Linux (Ubuntu 8.04), I have good results
> with cutecom.

I tried a bit more and still got no success under Vista 32bit (Home
Premium). Really strange.

>From the PortMon output, the command is successfully sent to
the device, but no reply was received for the PC.

PortMon output:
10:55:25 PM HyperTrm.exe IRP_MJ_CREATE VCom7 SUCCESS Options: Open
10:55:25 PM HyperTrm.exe IOCTL_SERIAL_SET_QUEUE_SIZE VCom7 SUCCESS InSize:
8192 OutSize: 8192
10:55:25 PM HyperTrm.exe IOCTL_SERIAL_CONFIG_SIZE VCom7 SUCCESS Size: 0
10:55:25 PM HyperTrm.exe IOCTL_SERIAL_GET_BAUD_RATE VCom7 SUCCESS
10:55:25 PM HyperTrm.exe IOCTL_SERIAL_GET_LINE_CONTROL VCom7 SUCCESS
10:55:25 PM HyperTrm.exe IOCTL_SERIAL_GET_CHARS VCom7 SUCCESS
10:55:25 PM HyperTrm.exe IOCTL_SERIAL_GET_HANDFLOW VCom7 SUCCESS
10:55:25 PM HyperTrm.exe IOCTL_SERIAL_GET_BAUD_RATE VCom7 SUCCESS
10:55:25 PM HyperTrm.exe IOCTL_SERIAL_GET_LINE_CONTROL VCom7 SUCCESS
10:55:25 PM HyperTrm.exe IOCTL_SERIAL_GET_CHARS VCom7 SUCCESS
10:55:25 PM HyperTrm.exe IOCTL_SERIAL_GET_HANDFLOW VCom7 SUCCESS
10:55:25 PM HyperTrm.exe IOCTL_SERIAL_SET_BAUD_RATE VCom7 SUCCESS Rate: 19200
10:55:25 PM HyperTrm.exe IOCTL_SERIAL_SET_RTS VCom7 SUCCESS
10:55:25 PM HyperTrm.exe IOCTL_SERIAL_SET_DTR VCom7 SUCCESS
10:55:25 PM HyperTrm.exe IOCTL_SERIAL_SET_LINE_CONTROL VCom7 SUCCESS StopBits:
1 Parity: NONE WordLength: 8
10:55:25 PM HyperTrm.exe IOCTL_SERIAL_SET_CHAR VCom7 SUCCESS EOF:0
ERR:0 BRK:0 EVT:0 XON:11 XOFF:13
10:55:25 PM HyperTrm.exe IOCTL_SERIAL_SET_HANDFLOW VCom7 SUCCESS Shake:80000001
Replace:80000040 XonLimit:80 XoffLimit:200
10:55:25 PM HyperTrm.exe IOCTL_SERIAL_SET_TIMEOUTS VCom7 SUCCESS RI:10
RM:0 RC:0 WM:0 WC:5000
10:55:25 PM HyperTrm.exe IOCTL_SERIAL_SET_WAIT_MASK VCom7 SUCCESS Mask:
RLSD ERR
10:55:25 PM HyperTrm.exe IOCTL_SERIAL_WAIT_ON_MASK VCom7
10:55:25 PM HyperTrm.exe IRP_MJ_READ VCom7 Length 80
10:55:35 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: h
10:55:36 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: e
10:55:36 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: l
10:55:36 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: p
10:55:36 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: .
10:55:36 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: .
10:55:44 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: f
10:55:44 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: i
10:55:45 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: l
10:55:45 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: e
10:55:45 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1:
10:55:46 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: m
10:55:47 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: o
10:55:47 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: u
10:55:47 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: n
10:55:47 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: t
10:55:47 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: .
10:55:47 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: .
10:55:48 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: f
10:55:48 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: i
10:55:48 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: l
10:55:48 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: e
10:55:48 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1:
10:55:49 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: l
10:55:49 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: s
10:55:49 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: .
10:55:49 PM HyperTrm.exe IRP_MJ_WRITE VCom7 SUCCESS Length 1: .

Any others tried the example under Vista?

Xiaofan

------------------------------------



(You need to be a member of lpc2000 -- send a blank email to lpc2000-subscribe@yahoogroups.com )