raiden00pl commented on code in PR #10328: URL: https://github.com/apache/nuttx/pull/10328#discussion_r1304227963
########## arch/arm/src/stm32h7/stm32_allocateheap.c: ########## @@ -44,13 +44,21 @@ #include "arm_internal.h" #include "hardware/stm32_memorymap.h" #include "stm32_mpuinit.h" -#include "stm32_dtcm.h" + +#ifdef CONFIG_ARCH_CHIP_STM32H7_CORTEXM7 +# include "stm32_dtcm.h" +#endif #include "stm32_fmc.h" /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ +#if defined(CONFIG_ARCH_CHIP_STM32H7_CORTEXM7) && \ + defined(CONFIG_STM32H7_CORTEXM4_DISABLED) + +/* Configuration for M7 core and M4 core support disabled */ Review Comment: correct :) fixed ########## arch/arm/src/stm32h7/stm32_allocateheap.c: ########## @@ -100,11 +108,33 @@ /* Set the start and end of the SRAMs */ -#define SRAM_START STM32_AXISRAM_BASE -#define SRAM_END (SRAM_START + STM32H7_SRAM_SIZE) +# define SRAM_START STM32_AXISRAM_BASE +# define SRAM_END (SRAM_START + STM32H7_SRAM_SIZE) + +# define SRAM123_START STM32_SRAM123_BASE +# define SRAM123_END (SRAM123_START + STM32H7_SRAM123_SIZE) + +#elif defined(CONFIG_ARCH_CHIP_STM32H7_CORTEXM7) && \ + !defined(CONFIG_STM32H7_CORTEXM4_DISABLED) + +/* Configuration for M7 core and M4 core support enabled */ Review Comment: fixed -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
