MyMPx.org

MyMPx.org (http://mympx.org/forum/)
-   General Discussion (http://mympx.org/forum/general-discussion/)
-   -   Hooray!!! Rockchip SDK! (http://mympx.org/forum/general-discussion/43348-hooray-rockchip-sdk.html)

sig11 1st May 2010 1:46 am

Quote:

Originally Posted by flasher86 (Post 286161)
It shows START...
I press some key and it shows some number just below it (66 or 64?), then there are some messages and "Press any key to continue" text. After that nothing.

I don't know if this suppose to continue after some key is pressed but it stucks here(no quit possible). Also I noticed that backlight of my touchpad is always turned on in your application, while by default it turns on when I hit the button and turns off about a sec later. So I don't think that it should be used - it interfere custom input driver.

Beside that, its amazing how your console works. I like it!

EDIT:
I downloaded file manager from your repository, and it doesn't get stuck before init, but keyboard isn't working on my player. It acts like it was always the same button. Waiting for a new version so I can test it. It looks nice.

Here is source of main() from attached rkp.
As you can see it uses loop without returning from main().
Could you tell me codes for each your key?

int main()
{
int iOldPwr = read_mem(CLOCK_PWRCON);
int nKey;
int i;
unsigned int iAddr = 0;
unsigned int imask_tmp;
int iSec =0;
read_creg(%imask, imask_tmp);
write_creg(%imask, 0x0000);

initConsole();
printf(" Start...\n");
while ( 1 ) {
nKey = waitKey();
printf("Pressed %04x\n",nKey);
if ((nKey & KEY_VAL_PLAY) ) {
break;
}
}
setCursor(0,14);
setColor(COLOR_WHITE);
setColorBg(COLOR_BLACK);
printf("\n\n\n");
printf("FAP vers. 0.3\n");
printf("(C) 2010 by Y.Pokhilko (sig11@mail.ru)\n");
printf("Latest version always at:\n");
printf("http://ypokhilko.vn.ua/apps/\n");
printf("Press any key to continue\n");
waitKey();
waitKey();
write_creg(%imask, imask_tmp);
SetGameFreq(72);
write_mem(CLOCK_PWRCON,iOldPwr);
(*GameExit)();
}

flasher86 1st May 2010 4:52 am

I noticed that they are all the same for no matter what key I press (either 66 or 64 randomly). It reminds me trying to init my touchpad using firmware from SDK (rk26). My touchpad seems to be using completely different way of getting input values rather than simple reading GPIO pin states.

But your app seems to work even if main() function does not finish quickly. What's the trick? Everytime I (and knob also) lengthen the time of executing this function above 2 secs it crashes. Is this caused by this (*GetKeyVal)() function?

Also I noticed you added CPU management to your apps, that's something I planned to do for a long time (I noticed huge battery consumption while running some RKP app because of that).

btw. It somehow reads that I touch my touchpad, but its rather caused by reaction of back-light (of touchpad) driver which is mainly operated by KEY_PORT mem address (the higher value in there, the brighter lights of touchpad are).

sig11 1st May 2010 5:08 am

Quote:

Originally Posted by flasher86 (Post 286168)
I noticed that they are all the same for no matter what key I press (either 66 or 64 randomly). It reminds me trying to init my touchpad using firmware from SDK (rk26). My touchpad seems to be using completely different way of getting input values rather than simple reading GPIO pin states.

It is very bad..
Probably needed to use another port?
Quote:

But your app seems to work even if main() function does not finish quickly. What's the trick? Everytime I (and knob also) lengthen the time of executing this function above 2 secs it crashes. Is this caused by this (*GetKeyVal)() function?
I have disabled any interrupt

Quote:

Also I noticed you added CPU management to your apps, that's something I planned to do for a long time (I noticed huge battery consumption while running some RKP app because of that).
My application works above 6 hours from battery :)

flasher86 1st May 2010 6:28 am

Quote:

Originally Posted by sig11 (Post 286169)
It is very bad..
Probably needed to use another port?

What do you suggest? I tried to make driver for my touchpad but with no success, I don't have enough experience. I even asked WANNABE to disassemble my original firmware to elicit this driver, but ASM code is too confusing to me so I gave up.

Quote:

Originally Posted by sig11 (Post 286169)
I have disabled any interrupt

#define DMA_DISABLE_INTERRUPT { read_creg(%imask, imask_tmp); bitclear_creg(%imask, 15); }
#define DMA_ENABLE_INTERRUPT { write_creg(%imask, imask_tmp);}

is this enough? I used it to disable interrupt while managing SDRAM transfer. But I always enable it once transfer is done. If I disable it completely, it wont crash then? How about this screen refresh, it refreshes screen after main() is ended. Are you uploading graphics directly to LCD_DATA memory?

Quote:

Originally Posted by sig11 (Post 286169)
My application works above 6 hours from battery :)

No wonder why, if you can manipulate sys freq in game Another improvement would be turning off the screen. I was messing around with the screen, and I managed to manipulate backlight driver of the screen that it can gradually get darker or brighter but I don't know if it can be introduced to RKP platform because of different LCD drivers (tested only on mine).

sig11 1st May 2010 7:18 am

Quote:

Originally Posted by flasher86 (Post 286170)
What do you suggest? I tried to make driver for my touchpad but with no success, I don't have enough experience. I even asked WANNABE to disassemble my original firmware to elicit this driver, but ASM code is too confusing to me so I gave up.

I have no ideas for this case, but I will think.

Quote:

#define DMA_DISABLE_INTERRUPT { read_creg(%imask, imask_tmp); bitclear_creg(%imask, 15); }
#define DMA_ENABLE_INTERRUPT { write_creg(%imask, imask_tmp);}

is this enough? I used it to disable interrupt while managing SDRAM transfer. But I always enable it once transfer is done. If I disable it completely, it wont crash then? How about this screen refresh, it refreshes screen after main() is ended. Are you uploading graphics directly to LCD_DATA memory?
I have disabled timer interrupt too.(all interrupts at all)
I am using LCD_DATA port to generate bitmap and I do not use SDRAM yet.
Quote:

No wonder why, if you can manipulate sys freq in game Another improvement would be turning off the screen. I was messing around with the screen, and I managed to manipulate backlight driver of the screen that it can gradually get darker or brighter but I don't know if it can be introduced to RKP platform because of different LCD drivers (tested only on mine).
I do not know how to do it yet

flasher86 1st May 2010 7:45 am

Quote:

Originally Posted by sig11 (Post 286171)
I have disabled timer interrupt too.(all interrupts at all)

I remember that AleMaxx tried to do something with my driver, and he mentioned some interruptions are used, maybe that's why backlight of my touchpad is always turned on in your app? Maybe not all interruptions should be disabled?

Gosh, I wish I had player with normal keyboard. This touchpad is driving me crazy, not only because of this whole mess, but it happens that touchpad locks up sometimes and I need reset - developers of my player did lazy job in creating their driver.

Also if I was able to do my own driver I would be able to use touchpad more efficiently (for example finger sliding detection is supported by the chip but it's not supported by built-in driver). So some sort of mouse-like input would be possible - just dreaming :-)

knob 1st May 2010 9:32 am

Quote:

Originally Posted by flasher86 (Post 286172)
Gosh, I wish I had player with normal keyboard. This touchpad is driving me crazy, not only because of this whole mess, but it happens that touchpad locks up sometimes and I need reset - developers of my player did lazy job in creating their driver.

I have been thinking of getting a 2nd, spare, rk26xx player, but the only one I have found for sale that supports .rkp is this one:-
DealExtreme: $41.90 Stylish 2.4-inch 1GB MP4 Player with SD Card Slot
http://www1.dealextreme.com/producti...23_1_small.jpg



Not sure if this one supports .rkp:-
206K Full Color 1GB MP4 Player - Easy Navigation Keys China Wholesale - ***************
Buy China wholesale - 206K Full Color 1GB MP4 Player - Easy Navigation Keys
http://www.davismicro.com/bookpic/20085222045067430.jpg
I really like this player best, with a removable nokia phone battery too, full size SD card,
buttons look nice (I count a total of 10!), would be better in 2GB though.


update. found a 2Gig one. ;)
http://www.onvon.com/206k-full-color...5e3558cb38f782

flasher86 1st May 2010 9:47 am

Quote:

Originally Posted by knob (Post 286173)
I have been thinking of getting a 2nd, spare, rk26xx player, but the only one I have found for sale that supports .rkp is this one:-

DealExtreme: $41.90 Stylish 2.4-inch 1GB MP4 Player with SD Card Slot

Great Idea! I also was searching from time to time for a new rk26 player, its more simple than rk27 and thats the beauty. Besides, my rk26 player supports so much (flv, flac, ape, avi and rkp which is all I need). Another thing, I noticed that I have better sound in my rk26 player than in rk27 :confused: Though I wouldn't complain if I had rk27 player with RKP platform support (I meet one of these once on Ebay but it was a long time ago)

WIZARD 1st May 2010 11:15 am

Quote:

Originally Posted by knob (Post 286173)
I have been thinking of getting a 2nd, spare, rk26xx player, but the only one I have found for sale that supports .rkp is this one:-

DealExtreme: $41.90 Stylish 2.4-inch 1GB MP4 Player with SD Card Slot

This player's firmware is similar to mine, and I don't have the killing "memory effect".
Also, the firmware is really good (IMHO) ;)
I think I can recommend it.

WIZARD 5th May 2010 8:15 am

Quote:

Originally Posted by flasher86 (Post 286174)
Besides, my rk26 player supports so much (flv, flac, ape, avi and rkp which is all I need)

Wow, your player is awesome! :rolleyes:


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