From 92179904a62cef5dcdba1eb61613629da221ab1f Mon Sep 17 00:00:00 2001 From: Fragonite <48802408+Fragonite@users.noreply.github.com> Date: Tue, 27 Apr 2021 03:14:15 +0800 Subject: STM32F401xE Demo (#89) * Added STM32F401xE demo and updated list of supported hardware. * Added STM32F401CE to list of tested MCUs. * Updated makefile help output (added lines for stm32f401xc and stm32f401xe). Co-authored-by: BuildTools --- Makefile | 8 ++++++++ demo/stm32f401xe.ld | 8 ++++++++ hardware.md | 1 + readme.md | 8 +++++++- 4 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 demo/stm32f401xe.ld diff --git a/Makefile b/Makefile index 5446402..d9b696b 100644 --- a/Makefile +++ b/Makefile @@ -53,6 +53,8 @@ help all: @echo ' stm32l052x8 CDC loopback demo for STM32L052x8 based boards' @echo ' 32f429zi-nucleo' @echo ' stm32f429xi CDC loopback demo for STM32F429xI based boards' + @echo ' stm32f401xc CDC loopback demo for STM32F401xC based boards' + @echo ' stm32f401xe CDC loopback demo for STM32F401xE based boards' @echo ' cmsis Download CMSIS 5 and stm32.h into a $$(CMSIS) directory' @echo ' doc DOXYGEN documentation' @echo ' module static library module using following envars (defaults)' @@ -248,6 +250,12 @@ stm32f401xc: clean DEFINES='STM32F4 STM32F401xC USBD_SOF_DISABLED' \ CFLAGS='-mcpu=cortex-m4' +stm32f401xe: clean + @$(MAKE) demo STARTUP='$(CMSISDEV)/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f401xe.s' \ + LDSCRIPT='demo/stm32f401xe.ld' \ + DEFINES='STM32F4 STM32F401xE USBD_SOF_DISABLED' \ + CFLAGS='-mcpu=cortex-m4' + stm32f745xe: clean @$(MAKE) demo STARTUP='$(CMSISDEV)/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f745xx.s' \ LDSCRIPT='demo/stm32f745xe.ld' \ diff --git a/demo/stm32f401xe.ld b/demo/stm32f401xe.ld new file mode 100644 index 0000000..b8ae2db --- /dev/null +++ b/demo/stm32f401xe.ld @@ -0,0 +1,8 @@ +ENTRY(Reset_Handler) +MEMORY +{ + ROM (rx): ORIGIN = 0x08000000, LENGTH = 512K + RAM (rwx): ORIGIN = 0x20000000, LENGTH = 96K +} + +INCLUDE sections.ld diff --git a/hardware.md b/hardware.md index 1c440e9..d025724 100644 --- a/hardware.md +++ b/hardware.md @@ -21,6 +21,7 @@ | stm32f405xg | NUCLEO-F405RG + NUCLEO2USB | based on NUCLEO-F103RE, 0.1uF at SB33, SB38 | | stm32f405xg_hs | NUCLEO-F405RG + NUCLEO2USB | based on NUCLEO-F103RE, 0.1uF at SB33, SB38 | | stm32f745xe | NUCO-V-F745VE + NUCLEO2USB | | +| stm32f401xe | WeAct STM32F401CEU6 | | [NUCLEO2USB SHIELD](https://github.com/dmitrystu/Nucleo2USB) [NUCO-V](https://github.com/dmitrystu/nuco-v) \ No newline at end of file diff --git a/readme.md b/readme.md index 15fad14..4659241 100644 --- a/readme.md +++ b/readme.md @@ -67,6 +67,12 @@ All requirements can be downloaded into a directory specified in environment var usbd_otgfs usbd_stm32l476_otgfs.c + + STM32F401 STM32F411 + Doublebuffered
4 endpoints
VBUS detection
SOF output + usbd_otgfs + usbd_stm32f429_otgfs.c + STM32F4x5 STM32F4x7 STM32F4x9 Doublebuffered
4 endpoints
VBUS detection
SOF output @@ -107,7 +113,7 @@ All requirements can be downloaded into a directory specified in environment var 3. Tested with STM32L052K8, STM32L100RC, STM32L476RG, STM32F072C8, STM32F103C8, STM32F103CB, STM32F303CC, STM32F303RE, STM32F429ZI, STM32F105RBT6, STM32F107VCT6, STM32L433CCT6, STM32F070CBT6, STM32G431RB, STM32F411CEUx, STM32F405RG, STM32F446RE, STM32F373CC, STM32L053R8, GD32F103C8T6, -STM32F745VE. +STM32F745VE, STM32F401CE. See [hardware.md](hardware.md) for details. ### Implemented definitions for classes ### -- cgit v1.2.3