2026-05-14 12:59 AM - last edited on 2026-05-14 1:37 AM by mƎALLEm
I am using a stm32 F103RCT6 mcu. It has 256 Kb of flash memory. But when i connect it to cube programmer, it shows there are 256 sectors of 2K size which equates to 512 Kb flash.
I was even able to go to that last page and write data to it. so is the linker script generated by HAL wrong?
Solved! Go to Solution.
2026-05-14 1:30 AM
Nothing wrong here. :)
Just you got a F103 with full flash, 512K.
Reason is: for the purpose of rationalized production only one die is produced , with 512K .
Testing the flash is "expensive" on the chip tester, so short test -> smaller flash tested -> cheaper version.
So you have a chip with 256K flash, tested and 100% working - as you ordered.
And there is more flash on the die, might work fine or not - you didnt pay for tested 512K .
So you can use it, but dont cry, if there is an error....
And linker script is ok, if 256K is used, as you ordered.
2026-05-14 1:07 AM
@Akshat_codes_ wrote:I am using a stm32 F103RCT6
Where did you obtain it?
Are you sure it is genuine?
2026-05-14 1:12 AM
I ordered it from LCSC. Attached below is the image
2026-05-14 1:19 AM
@Akshat_codes_ wrote:I ordered it from LCSC.
You mean here: https://www.lcsc.com/ ?
Not an Authorised Distributor, so there is a risk it's fake.
Maybe this diagnostic can help you identify it ...
2026-05-14 1:30 AM
Nothing wrong here. :)
Just you got a F103 with full flash, 512K.
Reason is: for the purpose of rationalized production only one die is produced , with 512K .
Testing the flash is "expensive" on the chip tester, so short test -> smaller flash tested -> cheaper version.
So you have a chip with 256K flash, tested and 100% working - as you ordered.
And there is more flash on the die, might work fine or not - you didnt pay for tested 512K .
So you can use it, but dont cry, if there is an error....
And linker script is ok, if 256K is used, as you ordered.
2026-05-14 1:33 AM - edited 2026-05-14 1:46 AM
but shouldn't CubeIDE CubeProgrammer recognise the chip from its ID, and only report the specified memory sizes ?
2026-05-14 1:51 AM - edited 2026-05-14 1:55 AM
Maybe, if different ID is written to chip, but basically is same die for c-d-e flash size:
vs.
connect a H743ZG , 1MB flash (but die has 2MB :(
and all are 450 die :
But obviously here something written to the chip, to disable dual core, flash size info, etc.
So i tried using the 2MB flash - and yes, its there - but not tested, as ordered version has 1MB.
+ here connect to H743ZI , 2MB , ordered:
2MB verified.
2026-05-14 2:27 AM
ok thanks for the response.