Fix F7 link output

This commit is contained in:
Sami Korhonen 2016-12-07 16:34:56 +02:00
parent f1bf914404
commit b4bcf6fd96
2 changed files with 6 additions and 4 deletions

View File

@ -155,7 +155,7 @@ void systemInit(void)
//SystemClock_Config();
// Configure NVIC preempt/priority groups
//NVIC_PriorityGroupConfig(NVIC_PRIORITY_GROUPING);
HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITY_GROUPING);
// cache RCC->CSR value to use it in isMPUSoftreset() and others
cachedRccCsrValue = RCC->CSR;

View File

@ -15,12 +15,14 @@ ENTRY(Reset_Handler)
/* Specify the memory areas */
MEMORY
{
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1008K
FLASH_CONFIG (r) : ORIGIN = 0x080FC000, LENGTH = 16K
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 768K
FLASH_CONFIG (r) : ORIGIN = 0x080C0000, LENGTH = 256K
RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 320K
TCM (rwx) : ORIGIN = 0x20000000, LENGTH = 64K
RAM (rwx) : ORIGIN = 0x20010000, LENGTH = 256K
MEMORY_B1 (rx) : ORIGIN = 0x60000000, LENGTH = 0K
}
/* note CCM could be used for stack */
REGION_ALIAS("STACKRAM", TCM)
INCLUDE "stm32_flash.ld"