This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: I2C Driver not initializing


Ok that was the problem, the i2c file was rejected by the linker and
not included in the code since considered unused, it works now ...

I feel shame ^^

Thanks a lot Andrew, as usual :)

On 9/11/07, Andrew Lunn <andrew@lunn.ch> wrote:
> > Well even the generic I2C driver code is not initialized so I think I
> > made a mistake by forgetting something or misunderstanding the whole
> > concept ^^
>
> Do you call any I2C function? If nothing is using I2C it will all get
> throw out by the linker.
>
> Take a look at the functions which are actually in your
> image.
>
> arm-elf-objdump --syms myprog
>
> Is the i2c code there?
>
>    Andrew
>

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]