[mc1322x] ROM vars

Mariano Alvira mar at devl.org
Thu Apr 15 06:57:13 EDT 2010


On Thu, Apr 15, 2010 at 12:36:01PM +0200, Manuel Macías wrote:
> Hi!
> As I commented in other mails I was working in contiki examples and I  
> couldn´t get them working. I´ve been looking for the error during  
> several weeks, and I realized while trying to work rf-test (libmc1322)  
> that the problem is about ROM patching. When the example has to use ROM  
> VARS, it doesn´t work. The concrete instruction that makes it get  
> stalled is
>
> #ifdef USE_ROM_VARS
>     bl _rom_data_init+.-base
> #endif
>
> The address of the jump instruction is:
> .set base, .
> .set _rom_data_init, 0x108d0
>
> I´m using freescale 1322xSRB motes. Any idea of how to fix this, or  
> where can I find info of that address?

Ok, this is odd. I believe this use to be a problem a while ago... I'm
not sure why you are seeing it now.

rom_data_init is a ROM function that initializes ROM variables
allocated here:

.org 0x120
ROM_var_start: .word 0
.org 0x7ff
ROM_var_end:   .word 0

in start.S.

In the versions of start.S in the branches that work right now,
(mc1322x-2.4 and WIP-2.4), there the line you sent is simply 

     bl _rom_data_init+.-base	 

and not 

#ifdef USE_ROM_VARS
     bl _rom_data_init+.-base
#endif

Can you veryify for me what you have checked out?

-Mar.



More information about the mc1322x mailing list