Tool/software:
When the SWAP feature is enabled with A and B partitions configured, actual testing revealed that after setting the active region to A (FSS_selectRegionA
), calling Flash operation APIs like Flash_read
to read data at offsets 0x100000
and 0x500000
always retrieves data from the physical address 0x60100000
. Similarly, when set to region B, reading the same offsets (0x100000
and 0x500000
) consistently returns data from the physical address 0x60500000
.Specifically as follows:
This leads to a question: How can I use Flash operation APIs (Flash_read
, Flash_write
, etc.) in region A to manipulate data physically located in region B (e.g., at 0x60500000
)?
One approach I'm considering is that when operating in region A but needing to access region B Flash data, I would first switch to region B using FSS_selectRegionB
, perform the necessary Flash operations, and then switch back to region A (FSS_selectRegionA
) before exiting. Is this method feasible? Are there any other more reliable or simpler methods available?
Thank you very much for your answer!!