(0x30aa) PMGR INVALID PARTITION error while mouting the SD card file system

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

(0x30aa) PMGR INVALID PARTITION error while mouting the SD card file system

1,686件の閲覧回数
vallinaths
Contributor II

Working on example program of  MFS sdcard example that represents my case but it doesn't work:

Platfrom : MQX 4.0.2GA build

Controller : K60

    char         filesystem_name[] = "a:";

    char         partman_name[] = "pm:";

    char         partition_name[] = "pm:1";

/* Open the device which MFS will be installed on */

sdcard_handle = fopen("sdcard:", 0);

...

/* Install partition manager over SD card driver */

error_code = _io_part_mgr_install(sdcard_handle, partman_name, 0);

..

/* Open partition */

partition_handle = fopen(partition_name, NULL);  -->return Error


By step into debug mode i see that error is generated in

int_32 _pmgr_get_part_info

    (

    PART_MGR_STRUCT_PTR        pm_struct_ptr,   /*[IN] the partition manager information */

    PMGR_PART_INFO_STRUCT_PTR  host_entry       /*[IN]/[OUT] the entry to read from disk */

    )

............

            _pmgr_disk_to_host(disk_entry + host_entry->SLOT - 1, host_entry);

            if (host_entry->TYPE == 0 || host_entry->START_SECTOR == 0 || host_entry->LENGTH == 0)

            {

               error_code = PMGR_INVALID_PARTITION;

            }

.........

}


Please folks worked on SD card example program please puit the lime light ,


ラベル(1)
タグ(1)
0 件の賞賛
返信
3 返答(返信)

1,498件の閲覧回数
Rick_Li
NXP Employee
NXP Employee

could you please let me know what it the return error value?

when testing the example sdcard example from MQX V4.1 (the latest version) on your side, is this problem still remains?

another question: which board are you using?

0 件の賞賛
返信

1,498件の閲覧回数
Wlodek_D_
Senior Contributor II

Hello,

Thank you for your post, however please consider moving it to the right community place (e.g. MQX Software Solutions or  Kinetis Microcontrollers) to get it visible for active members.

For details please see general advice Where to post a Discussion?

Thank you for using Freescale Community. 

0 件の賞賛
返信

1,498件の閲覧回数
vallinaths
Contributor II

Any updates , any body as any information of the aove issue

0 件の賞賛
返信