cancel
Showing results for 
Search instead for 
Did you mean: 

CMSIS what linker file to use?

AOvch.0
Associate

I've an STM32F103C8T6 CPU, but I can't find appropriate linker file. The closes file is `STM32F101XB_FLASH.ld`. Can I use it with change following line (#43):

FLASH (rx)      : ORIGIN = 0x08000000, LENGTH = 128K

to

FLASH (rx)      : ORIGIN = 0x08000000, LENGTH = 64K

or there are other differences?

1 ACCEPTED SOLUTION

Accepted Solutions

FLASH 64K, SRAM 20K

Set the stack pointer to 0x20005000, this has proper alignment, and pre-decrements.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..

View solution in original post

2 REPLIES 2

FLASH 64K, SRAM 20K

Set the stack pointer to 0x20005000, this has proper alignment, and pre-decrements.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
AOvch.0
Associate

thanks a lot