lpcware

usbd_rom_msc_ram example shows wrong disk size while connecting it to PC

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by Idanba on Tue Feb 10 23:41:11 MST 2015
Hi,

I'm using Keil's MCB4300 eval board and trying to run the above lpcopen example.
I can see in the code that MSC_MEM_DISK_SIZE   is defined to  be ((uint32_t) (32 * 1024)) and while trying to format it ( From the PC) the size shown
is really 32KB, BUT right clicking on the mass storage device and then properties reveals the PC recognize it as 12KB.... Why is that ?
Tried to change the MSC_MEM_DISK_SIZE  but still no change.
I'm using windows 7 and LPCXpresso v7.5.0

Thanks in advance,
Idan

Outcomes