Skip to content

Commit fbb17d2

Browse files
committed
STM32C5A3ZG: bare-metal wolfIP port with TLS 1.3 mutual-auth over DHUK HUK-protected identity key
1 parent 3f25c79 commit fbb17d2

15 files changed

Lines changed: 3528 additions & 1 deletion

src/port/stm32/stm32_eth.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,16 @@
1111
#include "config.h"
1212
#include "stm32_eth.h"
1313

14+
/* STM32C5 (Cortex-M33) uses a DWC GMAC that is byte-for-byte identical to
15+
* the STM32H5: same ETH_BASE (0x40028000), same register layout, same NS
16+
* access model, and the same MDIO clock-range divider (CR=4) at HCLK 144MHz.
17+
* Alias it onto the H5 path so it reuses every H5 value and code arm. */
18+
#if defined(STM32C5) && !defined(STM32H5)
19+
#define STM32H5
20+
#endif
21+
1422
#if !defined(STM32H5) && !defined(STM32H7) && !defined(STM32N6)
15-
#error "Define STM32H5, STM32H7 or STM32N6 for stm32_eth.c"
23+
#error "Define STM32C5, STM32H5, STM32H7 or STM32N6 for stm32_eth.c"
1624
#endif
1725

1826
#if defined(STM32H5)

src/port/stm32c5a3/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Build artifacts
2+
*.o
3+
app.elf
4+
app.bin

0 commit comments

Comments
 (0)