Support for larger NAND chips?
7134956 opened this issue · 9 comments
I see several restrictions that I have to work around.
uint32 is not enough for chip size.
Buffer needs to be moved to file.
For 1GB chip, reading BB ended with timeout. I added progress notification from programmer for resolve issue. Progress displayed in user interface.
7134956@5774ef6
Thanks for BB read progress feature. I've merged it.
I think chip size just need to be moved to uint64 but need to check. Could you elaborate your point about moving buffer to file?
I don't know the architecture of the application, but the memory buffer for 1GB is not allocated . In my opinion, before reading the chip, you need to select a file and read into it. Viewer window must will display contents of the file.
I modified the program to work without buffer allocation. Reading goes to the selected file with a request when overwriting. The file name is conveniently changed in the line or through the selection dialog.
7134956@1781d09
I also have code to support large chips, but I don't like that all the data in the table is now using uint64 and a lot of changes.
Great work! I've merged it. Thank you!
QAbstractTableModel uses a lot of memory to support item selection. There is no way to change this behavior and refuse to allocate memory per row. I made a simple QAbstractScrollArea viewer widget and drew the content with a QPainter. The amount of memory does not grow with the size of the buffer. Commit will be posted soon.
Now use lightweight dataViewer without data size limitation full builded on QPainter
7134956@e8e8dab
Very nice solution with data viewer. Thank you!
Chip size type is extended to u64 so it should support large sizes. Thanks for help. Closing issue.