Main con:
- a lot of files (there are >80 stm32f's, and so on)


? Since there are 80 some odd versions - could a number of these items be determined directly from the part number?

Look at the ordering information from this STM32 PDF

    http://www.st.com/stonline/products/literature/ds/15057/stm32f102c4.pdf

The 11th symbol is the FLASH size,  4=16K, 6=32K,

could be generalize like this

if   not defined( $STMCHIPNUMBER )
then
     FAIL WITH ERROR
endif

if  STMCHIPNUMBER == STM32F103C6
     STM32FLASHSIZE = 32
     STM32RAMSIZE=10
 endif


... then later do this

if  not defined( $STM32FLASHSIZE) )
then
     FAIL with unknown STM32 chip type
endif

===

OR this could be put into a simple table of some type.

Indexed by MODEL NUMBER

===

-Duane.



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

Reply via email to