[mc1322x] Access to LQI

Clive Stubbings cstl at xentech.co.uk
Thu Jun 10 17:37:29 EDT 2010


Hi Mar,

That didn't work. I'm guessing that the rom call isn't compatible with your 
wireless code - or the address is wrong, or the call in the s/w build I have 
is different from the one into ROm... or whatever..

Not done any RE for a long time... Is there a dis listing that people are 
working on somewhere? I'm presuming the ws-dis and mc..img are ram only.

Cheers
Clive


On Thu, 10 Jun 2010, Clive Stubbings wrote:

> Thanks Mar,
>
> I'll try your NVM method :-)
>
> I've got a bit of code generated in one of the beekit apps that seems to call 
> it, so hopefully that should be the same.
>
> BTW, you tracked it down to MACPHY.a. Where did you get that from? I do have 
> a couple of beekit examples that I generated code for (though I never tried 
> building it) some time ago. In there, all I found was in 'MC1322x.a'
>
> Synthesizer.o:
> 000001ad T PhyPlmeGetLQI
>
> Cheers
> Clive
>
>
>
> On Thu, 10 Jun 2010, Mariano Alvira wrote:
>
>> On Thu, Jun 10, 2010 at 05:07:50PM +0100, Clive Stubbings wrote:
>>> OK,
>>> 
>>> So is there a way to call that?
>>> 
>>> Can I just do something like..
>>> 
>>> .global PhyPlmeGetLQI
>>> .type PhyPlmeGetLQI, %function
>>> .thumb_set PhyPlmeGetLQI, 0x0000e04c
>>> .weak PhyPlmeGetLQI
>> 
>> 
>> Hmmm... something like that might work. I use the ROM calls for the
>> nvm routines. You can see how I do it in ~/libmc1322x/lib/nvm.c. E.g.:
>> 
>> nvmErr_t (*nvm_erase)
>> (nvmInterface_t nvmInterface, nvmType_t nvmType ,uint32_t
>> sectorBitfield)
>> = (void*) 0x00006e05;
>> 
>>> Or do I need to go look at that rom dissassmbly and work out whats 
>>> happening?
>> 
>> Sometimes you do; in order to figure out what to pass it or how to
>> call it, for instance.
>> 
>> -Mar.
>> 
>
> _______________________________________________
> mc1322x mailing list
> mc1322x at devl.org
> http://devl.org/cgi-bin/mailman/listinfo/mc1322x
>



More information about the mc1322x mailing list