[mc1322x] ROM vars

Joaquín Cabezas joaquincabezas at gie.esi.us.es
Thu Apr 15 07:10:35 EDT 2010


I'm working with Manuel, he's out for lunch right now.

We've checked out libmc1323 git, not the contiki branches. But seeing 
both, the only difference is the TARGET_WITH_ROM_VARS variable.

We came to this point because when using TARGET_WITH_ROM_VARS blink_led 
wasn't working properly. So,
we found out that the single line:

bl _rom_data_init+.-base

  is preventing our mc13224 from running.

In the contiki branch, this line is allways being executed, and that's 
why it does not work.
In the libmc1323 branch, there is the option of disabling it if we don't 
set TARGET_WITH_ROM_VARS, and that's why
we are able to run some examples (blink, uart loopback..)

El 15/04/2010 12:57, Mariano Alvira escribió:
> 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.
>
> _______________________________________________
> mc1322x mailing list
> mc1322x at devl.org
> http://devl.org/cgi-bin/mailman/listinfo/mc1322x
>    


-- 
	*José Joaquín Cabezas Rodríguez *
joaquin.cabezas at gie.esi.us.es
*Grupo de Ingeniería Electrónica* /
/
*/Departamento de Ingeniería Electrónica/
*
Tfno: +34 954485966
Fax: +34 954487373
Escuela Superior de Ingenieros
Universidad de Sevilla
Camino de los Descubrimientos s/n
Isla de la Cartuja     41092 Sevilla


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://devl.org/pipermail/mc1322x/attachments/20100415/62861c30/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: GIE.JPG
Type: image/jpeg
Size: 10795 bytes
Desc: not available
URL: <http://devl.org/pipermail/mc1322x/attachments/20100415/62861c30/attachment.jpeg>


More information about the mc1322x mailing list