Relocate flash data from one partition to another.

⚠️
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 https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
nigelyang
Offline
Last seen: 3 weeks 13 hours ago
Joined: 2018-03-20 08:24
Relocate flash data from one partition to another.

hi Dialog,

    If I want to move a section data from one partition to another partition in flash, is there any more effective way to do that ? if using the funstions in ad_nvms.c, I have to open one partittion and read in ram buffer, then open another one and write from ram buffer. It seems not straightforward.   I believe that it is smiliar with suota case, move data from NVMS_FW_UPDATE_PART partition to NVMS_FW_EXEC_PART partition.

 thanks for your help.

Device: 
PM_Dialog
Offline
Last seen: 5 months 2 weeks ago
Staff
Joined: 2018-02-08 11:03
Hi nigelyang,

Hi nigelyang,

We strongly recommend the usage of the adapters for accessing hardware peripherals because not only provide access to the peripheral, but also make sure that other tasks which are currently accessing it, suspend their operation until the peripheral is once again released. So you don't have to worry if another task tries accessing the same peripheral at the same time. Also, in sleep mode all the peripheral blocks are powered down. Please check out the Flash Adapter Concept tutorial from the DA146x product page.

Thanks, PM_Dialog