(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,599 次查看
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,411 次查看
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,411 次查看
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,411 次查看
vallinaths
Contributor II

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

0 项奖励
回复