SD card not mounted on WinCE600-iMX51

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SD card not mounted on WinCE600-iMX51

1,488 Views
SteM
Contributor III

Hi all,

I retrieved an old OS+BSP project and I'm trying to compile it.

The micro is a iMX51 and the OS is a WinCE600.

In debug mode the OS is able to mount the sd card in \SdMemory folder but NOT in Release mode.

I've checked the registry items for the drivers and the presence of all the files.

But it is not runnig.

Any idea?

Regards

Labels (2)
0 Kudos
Reply
6 Replies

1,290 Views
b36401
NXP Employee
NXP Employee

Are you using hive based registry?

Please refer to chapter Device Registry of "Windows Embedded CE 6.0 Fundamentals" book that is provided with Freescale WinCE doc package.

Have a great day,

Victor

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

Note: If this post answers your question, please click the Correct Answer button. Thank you!

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

0 Kudos
Reply

1,290 Views
SteM
Contributor III

What you mean exactly?

I added the hive based registry but nothing changed ..

Is there any other item I can check?

PS: I selected the RAM-based registry and now the SdMemory folder is active !!

0 Kudos
Reply

1,290 Views
SteM
Contributor III

In this moment I have:

- File system               RAM+ROM

- Registry Storage     NONE

I've selected the HIVE item and I'm rebuilding the OS.

0 Kudos
Reply

1,290 Views
SteM
Contributor III

No way .. the SdMemory folder is not mounted .. :smileyconfused:

0 Kudos
Reply

1,290 Views
SteM
Contributor III

I've added some debug zones to the registry:

;
"ESDHC"=dword:ffff
"FILESYS"=dword:ffff
"FSDMGR"=dword:ffff
"SDBUS"=dword:ffff
"SDMEMORY"=dword:ffff

but nothing changes and nothing appear ..

0 Kudos
Reply

1,290 Views
SteM
Contributor III

Since I do not obtain any message i inserted the debug libraries in the image.

Now I have the following:

CESDHCBase::SetInterface: Setting for 4 bit mode
CESDHCBase::SetInterface: PROCTL value = 0x7000023
SetClockRate - Requested Rate: 25000000, Setting clock rate to 22166666 Hz
SDSetCardInterfaceForSlot - HC ClockRate differs desired setting: desired: 25000000 Hz, Actual : 22166666 Hz
HandleAddDevice: LoadDevice type = 2, slot 0SDCard: +SDCardInfoQuery
SDCard: -SDCardInfoQuery status = 0
SDBusDriver: built custom MMC/SD path: \Drivers\SDCARD\ClientDrivers\Custom\CID-3-DS-G10DS
DeviceFolder::LoadDevice!Loading driver from device key \Drivers\SDCARD\ClientDrivers\Class\SDMemory_Class
SDMemory: +SMC_Init
SDGetDeviceHandle: ActivePath: Drivers\Active\33
SDBusDriver: +-SDC_Open
SDBusDriver: +SDC_IOControl
SDGetClientFunctions: +Init
SDGetClientFunctions: -Init
SDCard: +SDCardInfoQuery
SDCard: -SDCardInfoQuery status = 0
SDCard: +SDCardInfoQuery
SDCard: Dumping parsed Registers :
Version:0
TAAC
: f ns
NSAC
: 0 clocks
MaxDataTransferRate: 25000 kb/s
Card Command Classes: 0x05F5
Max Read Block Length: 512 bytes
Read Block Partial? : 1
Max Write Block Length: 512 bytes
Write Block Partial? : 0
Write Block Misaligned? : 0
Read Block Misaligned? : 0
DSR
Implemented? : 0
Device Size : 1015808000 bytes
VDD
Read Current Min : 100 mA
VDD
Read Current Max : 80 mA
VDD
Write Current Min : 100 mA
VDD
Write Current Max : 80 mA
Erase Block Enabled?: 1
Erase Sector Size: 32 blocks
Write Protect Group Enabled? 1
Write Group Protect Size: 128 blocks
Write Speed Factor: 16 blocks
Copy Flag?:  1
Permanent Write Protect?:  0
Temporary Write Protect?:  0
FileSystem = FAT with Partition Table
----------------------------------------------
SDCard: -SDCardInfoQuery status = 0
SDCard: +SDCardInfoQuery
SDCard: -SDCardInfoQuery status = 0
SDCard: +SDCardInfoQuery
SDCard: -SDCardInfoQuery status = 0
SDCard: +SDCardInfoQuery
SDCard: -SDCardInfoQuery status = 0
SDCard: +SDCardInfoQuery
SDCard: -SDCardInfoQuery status = 0
SDMemCalcDataAccessClocks: Tpd:f ns, Asynch: f ns, AsyncClocks:0 , SyncClocks: 1078198272, ReadTotal: 0, Write Factor: 1094116192 WriteTotal: 37500
SDMemory: Initialize: Using block transfer size of 64 blocks
SDMemory: Idle Timeout: 2000 Idle Power State: 2
SDMemory: Power Management Setup complete
SDMemory: -SMC_Init
DeviceFolder::LoadDevice(\Drivers\SDCARD\ClientDrivers\Class\SDMemory_Class) last 153 Ticks

>> 'Documents and Settings' 0x10  h=0x4C0303
>> 'My Documents' 0x10  h=0x4C0303
>> 'Program Files' 0x10  h=0x4C0303
>> 'NANDFlash' 0x10  h=0x4C0303
>> 'Temp' 0x10  h=0x4C0303
>> 'Windows' 0x10  h=0x4C0303

I think that the drivers are able to talk with the SD card but the last call returns timeout and then the \SdMemory folder is not mounted in the root, as I see in the last enum root folders.

0 Kudos
Reply