Skip to main content
AOvch.0
Associate
Sep 16, 2018 3:01 PM UTC
Solved

CMSIS what linker file to use?

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.
    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    Sep 16, 2018 3:26 PM UTC

    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..

    2 replies

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    Sep 16, 2018 3:26 PM UTC

    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    AOvch.0
    AOvch.0Author
    Associate
    Sep 16, 2018 3:54 PM UTC

    thanks a lot