
[fake-stm32-blue-pill-board] STM32F103C8T6 Bootloader/Sketch problems
Re: [fake-stm32-blue-pill-board] STM32F103C8T6 Bootloader/Sketch problems
Each to their own 

-------------------------------------
https://github.com/BennehBoy
https://github.com/BennehBoy
- mrburnette
- Posts: 3001
- Joined: Mon Apr 27, 2015 12:50 pm
- Location: Greater Atlanta
- Contact:
Re: [fake-stm32-blue-pill-board] STM32F103C8T6 Bootloader/Sketch problems
I've updated to the latest fpiSTM Github code from yesterday and modified boards.txt and ldscript.ld for the 32k parts. I don't have a Github account, so here are my changes if anyone else needs them:
3 lines changed in variants/BLUEPILL_F103C8/ldscript.ld:8 lines added to boards.txt:Blinky:
3 lines changed in variants/BLUEPILL_F103C8/ldscript.ld:
Code: Select all
-** 64/128KByte FLASH, 20KByte RAM
+** 32/64/128KByte FLASH, 10/20KByte RAM
-_estack = 0x20005000; /* end of RAM */
+_estack = 0x20000000 + LD_MAX_DATA_SIZE; /* end of RAM */
-RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
+RAM (xrw) : ORIGIN = 0x20000000, LENGTH = LD_MAX_DATA_SIZE
Code: Select all
+# BLUEPILL_F103C6 board
+# Support: Serial2 (USART2 on PA3, PA2) and Serial3 (USART3 on PB11, PB10)
+GenF1.menu.pnum.BLUEPILL_F103C6=BluePill F103C6 (32K)
+GenF1.menu.pnum.BLUEPILL_F103C6.upload.maximum_size=32768
+GenF1.menu.pnum.BLUEPILL_F103C6.upload.maximum_data_size=10240
+GenF1.menu.pnum.BLUEPILL_F103C6.build.board=BLUEPILL_F103C8
+GenF1.menu.pnum.BLUEPILL_F103C6.build.product_line=STM32F103xB
+GenF1.menu.pnum.BLUEPILL_F103C6.build.variant=BLUEPILL_F103C8
+
# BLUEPILL_F103C8 board
Code: Select all
Sketch uses 9228 bytes (28%) of program storage space. Maximum is 32768 bytes.
Global variables use 552 bytes (5%) of dynamic memory, leaving 9688 bytes for local variables. Maximum is 10240 bytes.
Re: [fake-stm32-blue-pill-board] STM32F103C8T6 Bootloader/Sketch problems
I'll submit a PRfredbox wrote: ↑Sat Jan 26, 2019 5:59 pmI've updated to the latest fpiSTM Github code from yesterday and modified boards.txt and ldscript.ld for the 32k parts. I don't have a Github account, so here are my changes if anyone else needs them:
3 lines changed in variants/BLUEPILL_F103C8/ldscript.ld:8 lines added to boards.txt:Code: Select all
-** 64/128KByte FLASH, 20KByte RAM +** 32/64/128KByte FLASH, 10/20KByte RAM -_estack = 0x20005000; /* end of RAM */ +_estack = 0x20000000 + LD_MAX_DATA_SIZE; /* end of RAM */ -RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 20K +RAM (xrw) : ORIGIN = 0x20000000, LENGTH = LD_MAX_DATA_SIZE
Blinky:Code: Select all
+# BLUEPILL_F103C6 board +# Support: Serial2 (USART2 on PA3, PA2) and Serial3 (USART3 on PB11, PB10) +GenF1.menu.pnum.BLUEPILL_F103C6=BluePill F103C6 (32K) +GenF1.menu.pnum.BLUEPILL_F103C6.upload.maximum_size=32768 +GenF1.menu.pnum.BLUEPILL_F103C6.upload.maximum_data_size=10240 +GenF1.menu.pnum.BLUEPILL_F103C6.build.board=BLUEPILL_F103C8 +GenF1.menu.pnum.BLUEPILL_F103C6.build.product_line=STM32F103xB +GenF1.menu.pnum.BLUEPILL_F103C6.build.variant=BLUEPILL_F103C8 + # BLUEPILL_F103C8 board
Code: Select all
Sketch uses 9228 bytes (28%) of program storage space. Maximum is 32768 bytes. Global variables use 552 bytes (5%) of dynamic memory, leaving 9688 bytes for local variables. Maximum is 10240 bytes.
-------------------------------------
https://github.com/BennehBoy
https://github.com/BennehBoy
Re: [fake-stm32-blue-pill-board] STM32F103C8T6 Bootloader/Sketch problems
-------------------------------------
https://github.com/BennehBoy
https://github.com/BennehBoy
Re: [fake-stm32-blue-pill-board] STM32F103C8T6 Bootloader/Sketch problems
I changed 3 lines in ldscript.ld - I only see one line changed in the pull request. Thanks for doing this.
Re: [fake-stm32-blue-pill-board] STM32F103C8T6 Bootloader/Sketch problems
Good point 

-------------------------------------
https://github.com/BennehBoy
https://github.com/BennehBoy
Re: [fake-stm32-blue-pill-board] STM32F103C8T6 Bootloader/Sketch problems
@fredbox, have you managed to test the PR?
-------------------------------------
https://github.com/BennehBoy
https://github.com/BennehBoy
Re: [fake-stm32-blue-pill-board] STM32F103C8T6 Bootloader/Sketch problems
Guys,
I've made a fix to build properly for a C6.
Number of peripheral is not the same between STM32F103C6 and CB
C6 does not have USART3 and TIM4.
https://github.com/BennehBoy/Arduino_Core_STM32/pull/1
I've made a fix to build properly for a C6.
Number of peripheral is not the same between STM32F103C6 and CB
C6 does not have USART3 and TIM4.
https://github.com/BennehBoy/Arduino_Core_STM32/pull/1
Re: [fake-stm32-blue-pill-board] STM32F103C8T6 Bootloader/Sketch problems
Thanks Frederic, as per github I'll merge later (I'm at the office).
-------------------------------------
https://github.com/BennehBoy
https://github.com/BennehBoy