Skip to main content
sg.1
Associate
May 16, 2023
Solved

How to properly set the flash size (64KB / 128 KB) for STM32F103C8T6 in STMCubeIDE?

  • May 16, 2023
  • 3 replies
  • 4199 views

Hi, I am working on a firmware for STM32F103C8T6 with 128KB of flash. When I create a new project in the STMCubeIDE by default it sets the flash size to 64KB. I have changed the flash size in the linker file to 128KB. Is it the only change required or some more required? Thank you.

This topic has been closed for replies.
Best answer by Peter BENSCH

Well, the STM32F103C8T6 is a device with 64kB flash, which is why the IDE sets it correctly.

The variant with 128KB flash has the product designation STM32F103CBT6, i.e. CB instead of C8.

Hope that helps?

Regards

/Peter

3 replies

Peter BENSCH
Peter BENSCHBest answer
ST Technical Moderator
May 16, 2023

Well, the STM32F103C8T6 is a device with 64kB flash, which is why the IDE sets it correctly.

The variant with 128KB flash has the product designation STM32F103CBT6, i.e. CB instead of C8.

Hope that helps?

Regards

/Peter

In order 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.
Visitor II
March 22, 2024

Hello, I used stlink to put the liberpilot firmware, which has a volume of 128 KB, on the STM32F103C8T6. It seems that this microcontroller has 128 KB of memory.

sg.1
sg.1Author
Associate
May 16, 2023

Thanks for clarifying.