rtems_clock_set @ sparc v7 does not work!

Joel Sherrill joel.sherrill at oarcorp.com
Thu Jun 1 14:01:17 UTC 2006


Can any ERC32 users help here?    Someone has to have faced this before.

--joel

Grigori Khmyrov wrote:

> I can compile my project in 4.6.2 SPARC BSP and use MKPROM to get image,
> but the binary I create doesn't boot.
> I think one parameter missing in the new MKPROM "-Ttext 0x1000000" to 
> prepare
> image for EEPROM.
>
> Thanks for comments,
> Grigori
>
> Joel Sherrill wrote:
>
>> Grigori Khmyrov wrote:
>>
>>> Yes, it would be reasonable explanation!
>>> I use RTEMS 4.0.0 for the sparc BSP
>>> And 4.6.2 for i386 BSP (which works)
>>>
>>> How can I patch "memory barrier" for version 4.0.0?
>>> I can not switch easy to the new rtems version because of mkprom 
>>> support.
>>>
>> If you are using 4.0.0 and having problems, then I really can't begin to
>> evaluate what is wrong.  That is a very very old version and the gcc you
>> are using is very likely too old to even trip the memory barrier 
>> problem.
>>
>> Why is mkprom an issue?  There has to be a way to do the equivalent
>> functionality after a tool upgrade.  Even if you have to use objcopy and
>> then run the old mkprom.
>>
>> --joel
>>
>>> Thank you,
>>> Grigori
>>>
>>>
>>> Joel Sherrill wrote:
>>>
>>>> Grigori Khmyrov wrote:
>>>>
>>>>> When I set new time at sparc v7 board using rtems_clock_set( 
>>>>> &newTime ) function,
>>>>> at some point ticks jump back to previous value!?
>>>>>
>>>>> It does not happen if I use rtems_clock_set twice:
>>>>> rtems_clock_set
>>>>> rtems_clock_set
>>>>>
>>>> What version of RTEMS are you using?  Does it have the "memory 
>>>> barrier" patch?
>>>>
>>>> This sounds like the interrupt critical section issue that was 
>>>> addressed by that patch.
>>>>
>>>>> I have same code running at i386 processor and rtems_clock_set is 
>>>>> working OK.
>>>>>
>>>>> Any ideas?
>>>>>
>>>>> Thank you,
>>>>> Grigori
>>>>>
>>>>
>>>
>>
>




More information about the users mailing list