Re: Core407V STM32F407VET6 Board Definition Help Needed


Yannis Damigos
 

Now my board does not support GPIO ports starting with F. I see refs to
them in Kconfig.defconfig.stm32f407xx as:

if SOC_STM32F407XG
config SOC
string
default stm32f407xx
config NUM_IRQS
int
default 82
if GPIO_STM32
config GPIO_STM32_PORTF
default y
config GPIO_STM32_PORTG
default y
config GPIO_STM32_PORTI
default y
endif # GPIO_STM32
...
So in my core407v_stm32f407_defconfig, should I leave CONFIG_GPIO_STM32
undefined, or is the following acceptable also:

CONFIG_GPIO_STM32=n
You could disable unsupported ports in your boards Kconfig.defconfig file.
E.g.:

if GPIO

config GPIO_STM32_PORTD
default n

config GPIO_STM32_PORTF
default n

endif # GPIO

The correct way is to add support for SoC STM32F407XE (they have 512 kB
Flash instead of 1024) and use this in your boards _defconfig file.


Yannis

Join devel@lists.zephyrproject.org to automatically receive all group messages.