Re: gcc-avr 4.9.2 -Os messes with interrupt vectors

<[email protected]> Sun, 8 May 2016 16:29:23 +0100 (BST)
Newsgroups gmane.comp.hardware.avr.gcc
Message-ID <[email protected]>
Thank you for your reply! I solved the issue thanks to Senthil, but FYI

PORTB |= (1 << PB5)

does *not* toggle the LED, it is OR, not XOR. It was actually a problem with 
some linker flags.

8. Mai 2016 15:53 von [email protected]:


> On 05/08/16 06:22, > [email protected]>  wrote:
>
> Looks like you are toggling the LED too fast to see it.
>
> Try adding a delay in the while loop
>
> while (1) {
>   PORTB |= (1 << PB5);
>   delay_ms(500); /* or something */
> }
>
> Look at the avr-libc documentation.
> http://nongnu.org/avr-libc/user-manual
>
> Tom Dean
>
> _______________________________________________
> AVR-GCC-list mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/avr-gcc-list

_______________________________________________
AVR-GCC-list mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avr-gcc-list