cancel
Showing results for 
Search instead for 
Did you mean: 

Linker configuration

gil23
Associate III
Posted on June 29, 2014 at 18:05

Hi,

I'm working with STM32F401CB with IAR. 

The memory structure is:

// Base address of the Flash sectors

#define ADDR_FLASH_SECTOR_0     ((uint32_t)0x08000000) // Base @ of Sector 0, 16 Kbytes

#define ADDR_FLASH_SECTOR_1     ((uint32_t)0x08004000) // Base @ of Sector 1, 16 Kbytes

#define ADDR_FLASH_SECTOR_2     ((uint32_t)0x08008000) // Base @ of Sector 2, 16 Kbytes

#define ADDR_FLASH_SECTOR_3     ((uint32_t)0x0800C000) // Base @ of Sector 3, 16 Kbytes

#define ADDR_FLASH_SECTOR_4     ((uint32_t)0x08010000) // Base @ of Sector 4, 64 Kbytes

I'm trying to protect 2 section of 16KB from the flash, I won't to use the 2 sections for internal data.

1.

I tried to protect sections 2 & 3 , so I split the ROM to 2 section.

And I get an compilation error message.

I attached : stm32f401xB QSFP.icf , Error message.txt , Template.map to 1.zip

2.

I tried to protect sections 0 & 1 , so I start the ROM from section 2.

An the program conter seem to get lost.

I attached : stm32f401xB QSFP.icf, stm32f401xB.icf, Template.map, ERROR.jpg to 2.zip

When stm32f401xB.icf is the original linker.

Please advise.

0 REPLIES 0