[En-Nut-Discussion] Nut/OS Build Problems for AVR32

Thiago A. Corrêa thiago.correa at gmail.com
Thu Apr 26 00:53:22 CEST 2012


Hi Ole,

   I've commited a fix for the build errors to trunk

2012/4/22 Ole Reinhardt <ole.reinhardt at embedded-it.de>:
>
> - nut/arch/avr32/dev/pm.h:
>  A "#include <inttypes.h>" is needed (uint32_t is unkown otherwise)

I've set the same set of include files as the pm_uc3l.c

> - nut/arch/avr32/dev/ih_irqX.c:
>
>  INTERRUPT0_ALT_PIN and INTERRUPT0_ALT_PINSET is unknown.
>
>  I think an include of "cfg/arch/avr32pio.h" would be needed and
>  defaults for these settings should be defined either for the CPU in
>  general of for each board config, right?

I'm not sure if there is any sensible default. Right now I've defined
it in evk1100-intram config.

> - nut/arch/avr32/dev/usart.c:
>  undefined AVR32_USART_CSR_MASK
>  undefined AVR32_USART_IDR_MASK
>
>  I have no Idea where these could be found... (defined them to a dummy
>  value to do further compile testing)
>

Yeah, that was my fault when porting to UC3L. Some chips inside the
AVR32 family sometimes have a different set of defines in the compiler
headers.
I've fixed it setting default values when they are not provided.

Kind Regards,
    Thiago A. Correa



More information about the En-Nut-Discussion mailing list