WinARM AT91SAM7S64 definition file <AT91SAM7S64.h>

OP #1171126
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/BasicIAR-SAM7S64-IAR430A.zip)
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
Guest #1171127
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/BasicIAR-SAM7S64-IAR430A.zip)
> 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

A question of your own? This thread is over 20 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.