View previous topic :: View next topic |
Author |
Message |
tigrezno Apprentice
Joined: 28 Jun 2002 Posts: 251 Location: Spain
|
Posted: Mon Apr 04, 2005 12:01 pm Post subject: gcc for avr with crossdev |
|
|
I've created a cross compiler for avr with crossdev. This is the output:
Code: | crossdev -t avr-unknown-linux-gnu
----------------------------------------------------------------------------------------------------------------
* Host Portage ARCH: x86
* Target Portage ARCH: x86
* Target System: avr
* Stage: 2 (C compiler & libc)
* binutils: binutils-[latest]
* gcc: gcc-[latest]
* headers: [none]-[latest]
* libc: avr-libc-[latest]
* PORTDIR_OVERLAY: /usr/local/portage
* PORT_LOGDIR: /var/log/portage
* PKGDIR: /usr/portage/packages/cross/avr
* PORTAGE_TMPDIR: /var/tmp/cross/avr
_ - · - _ - · - _ - · - _ - · - _ - · - _ - · - _ - · - _ - · - _ - · - _
* Emerging cross-binutils... [ ok ]
* Emerging cross-gcc-stage1... [ ok ]
* Emerging cross-avr-libc... |
Now i have a working avr-gcc, but my question is, what are the include files with avr-chip specific functions?
I see an avr-libc in portage, do i need to install them and use with crossdev or something? |
|
Back to top |
|
|
tigrezno Apprentice
Joined: 28 Jun 2002 Posts: 251 Location: Spain
|
Posted: Mon Apr 04, 2005 12:24 pm Post subject: |
|
|
mmm finally i found them in /usr/avr
I thought that atmega88 was supported by the C compiler but it wasn't |
|
Back to top |
|
|
tigrezno Apprentice
Joined: 28 Jun 2002 Posts: 251 Location: Spain
|
Posted: Mon Apr 04, 2005 7:14 pm Post subject: |
|
|
The winavr project have C support for atmega88, do you know how to get it on linux?
I've used crossdev with latest unstable binutils and avr-libc, but get no support. |
|
Back to top |
|
|
|