Quote:
This function is reading page from flash ( I have hy27uu08ag5m , but it is the common command for all NAND-flash ): void readPage(unsigned int col,unsigned long row) { int i; write_mem(FLASH0_CMD,0x0); write_mem(FLASH0_ADDR,col & 0xFF); write_mem(FLASH0_ADDR,(col >> 8) & 0x0F); write_mem(FLASH0_ADDR,row & 0xFF ); write_mem(FLASH0_ADDR,(row >> 8) & 0xFF); write_mem(FLASH0_ADDR,(row >> 16) & 0x03); write_mem(FLASH0_CMD,0x30); printf("\n"); for ( i = 0; i < 2112; i++ ) { buff[i] = read_mem(FLASH0_DATA); } } The first page that I have read from flash was a part of firmare with some offset. |
Wow, its great! You're genius!
|
Awesome
New breakthrough! :rolleyes:
|
Break on through to the other side! Nice!
This is rk26xx related, isnt it? |
1 Attachment(s)
I used that function to read flash data, it works, though I had some problems. When I set up the FatFS lib for this, it showed me some weird filenames in the root dir (sometimes I get those names even with embed explorer, which needs a restart or reformat of the drive). Also we need to figure out where the offset of flash drive is written. I wrote a function which scans flash mem looking for fat file system, though it took 15 minutes to find it - getting through 14mb of FW data.
Quote:
EDIT: Small piece of work regarding open dialog. Attachment 528 look how extremely fast it draws graphics. |
Quote:
Though, it's better than nothing! :rolleyes: EDIT: This open dialog is nice! However, I can't open anything :p |
Yeah, its incomplete.
Coming back to this flash memory. Is there someone who knows where in the FW data the total FW size is coded? it must be somewhere, like this tool for creating themes for rk26 knows exactly where bmp resources begin in the RKW file. |
This is nice work, flash.
sig11 has done a file manager too. try looking at the source from dancemammal editor, it's in delphi. http://mympxplayer.org/dancemammal-m...030-df882.html |
I'll check it, thanks.
BTW. Do you know how to hack memory flash in rk27? I still got one of these with one 4gb chip broken. I got 4gb of usable capacity while other 4 is dump space. How to format it to appear to be 4gb partition instead of 8gb? Those guys from ebay did that so it must be possible. |
Never had the memory hack problem myself.
Someone here has fixed a Rockchip memory hack:- http://mympx.org/forum/support-how/4...4-players.html but not sure which version it refers too. btw have you had issues with do,while() and printf() with the rk26xx Sdk/Gdk? I've been looking at porting again and had some problems with bugs in the SDK. |
| All times are GMT -7. The time now is 8:38 pm. |
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 RC 2