-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bluepill 128kb support #516
Comments
Sorry for the late answer, this seems weird. If it is undocumented by ST the stlink project can not support this. |
The stm32duino project, for example, officially support this, by creating two F103C8 board, the user can choose the right one. |
I'm not sure where you get this info but this is what I can find:
Where the encoding of the chip model is as follows: Where STM32F103C8 decodes to:
|
yes, i know that the datasheet for C8 version tell 64KB, it is a weird commercial bug :-)
|
And this is the Bootloader message, it clearly tell that the MCU have 128KB.
|
Updated Bluepill Wikipage |
Reopening this as some CKS32F103C8T6 chips indeed come with 128 kB flash. A way should be found to deal with this properly. |
@Nightwalker-87 I do not believe that this extra memory is restricted to the CKS32F103C8T6 - I believe I actually saw a confirmation from an ST rep that the true F103C8T6 chips had this extra memory, It is also worth noting that the official ST Flash application will happily load up this chip with up to 128k of code, so this isn't unprecedented. I'd speculate that the reason this is a priority for some is that the Bluepill is often considered to be a suitable entry-level board for various projects because of this memory bug, which allows it to host RTOS cores like MBED or Zephyr and frameworks like STM32Duino without being cramped for flash. |
The temp fix, for anyone who is interested, is to edit the src/common.c file, in the stlink_load_device_params() function, in the following text:
replacing the final else with
Recompile and install from source, and call with a preface to set an empty environmental variable: |
@hierophect: Surprise - Digging through the whole project revealed some interesting features, which seem to have been kicked into the long grass - without any documentation - sigh. However I think this is what you have been looking for. Sry to see that you obviously waited for nothing... :-( |
the Bluepill board si very famous, it is the cheapest F103 board on the market (only 2$)
It have a 128K flash, this is another advantage, but it is a hidden advantage because, nobody know why, but is there two F103C8 on the market, one is 64KB and the other is 128KB.
The datasheet for C8 version tell that this is a 64KB, but if you try to upload until 128KB it work always, so probably the C8 64KB do not exist.
So may you use this "hack" officially ?
#305 (comment)
The text was updated successfully, but these errors were encountered: