From 4e38437d1103523d51c12c800c89a0f7441ecfe6 Mon Sep 17 00:00:00 2001 From: Michael Jakob Date: Mon, 10 Apr 2017 23:47:02 +0200 Subject: [PATCH] STM32F722 UID fix --- src/main/platform.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/platform.h b/src/main/platform.h index c582ab505a..1130c74d57 100644 --- a/src/main/platform.h +++ b/src/main/platform.h @@ -22,9 +22,15 @@ #include "stm32f7xx_hal.h" // Chip Unique ID on F7 +#if defined(STM32F722xx) +#define U_ID_0 (*(uint32_t*)0x1ff07a10) +#define U_ID_1 (*(uint32_t*)0x1ff07a14) +#define U_ID_2 (*(uint32_t*)0x1ff07a18) +#else #define U_ID_0 (*(uint32_t*)0x1ff0f420) #define U_ID_1 (*(uint32_t*)0x1ff0f424) #define U_ID_2 (*(uint32_t*)0x1ff0f428) +#endif #define STM32F7