[U-Boot] toolchain for u-boot

Angelo Dureghello angelo70 at gmail.com
Sat Jul 30 16:49:19 CEST 2011


On 30/07/2011 13:47, Angelo Dureghello wrote:
> On 30/07/2011 13:05, Wolfgang Wegner wrote:
>> Hi Angelo,
>>
>> On Sat, Jul 30, 2011 at 11:06:56AM +0200, Angelo Dureghello wrote:
>>> hi all,
>>>
>>> i have some issues with an mcf5307 (coldfire, see my previous post of 38 Jul).
>>>
>>> I am now suspecting of some differences in the toolchain.
>>>
>>> Is there a specific gcc toolchain (or gcc version) required to build u-boot ?
>>
>> I had good results using CodeSourcery Light (don't remember the exact version,
>> something from 2009) for MCF5373 and MCF54455 in early 2010.
>>
>> Unfortunately I am currently not working on it any more.
>>
>> Best regards,
>> Wolfgang
>>
> 
> many thanks,
> 
> i have a very strange issue:
> 
> on a timer interupt i ger a vector 3 error:
> 
> _int_handler:
> 	// commeneted all, only rte left, exception in rte
> 
> 	rte
> 
> 
> 
> *** Unexpected exception ***
> Vector Number: 3  Format: 04  Fault Status: 4
> 
> PC: 00fe910a    SR: 00002000    SP: 00ed8af0
> D0: 00002c1b    D1: 0000001b    D2: 00400000    D3: 00ee8b76
> D4: ffc12d08    D5: ffffffff    D6: 00ffad57    D7: 00ee8b76
> A0: 00ee8b76    A1: 00fe9604    A2: 00ee8bc6    A3: 00ffd400
> A4: 00ff8167    A5: 00ffbb00    A6: 00ed8b48
> 
> 
> there is nothing inside the interrupt handler, so there would be apparently any reason to get the exception on "rte", so my only suspect is about toolchain/compiler.
> 
> every help is welcome
> 
> 
> Reagards,
> angelo
>  

I found something interesting:

_int_handler:
	rts

seems to work, execution return to board_init_r, even if still the command console seems locked.

_int_handler:
	rte

generate the exception above.

Seems that @ SP there is the "next" return address instead of the vector/format/status values.


Any help is really appreciated.















More information about the U-Boot mailing list