From bc13a8a3cbda7d9a62c3fc9186fcf20067b91836 Mon Sep 17 00:00:00 2001 From: Edoardo Bortolozzo <45028610+safesintesi@users.noreply.github.com> Date: Wed, 20 Dec 2023 17:49:26 +0100 Subject: [PATCH] Fix cmake configure for STM32F4XX and STM32F7XX (#59) Fixed bug that prevented STM32F4XX and STM32F7XX from correctly configure with cmake. Description ----------- Setting `FREERTOS_PLUS_FAT_PORT` to STM32F4XX would throw fatal error at line 57 of root CMakeLists.txt since not in `FREERTOS_PLUS_FAT_PORT_LIST`. Setting `FREERTOS_PLUS_FAT_PORT` to STM32FXX as in the list of ports (notice no number before XX), would throw error since at `portable/CMakeLists.txt:38` it would NOT mach with any generator and result in no sources for `freertos_plus_fat_port` target. Test Steps ----------- set `FREERTOS_PLUS_FAT_PORT` to either STM32F4XX or STM32F7XX Checklist: ---------- - [ ] I have tested my changes. No regression in existing tests. - [ ] I have modified and/or added unit-tests to cover the code changes in this Pull Request. Related Issue ----------- By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7923413..a2d21e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,7 +36,8 @@ set(FREERTOS_PLUS_FAT_PORT_LIST AVR32_UC3 LPC18XX POSIX - STM32FXX + STM32F4XX + STM32F7XX STM32HXX ZYNQ ZYNQ_2019_3