>> What is your avr-gcc version?
>Configured with: ../gcc-4.3.3/
That's strange as by 4.3.3 the avr6 (subfamily/group where both ATMega256x
belong) support was certainly already established. I use 4.2.2 for my
daily work with ATMega2560.
But it is known to be tricky to build a working package.
Hi Jan,
> That's strange as by 4.3.3 the avr6 (subfamily/group where both ATMega256x
> belong) support was certainly already established. I use 4.2.2 for my
> daily work with ATMega2560.
avr6 definitely does not show up in my "Known MCU names:" list. It ends at
avr5!? :-(
And my gcc is
Config
> Hi Jan,
> What is your avr-gcc version?
-bash-3.2$ avr-gcc -v
Using built-in specs.
Target: avr
Configured with: ../gcc-4.3.3/configure --target=avr --prefix=/usr/local/avr
--enable-languages=c --disable-libssp --disable-shared --disable-libada
--disable-libssp --disable-nls --with-dwarf2 --w
Hi Tom,
> #define F_CPU 1600UL /* 16 MHz CPU clock */
> #include
> #include
> #define OUTPUTPORT PORTB
> #define OUTPUTPIN PB7
> int main (void) {
> DDRB = 0xff; // all outputs
> while (1) /* loop forever */
>{
> if ((PORTB & _BV(PB7)) > 0) PORT
What is your avr-gcc version?
Jan
___
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list
On 11/26/14 14:25, Andreas Höschler wrote:
#define F_CPU 1600UL /* 16 MHz CPU clock */
#include
#include
#define OUTPUTPORT PORTB
#define OUTPUTPIN PB7
int main (void) {
DDRB = 0xff; // all outputs
while (1) /* loop forever */
{
if ((PORTB
Hi Tom,
>> #define F_CPU 1600UL /* 16 MHz CPU clock */
>> #include
>> #define OUTPUTPORT PORTB
>> #define OUTPUTPIN PB7
>> int main (void)
>> {
>>DDRB = 0xff; // all outputs
>>while (1) /* loop forever */
>> {
>> if ((PORTB & _BV(PB7)) > 0)
On 11/26/14 11:46, Andreas Höschler wrote:
#define F_CPU 1600UL /* 16 MHz CPU clock */
#include
#define OUTPUTPORT PORTB
#define OUTPUTPIN PB7
int main (void)
{
DDRB = 0xff; // all outputs
while (1) /* loop forever */
{
if ((PORTB & _BV
HI all,
I have programmed ATMega8 in the past (worked great). I have purchased a
ATMega2560 board now and am trying to get my avr gcc tool chain to accept this
chip:
Makefile
==
# AVR-GCC Makefile
PROJECT=toggle_led
SOURCES=main.c
HEADERS=
CC=avr-gcc
OBJCOPY=avr-objcopy
MMCU=at