Like I've done in my last patch for ethernut3/at91r40008 I'd like to
clean-up the eir/sam7se512 combo. I'm not sure, how to do this in detail
and would appreciate any advice.

The first thing I want to do is to move the target file from
sam7se512.cfg to at91sam7se512.cfg. So far, board/eir.cfg seems the only
one referencing that target. However, it may break existing private user
scripts. Shall we keep sam7se512.cfg as

 source [find target/at91sam7se512.cfg]

?

Another idea is to follow at91sam7sx.cfg and create a more general file
named at91sam7sex.cfg for all 3 members of this family. However, the
chip IDs (CPUTAPID) differ:

 AT91SAM7SE32 0x27280340
 AT91SAM7SE256 0x272A0940
 AT91SAM7SE512 0x272A0A40

Worse, they come with different RAM sizes and therefore possibly
different work area layouts.

Shall we specify all these variants (other devices may have others) in
each board configuration files?

Btw. this is also true (or actually wrong) for target/at91sam7sx.cfg,
which specifies 16k work area size. The AT91SAM7S32 has 8k and the
AT91SAM7S16 only 4k of RAM. The at91sam7sx is not as general as it claims.

I'd prefer to create

 at91sam7se32.cfg
 at91sam7se256.cfg
 at91sam7se512.cfg

Possibly they may then include

 source [find target/at91sam7sex.cfg]


Thanks,

Harald
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to