cancel
Showing results for 
Search instead for 
Did you mean: 

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

sg.1
Associate

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

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.

View solution in original post

3 REPLIES 3
Peter BENSCH
ST Employee

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.
sg.1
Associate

Thanks for clarifying.

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.