Other Parts Discussed in Thread: HALCOGEN
Tool/software:
Hi,
I am trying to understand how does FEE code generated by Halcogen convert the block address to the memory address? What formula does it use to convert block number to address?
Thanks,
Ravi
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Ravi,
Please refer below FEE user guide to understand sectors and blocks organizations in flash using FEE module.
--
Thanks & regards,
Jagadish.
Hi Jagadish,
I read through the document but it does not talk about address translation anywhere. Upon reading questions related to FEE on this forum, it seems like everytime a write is performed, it writes to different virtual sectors in sequence. For eg: Write first time will be written to VS0 and second time to VS1 and third time back to VS0 and so on for an FEE configured with 2 VS's. IS my understanding correct? If so, the data address would be different each time and will not be a fixed address. Is this correct?
Thanks,
Ravi
Hi Ravi,
For eg: Write first time will be written to VS0 and second time to VS1 and third time back to VS0 and so on for an FEE configured with 2 VS's. IS my understanding correct? If so, the data address would be different each time and will not be a fixed address. Is this correct?
Mostly correct.
First one sector will act as an active virtual sector (Let's assume VS1) and all the data blocks you are trying to write will be moved to this active virtual sector and once this active virtual sector was full then the valid data in this sector will get moved to the next virtual sector for example assume VS2 and now onwards this VS2 will become new active sector and VS1 will be marked for erase in the background. So, now if you try to write any new data the corresponding data will be moved to the VS2 until again this VS2 full.
If VS2 full then again VS1 will become active virtual sector and the process continuous.
Yes, there won't be any address translations. And yes, each time the address might be different and not fixed.
--
Thanks & regards,
Jagadish.