Skip to main content
AOvch.0
Associate
September 16, 2018
Solved

CMSIS what linker file to use?

  • September 16, 2018
  • 2 replies
  • 1001 views

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?

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    FLASH 64K, SRAM 20K

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

    2 replies

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    September 16, 2018

    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 VenmoUp vote any posts that you find helpful, it shows what's working..
    AOvch.0
    AOvch.0Author
    Associate
    September 16, 2018

    thanks a lot