USBMSD example

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

USBMSD example

1,544件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by raphaelh on Mon Nov 29 00:46:00 MST 2010
Hi All,

I am trying to use the example: usbmsb together with with my lpcxpresso 1343 board and the embedded artist base board.

According to the readme file:
"When downloaded to the board and executed, the PC will recognize
a USB mass storage device containing a text file."

But with I download it, my PC recognize the USB mass storage but when I click on it I get: Please insert a disk into removable disk....:confused:

Can anyone tell me how I can see that text I am supposed to see???

Thanks,
raph
0 件の賞賛
返信
11 返答(返信)

1,521件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by madid87 on Mon Feb 11 12:03:25 MST 2013
I found a quick fix:

Just hardcode larger size like this:
MscDevInfo.BlockSize = 512;
MscDevInfo.BlockCount = 2048;
MscDevInfo.MemorySize = 2048*512;

And it will work on Win7.

Enjoy
0 件の賞賛
返信

1,521件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CC58 on Mon Dec 03 15:58:00 MST 2012
I'm getting same thing from USBMSD_ROM project.
Should see a USB drive with readme.txt file.
Instead, I see a USB drive, no file, asks me to format drive, then asks to insert a disk. 

Anybody resolve this?


Quote: raphaelh
Hi All,

I am trying to use the example: usbmsb together with with my lpcxpresso 1343 board and the embedded artist base board.

According to the readme file:
"When downloaded to the board and executed, the PC will recognize
a USB mass storage device containing a text file."

But with I download it, my PC recognize the USB mass storage but when I click on it I get: Please insert a disk into removable disk....:confused:

Can anyone tell me how I can see that text I am supposed to see???

Thanks,
raph

0 件の賞賛
返信

1,521件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by gbm on Mon Apr 18 00:55:14 MST 2011
I did several experiments with small FAT12 volumes under Win7. Looks like the rule is simple. The smallest volume must have at least sixteen 512-byte sectors to be recognized by Win7, otherwise Win7 suggests to format the volume and fails while doing so. My solution was to create 6-sector volume padded with 10 phantom sectors. Writes to these are ignored and reads return zeros. The volume will of course behave bad if one attempts to write any file above the 6 sectors implemented.
0 件の賞賛
返信

1,521件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ehughes on Mon Apr 11 17:35:50 MST 2011
FYI:

Search my other  posts.  I have made the example work on Win7 by using an external SPI flash memory as the source.

There are some implementation oddities but it does work.
0 件の賞賛
返信

1,521件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jush on Mon Apr 11 01:01:12 MST 2011
Hi,

Try this to add unto source file:
mscuser.h
/* Mass Storage Memory Layout */
#define MSC_PhysicalMemorySize  (1024 * 3)    /* = 0x0C00 (3kB)*/
#define MSC_MemorySize  (1024 * 8)            /* = 0x2000 (8kB)*/

mscuser.c
uint8_t  Memory[MSC_PhysicalMemorySize];  /* MSC RAM */

main.c
extern uint8_t Memory[MSC_PhysicalMemorySize];           /* MSC Memory in RAM */

    for (n = 0; n < MSC_PhysicalMemorySize; n++) {     /* Copy Initial Disk Image */
        Memory[n] = DiskImage[n];               /*   from Flash to RAM     */
    }
0 件の賞賛
返信

1,521件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by bobi-one on Fri Apr 01 04:37:01 MST 2011
is FT/GPIO grounded ?
0 件の賞賛
返信

1,521件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by OXO on Fri Apr 01 01:31:49 MST 2011

Quote: NXP_USA
No driver is used for this sample, but the disk image is in FAT12 format. It does work properly under Windows XP and linux but I have reproduced the problem under Windows 7 x64. Perhaps Windows 7 has removed support for FAT12. We will come up with an improved example soon.



Did you get this closer to release yet?
0 件の賞賛
返信

1,521件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_USA on Tue Nov 30 17:26:54 MST 2010

Quote: raphaelh
ok, I made some progress:
the same configuration plugged on a XP box is ok.....

Any issues with the driver then...



No driver is used for this sample, but the disk image is in FAT12 format. It does work properly under Windows XP and linux but I have reproduced the problem under Windows 7 x64. Perhaps Windows 7 has removed support for FAT12. We will come up with an improved example soon.
0 件の賞賛
返信

1,521件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by raphaelh on Tue Nov 30 08:01:18 MST 2010
ok, I made some progress:
the same configuration plugged on a XP box is ok.....

Any issues with the driver then...
0 件の賞賛
返信

1,521件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by raphaelh on Tue Nov 30 07:17:16 MST 2010
Hello,

Thanks for your reply.

If you can replicate it, does it mean that you are also unable to access this text file? Or do you have any work-around.

Did anyone ever successfully download the application (usbhid) on a lpcxpresso 1343 board using the embedded artist base board??? This was able to access the text file????

I work on Windows 7, 64bits.

thanks,
raph
0 件の賞賛
返信

1,521件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Mon Nov 29 08:48:27 MST 2010
I can replicate the behaviour that you see here. As this is an NXP example, I've pinged them regarding this.

Regards,
CodeRedSupport
0 件の賞賛
返信