Hi Nathan,

I have not looked at the G part yet so I cannot say for certain, but I can
share this:

We learned many lessons from the coupling in the stm32 dirs. The take away
was Avoid it!

The F7 model is much better - the goal is to not have ifdef rash.

Layered includes bring it the correct headers. Not litter the headers or
code with
#if defined(STM32xxxxx) ....


David

-----Original Message-----
From: Nathan Hartman [mailto:hartman.nat...@gmail.com]
Sent: Tuesday, April 14, 2020 2:51 PM
To: dev@nuttx.apache.org
Subject: Adding support for STM32G474RET6

Regarding STM32 support, I'd like to add architectural and board
support for the B-G474E-DPOW1 Discovery board and its STM32G474RET6
microcontroller:

https://www.st.com/en/evaluation-tools/b-g474e-dpow1.html

My first question is, which directory does this architecture belong in?

Looking at the directories under arch/arm/src or arch/arm/include, it
seems they go loosely by core type:

* stm32 - Mix of Cortex-M3 STM32F1, STM32F2 families, Cortex-M4
STM32F3, STM32F4 families

* stm32f0l0g0 - Cortex-M0, -M0+

* stm32f7 - Cortex-M7

* stm32h7 - Cortex-M4 and Dual Core -M4/-M7, in the STM32H7 family only

* stm32l4 - Cortex-M4, in the STM32L4 family only

The STM32G4 family is Cortex-M4 and seems to have similarities to the
STM32F4 family. Does this belong in the stm32 directory? Does it
require a new stm32g4 directory?

Thanks,
Nathan

Reply via email to