从去年ad_nvms_get_partition_info()返回的信息ther partition

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
3 posts / 0 new
Last post
uniben
Offline
Last seen:2 years 1 month ago
Joined:2016-08-23 09:46
从去年ad_nvms_get_partition_info()返回的信息ther partition

SDK: 1.0.10-1072

Hello,

I need partition table infos and mentioned that ad_nvms_get_partition_info() returns data from other partitions than requested.

e.g.
ad_nvms_get_partition_info(NVMS_PARAM_PART, &info);

returns info from NVMS_FIRMWARE_PART.

As workaround I wrote my own function.

Thanks.
uniben

Device:
MT_dialog
Offline
Last seen:2 months 4 weeks ago
Staff
Joined:2015-06-08 11:34
Hi uniben,

Hi uniben,

The ad_nvms_get_partition_info() gets as a first parameter the index of the list that holds the partitions of the partition table and not the enum of the actual partition, for example if you invoke ad_nvms_get_partition_info(0, &entry), the function will return the info of the last partition located in the partition table, when the index is 1 the function will return the partition right before the previous one. The total partitions used, can be counted by the ad_nvms_get_partition_count() and you can check the info of each partition based on the index of the partitions list.

Thanks MT_dialog

uniben
Offline
Last seen:2 years 1 month ago
Joined:2016-08-23 09:46
Hi MT_dialog,

Hi MT_dialog,

Please update the sdk dokumentation.

Thanks uniben