From 632a14023c0efd27305a7dd91c5669ef63cb1b55 Mon Sep 17 00:00:00 2001 From: Alessio Morale Date: Mon, 17 Nov 2014 21:41:42 +0100 Subject: [PATCH] REVONANO - exclude ccram stuffs --- flight/pios/stm32f4xx/link_STM32F4xx_RN_sections.ld | 6 +++--- flight/pios/stm32f4xx/startup.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/flight/pios/stm32f4xx/link_STM32F4xx_RN_sections.ld b/flight/pios/stm32f4xx/link_STM32F4xx_RN_sections.ld index 10a7f2514..b728c80f1 100644 --- a/flight/pios/stm32f4xx/link_STM32F4xx_RN_sections.ld +++ b/flight/pios/stm32f4xx/link_STM32F4xx_RN_sections.ld @@ -83,7 +83,7 @@ SECTIONS _irq_stack_end = . ; *(.irqstack) _irq_stack_top = . ; - } > CCSRAM + } > SRAM /* @@ -132,14 +132,14 @@ SECTIONS /* * 'Fast' memory goes in the CCM SRAM - */ + .fast (NOLOAD) : { _sfast = . ; *(.fast) _efast = . ; } > CCSRAM - +*/ /* Stabs debugging sections. */ .stab 0 : { *(.stab) } .stabstr 0 : { *(.stabstr) } diff --git a/flight/pios/stm32f4xx/startup.c b/flight/pios/stm32f4xx/startup.c index efab7b6f6..b11f3a0cc 100644 --- a/flight/pios/stm32f4xx/startup.c +++ b/flight/pios/stm32f4xx/startup.c @@ -85,10 +85,10 @@ void _main(void) /* zero the BSS */ memset(&_sbss, 0, &_ebss - &_sbss); - +#ifdef PIOS_TARGET_PROVIDES_FAST_HEAP /* zero any 'fast' RAM that's been used */ memset(&_sfast, 0, &_efast - &_sfast); - +#endif /* fill most of the IRQ/bootstrap stack with a watermark pattern so we can measure how much is used */ /* leave a little space at the top in case memset() isn't a leaf with no locals */ memset(&irq_stack, 0xa5, sizeof(irq_stack) - 64);