Sfoglia il codice sorgente

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 <unconfigured@null.spigotmc.org>
Fragonite 5 anni fa
parent
commit
92179904a6
4 ha cambiato i file con 24 aggiunte e 1 eliminazioni
  1. 8 0
      Makefile
  2. 8 0
      demo/stm32f401xe.ld
  3. 1 0
      hardware.md
  4. 7 1
      readme.md

+ 8 - 0
Makefile

@@ -53,6 +53,8 @@ help all:
 	@echo '  stm32l052x8   CDC loopback demo for STM32L052x8 based boards'
 	@echo '  stm32l052x8   CDC loopback demo for STM32L052x8 based boards'
 	@echo '  32f429zi-nucleo'
 	@echo '  32f429zi-nucleo'
 	@echo '  stm32f429xi   CDC loopback demo for STM32F429xI based boards'
 	@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 '  cmsis         Download CMSIS 5 and stm32.h into a $$(CMSIS) directory'
 	@echo '  doc           DOXYGEN documentation'
 	@echo '  doc           DOXYGEN documentation'
 	@echo '  module        static library module using following envars (defaults)'
 	@echo '  module        static library module using following envars (defaults)'
@@ -248,6 +250,12 @@ stm32f401xc: clean
 						DEFINES='STM32F4 STM32F401xC USBD_SOF_DISABLED' \
 						DEFINES='STM32F4 STM32F401xC USBD_SOF_DISABLED' \
 						CFLAGS='-mcpu=cortex-m4'
 						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
 stm32f745xe: clean
 	@$(MAKE) demo STARTUP='$(CMSISDEV)/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f745xx.s' \
 	@$(MAKE) demo STARTUP='$(CMSISDEV)/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f745xx.s' \
 						LDSCRIPT='demo/stm32f745xe.ld' \
 						LDSCRIPT='demo/stm32f745xe.ld' \

+ 8 - 0
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

+ 1 - 0
hardware.md

@@ -21,6 +21,7 @@
 | stm32f405xg    | NUCLEO-F405RG + NUCLEO2USB | based on NUCLEO-F103RE, 0.1uF at SB33, SB38 |
 | 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 |
 | stm32f405xg_hs | NUCLEO-F405RG + NUCLEO2USB | based on NUCLEO-F103RE, 0.1uF at SB33, SB38 |
 | stm32f745xe    | NUCO-V-F745VE + NUCLEO2USB |                                             |
 | stm32f745xe    | NUCO-V-F745VE + NUCLEO2USB |                                             |
+| stm32f401xe    | WeAct STM32F401CEU6        |                                             |
 
 
 [NUCLEO2USB SHIELD](https://github.com/dmitrystu/Nucleo2USB)
 [NUCLEO2USB SHIELD](https://github.com/dmitrystu/Nucleo2USB)
 [NUCO-V](https://github.com/dmitrystu/nuco-v)
 [NUCO-V](https://github.com/dmitrystu/nuco-v)

+ 7 - 1
readme.md

@@ -68,6 +68,12 @@ All requirements can be downloaded into a directory specified in environment var
         <td>usbd_stm32l476_otgfs.c</td>
         <td>usbd_stm32l476_otgfs.c</td>
     </tr>
     </tr>
     <tr>
     <tr>
+        <td>STM32F401 STM32F411</td>
+        <td nowrap>Doublebuffered<br/>4 endpoints<br/>VBUS detection<br/>SOF output</td>
+        <td>usbd_otgfs</td>
+        <td>usbd_stm32f429_otgfs.c</td>
+    </tr>
+    <tr>
         <td rowspan="2">STM32F4x5 STM32F4x7 STM32F4x9</td>
         <td rowspan="2">STM32F4x5 STM32F4x7 STM32F4x9</td>
         <td nowrap>Doublebuffered<br/>4 endpoints<br/>VBUS detection<br/>SOF output</td>
         <td nowrap>Doublebuffered<br/>4 endpoints<br/>VBUS detection<br/>SOF output</td>
         <td>usbd_otgfs</td>
         <td>usbd_otgfs</td>
@@ -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,
 3. Tested with STM32L052K8, STM32L100RC, STM32L476RG, STM32F072C8, STM32F103C8, STM32F103CB,
 STM32F303CC, STM32F303RE, STM32F429ZI, STM32F105RBT6, STM32F107VCT6, STM32L433CCT6, STM32F070CBT6,
 STM32F303CC, STM32F303RE, STM32F429ZI, STM32F105RBT6, STM32F107VCT6, STM32L433CCT6, STM32F070CBT6,
 STM32G431RB, STM32F411CEUx, STM32F405RG, STM32F446RE, STM32F373CC, STM32L053R8, GD32F103C8T6,
 STM32G431RB, STM32F411CEUx, STM32F405RG, STM32F446RE, STM32F373CC, STM32L053R8, GD32F103C8T6,
-STM32F745VE.
+STM32F745VE, STM32F401CE.
 See [hardware.md](hardware.md) for details.
 See [hardware.md](hardware.md) for details.
 
 
 ### Implemented definitions for classes ###
 ### Implemented definitions for classes ###