anpaza commented on a change in pull request #459: stm32h7: support SDRAM via 
FMC peripherial
URL: https://github.com/apache/incubator-nuttx/pull/459#discussion_r390207163
 
 

 ##########
 File path: arch/arm/src/stm32h7/stm32_allocateheap.c
 ##########
 @@ -246,6 +249,14 @@ void up_allocate_heap(FAR void **heap_start, size_t 
*heap_size)
 
   up_heap_color(*heap_start, *heap_size);
 #endif
+
+#if defined(CONFIG_DEBUG_FEATURES)
+
+  /* Display memory ranges to help debugging */
+
+  _info("%uKb of SRAM at %p\n", *heap_size / 1024, *heap_start);
 
 Review comment:
   Tried compiling all stm32h7 targets:
     stm32h747i-disco:nsh
     nucleo-h743zi:nsh
     nucleo-h743zi:nxlines_oled
     nucleo-h743zi:pwm
   without FMC they compile fine, with FMC enable they won't compile because 
their board.h does not define the respective macros, needed to configure FMC 
for their board (for example, BOARD_FMC_GPIO_CONFIGS should list the GPIOs used 
for external memories, without it FMC has no sense).

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to