EmbDev.net

Forum: ARM programming with GCC/GNU tools WinARM AT91SAM7S64 definition file <AT91SAM7S64.h>


Author: Paulo Sousa (psousa)
Posted on:

Rate this post
0 useful
not useful
Hi,

I've ordered an AT91SAM7S64 board from Olimex and am now starting to
look into WinARM.

When looking at the examples for the AT91SAM7S, I noticed the
"AT91SAM7S64.h" (which seems to be the same file as in the
"BasicIAR-SAM7S64-IAR430A" package from Atmel -
http://www.atmel.com/dyn/resources/prod_documents/...)
appears to be out of date.

Some details like the "AT91C_IFLASH_NB_OF_PAGES" and the
"AT91C_IFLASH_NB_OF_LOCK_BITS" seem to have been added to reflect the
values described on the datasheet (512 and 16), as well as some changes
in the peripherals API definitions.

Should I use this updated header file from Atmel or just stick with the
one on the WinARM examples?

Thanks

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 useful
not useful
Paulo Sousa wrote:
> When looking at the examples for the AT91SAM7S, I noticed the
> "AT91SAM7S64.h" (which seems to be the same file as in the
> "BasicIAR-SAM7S64-IAR430A" package from Atmel -
> http://www.atmel.com/dyn/resources/prod_documents/...)
> appears to be out of date.
>
> Some details like the "AT91C_IFLASH_NB_OF_PAGES" and the
> "AT91C_IFLASH_NB_OF_LOCK_BITS" seem to have been added to reflect the
> values described on the datasheet (512 and 16), as well as some changes
> in the peripherals API definitions.
>
> Should I use this updated header file from Atmel or just stick with the
> one on the WinARM examples?

Please compile the examples with the files included to avoid
inconsistancies between the example-code and
register-definitions/at91-lib. I know that newer files than the ones
included in some of the examples are available and I try to use the
latest files when I port or create an example for gcc/WinARM. But I do
not have the time to update the examples everytime. That's why all
headers are included in the examples as a "feature freeze".

Feel free to send me the source-package with the newer files if you have
tested the binary with the hardware and I will place them on the server
and include them in the next WinARM-examples-dir. (e-mail-addr. in the
WinARM readme and at the bottom of the WinARM-page)

For you own development I'd recommend to work with the new files of the
register-definitions and the at91-lib. Beside of new functions or
API-changes some bugs might have been fixed in the new files.

Martin Thomas

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.