Click here to go to the forum index Click here for the home page
 
Author Message

<  TAP and patch development  ~  Can I command Toppy to a particular FF speed?

Page 2 of 2
Goto page Previous  1, 2
MarkPax
Posted: Wed Dec 15, 2010 7:11 pm Reply with quote
Frequent contributor Joined: 07 Nov 2010 Posts: 520
Hi FireBird, that worked, the compiler is now OK, but the linker complains. I set up a dummy TAP .c file which just includes EMJB's code from Post 2 and empty TAP_EventHandler and TAP_Main functions. Linker output below.

I have another question as well:- if I want to use this code instead, it looks like I will need the CallFirmwareA function which I think we just commented out. Can you help me with that? Is there a simple way to convert between the two (apart from using the code we just commented out Smile)

Thanks again

/usr/local/topfield-gcc/bin/mips-gcc -mlong-calls -msoft-float -mqnxpic -fno-delayed-branch -nostartfiles -T /usr/local/topfield-gcc/mips/lib/tap.ld -Wl,-Map,TommyFF.map -o TommyFF.elf TommyFF.o -L/usr/local/topfield-gcc/topfield-sdk/lib -ltap -lc -lm /usr/local/topfield-gcc/topfield-sdk/include/FireBirdLib_TF5000/libFirebird.a
/usr/local/topfield-gcc/topfield-sdk/include/FireBirdLib_TF5000/libFirebird.a(FindInstructionSequence_TF5000.o)(.text+0xa8): In function `FindInstructionSequence':
FindInstructionSequence_TF5000.c: undefined reference to `strlen'
/usr/local/topfield-gcc/topfield-sdk/include/FireBirdLib_TF5000/libFirebird.a(FindInstructionSequence_TF5000.o)(.text+0xdc):FindInstructionSequence_TF5000.c: undefined reference to `strtoul'
/usr/local/topfield-gcc/topfield-sdk/include/FireBirdLib_TF5000/libFirebird.a(FindInstructionSequence_TF5000.o)(.text+0x144):FindInstructionSequence_TF5000.c: undefined reference to `strlen'
/usr/local/topfield-gcc/topfield-sdk/include/FireBirdLib_TF5000/libFirebird.a(HDD_TAP_GetInfo_TF5000.o)(.text+0x11c): In function `HDD_TAP_GetInfo':
HDD_TAP_GetInfo_TF5000.c: undefined reference to `memset'
/usr/local/topfield-gcc/topfield-sdk/include/FireBirdLib_TF5000/libFirebird.a(HDD_ChangeDir.o)(.text+0x48): In function `HDD_ChangeDir':
HDD_ChangeDir.c: undefined reference to `strncpy'
/usr/local/topfield-gcc/topfield-sdk/include/FireBirdLib_TF5000/libFirebird.a(HDD_ChangeDir.o)(.text+0xcc):HDD_ChangeDir.c: undefined reference to `strchr'
/usr/local/topfield-gcc/topfield-sdk/include/FireBirdLib_TF5000/libFirebird.a(tapapifix_TF5000.o)(.text+0x540): In function `Fixed_TAP_Hdd_ChangeDir':
tapapifix_TF5000.c: undefined reference to `strcmp'
/usr/local/topfield-gcc/topfield-sdk/include/FireBirdLib_TF5000/libFirebird.a(ChangeDirRoot.o)(.text+0x58): In function `ChangeDirRoot':
ChangeDirRoot.c: undefined reference to `strcmp'
collect2: ld returned 1 exit status
make: *** [TommyFF.elf] Error 1

_________________
TF5800t, TS On, F/W: MS6 Recommended F/W 12/9/2009 +PeR0UUuWfZ
TAPs: TAP Commander 1.34; TommyFF v2.1; BlankStuff v2.5; MyInfo B5.5; EPG2MEI v0.96; MyStuff 6.5; Font Manager 1.0d; Extend v1.7; SecCache (UK) v0.4; EIT Sub v0.6; TF5000 Display v1.53;
Sig generated by MyInfo on 19/5/11
View user's profile Send private message
FireBird
Posted: Wed Dec 15, 2010 7:37 pm Reply with quote
Frequent contributor Joined: 05 May 2005 Posts: 358 Location: Vienna/Austria
It looks like the linker has some troubles with libc.a. I can remember that we had a problem with the linker and therefore the lib had to be the first and the last -l option. This is the way I have it in my build scripts:

Code:
... -l FireBird -l c -l tap -l gcc -l FireBird ...


Re. CallFirmwareA(): that macro has been provided by R2. Maybe the call to CallFirmwareA() in SetPlaybackMode() can be replaced with a

Code:
return CallFirmware(setPB, mode, speed, 0, 0);

No guarantees. Smile
View user's profile Send private message
MarkPax
Posted: Wed Dec 15, 2010 7:55 pm Reply with quote
Frequent contributor Joined: 07 Nov 2010 Posts: 520
You are a superstar! I am up and running with a simple TAP to change the FF speed. I have not yet played with R2-D2's code. Thanks very much for your help.
Happy Christmas
Mark

_________________
TF5800t, TS On, F/W: MS6 Recommended F/W 12/9/2009 +PeR0UUuWfZ
TAPs: TAP Commander 1.34; TommyFF v2.1; BlankStuff v2.5; MyInfo B5.5; EPG2MEI v0.96; MyStuff 6.5; Font Manager 1.0d; Extend v1.7; SecCache (UK) v0.4; EIT Sub v0.6; TF5000 Display v1.53;
Sig generated by MyInfo on 19/5/11
View user's profile Send private message
FireBird
Posted: Wed Dec 15, 2010 8:03 pm Reply with quote
Frequent contributor Joined: 05 May 2005 Posts: 358 Location: Vienna/Austria
Great! Very Happy

Happy Christmas to you too.

Cheers,
Alex
View user's profile Send private message
MarkPax
Posted: Wed Dec 15, 2010 8:08 pm Reply with quote
Frequent contributor Joined: 07 Nov 2010 Posts: 520
And this works too...
return CallFirmware(setPB, mode, speed, 0, 0);
So 10 minutes ago I had 0 ways of doing what I want, now I have 2 ways!

edit: I really am so pleased, I now have FF and RW which works like my old Thomson:- each press of the RW key slows down the FF speed, also when you reach max FF speed, further keypresses have no effect. Combined with WindFaster it's great for zooming through commercials at x16 without missing the start....

_________________
TF5800t, TS On, F/W: MS6 Recommended F/W 12/9/2009 +PeR0UUuWfZ
TAPs: TAP Commander 1.34; TommyFF v2.1; BlankStuff v2.5; MyInfo B5.5; EPG2MEI v0.96; MyStuff 6.5; Font Manager 1.0d; Extend v1.7; SecCache (UK) v0.4; EIT Sub v0.6; TF5000 Display v1.53;
Sig generated by MyInfo on 19/5/11
View user's profile Send private message

Display posts from previous:  

All times are GMT + 1 Hour
Page 2 of 2
Goto page Previous  1, 2

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum