This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problems with ATMEL-libraries

Hi,
I use the functions coming with µVision for ARM.

example out of lib_AT91SAM9260.h:

__inline void AT91F_PIO_SetOutput(
        AT91PS_PIO pPio,   // \arg  pointer to a PIO controller
        unsigned int flag) // \arg  output to be set
{
        pPio->PIO_SODR = flag;
}

The problem is, that under some circumstances the register is not set.
If I set the register "by hand" inside the memory view it works.
And if I use

AT91C_BASE_PIOC->PIO_SODR = flag

it works in most cases. In all cases

*AT91C_PIOC_SODR = flag

works.

Does someone have the same problem?