From f62d4ecd69da64eaa461895d59f02ac14a51eebe Mon Sep 17 00:00:00 2001 From: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com> Date: Thu, 2 Jun 2022 10:02:59 -0700 Subject: [PATCH] Fix build failures in Nuvoton M2351 projects (#818) * Fix build failures in Nuvoton M2351 projects These are needed because of recent changes in the port Signed-off-by: Gaurav Aggarwal --- .../Projects/IAR/Config/FreeRTOSConfig.h | 11 ++++++++--- .../Projects/IAR/NonSecure/FreeRTOSDemo_ns.ewp | 2 +- .../Projects/IAR/NonSecure/FreeRTOSDemo_ns.icf | 12 ++++++------ .../Projects/IAR/NonSecure/fault_handler.s | 2 +- .../Projects/IAR/NonSecure/main_ns.c | 2 +- .../Projects/IAR/Secure/FreeRTOSDemo_s.ewp | 5 +---- .../Projects/IAR/Secure/main_s.c | 2 +- .../Projects/Keil/Config/FreeRTOSConfig.h | 2 +- .../Projects/Keil/NonSecure/main_ns.c | 2 +- .../Projects/Keil/Secure/main_s.c | 2 +- 10 files changed, 22 insertions(+), 20 deletions(-) diff --git a/FreeRTOS/Demo/CORTEX_MPU_M23_Nuvoton_NuMaker_PFM_M2351_IAR_GCC/Projects/IAR/Config/FreeRTOSConfig.h b/FreeRTOS/Demo/CORTEX_MPU_M23_Nuvoton_NuMaker_PFM_M2351_IAR_GCC/Projects/IAR/Config/FreeRTOSConfig.h index ae72cb108c..0285f88b1c 100644 --- a/FreeRTOS/Demo/CORTEX_MPU_M23_Nuvoton_NuMaker_PFM_M2351_IAR_GCC/Projects/IAR/Config/FreeRTOSConfig.h +++ b/FreeRTOS/Demo/CORTEX_MPU_M23_Nuvoton_NuMaker_PFM_M2351_IAR_GCC/Projects/IAR/Config/FreeRTOSConfig.h @@ -20,7 +20,7 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * https://www.FreeRTOS.org - * https://aws.amazon.com/freertos + * https://github.com/FreeRTOS * */ @@ -43,7 +43,12 @@ * https://www.FreeRTOS.org/a00110.html *----------------------------------------------------------*/ -extern uint32_t SystemCoreClock; +/* The #ifdef guards against the file being included from IAR assembly files. */ +#ifndef __IASMARM__ + + extern uint32_t SystemCoreClock; + +#endif /* __IASMARM__ */ /* Cortex M33 port configuration. */ #define configENABLE_MPU 1 @@ -63,7 +68,7 @@ extern uint32_t SystemCoreClock; #define configMINIMAL_STACK_SIZE ( ( uint16_t ) 128 ) #define configMINIMAL_SECURE_STACK_SIZE ( 1024 ) #define configMAX_TASK_NAME_LEN ( 12 ) -#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 50 * 1024 ) ) +#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 20 * 1024 ) ) /* Constants that build features in or out. */ #define configUSE_MUTEXES 1 diff --git a/FreeRTOS/Demo/CORTEX_MPU_M23_Nuvoton_NuMaker_PFM_M2351_IAR_GCC/Projects/IAR/NonSecure/FreeRTOSDemo_ns.ewp b/FreeRTOS/Demo/CORTEX_MPU_M23_Nuvoton_NuMaker_PFM_M2351_IAR_GCC/Projects/IAR/NonSecure/FreeRTOSDemo_ns.ewp index e9e54a1d7b..6c57c8dc93 100644 --- a/FreeRTOS/Demo/CORTEX_MPU_M23_Nuvoton_NuMaker_PFM_M2351_IAR_GCC/Projects/IAR/NonSecure/FreeRTOSDemo_ns.ewp +++ b/FreeRTOS/Demo/CORTEX_MPU_M23_Nuvoton_NuMaker_PFM_M2351_IAR_GCC/Projects/IAR/NonSecure/FreeRTOSDemo_ns.ewp @@ -621,7 +621,7 @@