cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F303RE: linker file for GNU based tool chain

laurentwawrzyniak9
Associate II
Posted on October 17, 2014 at 17:05

Hi,

I have a c++ application that is running on STM32F303RC (256 K flash).

I want to use this same application on the new STM32F303RE (512 K flash).

I modify the linker file as follow:

/* Entry Point */

ENTRY(Reset_Handler)

/* Highest address of the user mode stack */

_estack = 0x20010000;    /* end of 64K RAM */

/* Generate a link error if heap and stack don't fit into RAM */

_Min_Heap_Size = 0x200;      /* required amount of heap  */

_Min_Stack_Size = 0x400; /* required amount of stack */

/* Specify the memory areas */

MEMORY

{

  FLASH (rx)      : ORIGIN = 0x08000000, LENGTH = 512K  /*Without bootstarter*/

  RAM (xrw)       : ORIGIN = 0x20000000, LENGTH = 64K

  CCMRAM (rwx)    : ORIGIN = 0x10000000, LENGTH = 16K

  MEMORY_B1 (rx)  : ORIGIN = 0x60000000, LENGTH = 0K

}

The compilation and the link are OK.

Unfortunaltely, the program doesn't start.

Any suggestion please?

3 REPLIES 3
chen
Associate II
Posted on October 20, 2014 at 10:50

Hi

''The compilation and the link are OK.

Unfortunaltely, the program doesn't start.

Any suggestion please?''

Connect a debugger and debug it.

''I have a c++ application that is running on STM32F303RC (256 K flash).

I want to use this same application on the new STM32F303RE (512 K flash).''

What exactly does your application do?

Does it use peripherals?

Have you checked if the peripherals are identical in both devices?

Amel NASRI
ST Employee
Posted on November 04, 2014 at 15:34

Hi Laurent,

For questions related to STM32F303xE, please contact you local ST representative or FAE.

Best Regards,

-Mayla-

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

laurentwawrzyniak9
Associate II
Posted on November 28, 2014 at 09:53

The issue was due to the Segger Jlink probe that didn't support the flash size over 256k. 

From the new Jlink software 4.94g it is OK now for the STM32F303RE.

Thanks to SEGGER support.