myMPX
Advertisement


Go Back MyMPx.org > MyMPx.org Forum > General Discussion

Hooray!!! Rockchip SDK!
Like Tree1Likes
Reply
Post New Thread
 
LinkBack Thread Tools
  #561 (permalink)  
Old 1st May 2010, 1:46 am
Junior Member
 
Join Date: Sep 2009
Posts: 31
Default


Quote:
Originally Posted by flasher86 View Post
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)();
}
Reply With Quote
  #562 (permalink)  
Old 1st May 2010, 4:52 am
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default

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).

Last edited by flasher86; 1st May 2010 at 5:26 am.
Reply With Quote
  #563 (permalink)  
Old 1st May 2010, 5:08 am
Junior Member
 
Join Date: Sep 2009
Posts: 31
Default

Quote:
Originally Posted by flasher86 View Post
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
Reply With Quote
  #564 (permalink)  
Old 1st May 2010, 6:28 am
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default

Quote:
Originally Posted by sig11 View Post
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 View Post
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 View Post
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).

Last edited by flasher86; 1st May 2010 at 6:35 am.
Reply With Quote
  #565 (permalink)  
Old 1st May 2010, 7:18 am
Junior Member
 
Join Date: Sep 2009
Posts: 31
Default

Quote:
Originally Posted by flasher86 View Post
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
Reply With Quote
  #566 (permalink)  
Old 1st May 2010, 7:45 am
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default

Quote:
Originally Posted by sig11 View Post
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 :-)

Last edited by flasher86; 1st May 2010 at 7:50 am.
Reply With Quote
  #567 (permalink)  
Old 1st May 2010, 9:32 am
knob's Avatar
Senior Member
Valued Member
 
Join Date: May 2007
Posts: 1,285
Default

Quote:
Originally Posted by flasher86 View Post
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
Click the image to open in full size.



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
Click the image to open in full size.
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
__________________
-----------------------------------------------------------------------------------------------------------

Last edited by knob; 3rd May 2010 at 12:19 am.
Reply With Quote
Sponsored Links
  #568 (permalink)  
Old 1st May 2010, 9:47 am
Member
I love my MPx player
 
Join Date: Jun 2009
Posts: 174
Default

Quote:
Originally Posted by knob View Post
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 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)
Reply With Quote
  #569 (permalink)  
Old 1st May 2010, 11:15 am
WIZARD's Avatar
Senior Member
MPx Junkie
 
Join Date: Mar 2008
Posts: 300
Thumbs up

Quote:
Originally Posted by knob View Post
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.
Reply With Quote
  #570 (permalink)  
Old 5th May 2010, 8:15 am
WIZARD's Avatar
Senior Member
MPx Junkie
 
Join Date: Mar 2008
Posts: 300
Default

Quote:
Originally Posted by flasher86 View Post
Besides, my rk26 player supports so much (flv, flac, ape, avi and rkp which is all I need)
Wow, your player is awesome!
Reply With Quote
Reply

Sponsored Links



Similar Threads
Thread Thread Starter Forum Replies Last Post
NEW rockchip player (Rockchip RK27xx series) availability knob General Discussion 38 12th Nov 2008 10:47 am
Rockchip Editor: for Rockchip 27xx ALP1987 Support and How To 6 17th Oct 2008 5:25 pm


All times are GMT -7. The time now is 9:08 pm.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0 RC 2
Back to Top

Designed by indiqo.media