STM32F4 design

Language & Programming

Last month (https://dayjaby.wordpress.com/2020/03/02/february-2020-collecting-ideas/) I collected some ideas regarding software/hardware projects. This month I would like to focus on designing an own PCB containing a STM32F4.

What I would like to achieve/learn:

Software

STM32F4 is able to run NuttX RTOS. In the following video we learn about some USB capabilities of NuttX. https://www.youtube.com/watch?v=rgZJPZh_po8. CDC/ACM addon for NuttX: https://github.com/jodersky/nuttx/tree/master/apps/system/cdcacm

In the PX4 Firmware we find following CDC/ACM settings:

CONFIG_CDCACM=y
CONFIG_CDCACM_PRODUCTID=0x0032
CONFIG_CDCACM_PRODUCTSTR=”PX4 FMU v5.x”
CONFIG_CDCACM_RXBUFSIZE=600
CONFIG_CDCACM_TXBUFSIZE=12000
CONFIG_CDCACM_VENDORID=0x26ac
CONFIG_CDCACM_VENDORSTR=”3D Robotics”

The USB host can see the device as /dev/ttyACM0. On NuttX side, data can be sent/received via /dev/ttyACM0 as well.