Karsten Kaufmann

using readl, writel, ioremap in CW for Power Architecture V8.7 (Windows hosted)

Discussion created by Karsten Kaufmann on Apr 11, 2007
Latest reply on Apr 17, 2007 by Karsten Kaufmann
I want to design a simple Linux C-Application using the CodeWarriors Embedded Project Wizard.

Following my selections:
- Linker: EPPC Linux GNU Linker
- Application, language C
- GCC Toolchain: gcc-3.3.2-glibc-2.3.2
- Processor type: 83xx

To have I/O access to the registers memory map to the MPC8349 on my board
I added functions like readl, writel and ioremap.
For referencing these functions I included the headerfile 'asm/io.h'.

When I want to make the *.elf file the linker shows the error message like this:
undefined reference  to 'readl'.

Do I have to add any compiler or linker options?
In which libraries can I find these functions?
Does the linker using this library?
Is any important setting to do in the IDE?

Please let me know if anybody have an idea to make it work.
Thanks in advance.

Outcomes