Skip to content
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

Added Generic F3xx Boards #1795

Merged
merged 1 commit into from
Aug 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,32 @@ User can add a STM32 based board following this [wiki](https://github.com/stm32d

| Status | Device(s) | Name | Release | Notes |
| :----: | :-------: | ---- | :-----: | :---- |
| :yellow_heart: | STM32F301C6<br>STM32F301C8 | Generic Board | **2.4.0** | |
| :yellow_heart: | STM32F301K6<br>STM32F301K8 | Generic Board | **2.4.0** | |
| :yellow_heart: | STM32F301R6<br>STM32F301R8 | Generic Board | **2.4.0** | |
| :green_heart: | STM32F302R6<br>STM32F302R8 | Generic Board | *2.0.0* | |
| :yellow_heart: | STM32F303C6<br>STM32F303C8 | Generic Board | **2.4.0** | |
| :green_heart: | STM32F303CB<br>STM32F303CC | Generic Board | *2.0.0* | |
| :green_heart: | STM32F303CC | [RobotDyn Black Pill](https://stm32-base.org/boards/STM32F303CCT6-RobotDyn-Black-Pill) | *1.6.1* | [More info](https://robotdyn.com/catalog/development-boards/stm-boards-and-shields.html) |
| :green_heart: | STM32F303K6<br>STM32F303K8 | Generic Board | *2.0.0* | |
| :yellow_heart: | STM32F303R6<br>STM32F303R8 | Generic Board | **2.4.0** | |
| :green_heart: | STM32F303RD<br>STM32F303RE | Generic Board | *2.0.0* | |
| :green_heart: | STM32F303RB<br>STM32F303RC | Generic Board | *2.0.0* | |
| :green_heart: | STM32F303RC | [OLIMEXINO-STM32F3](https://www.olimex.com/Products/Duino/STM32/OLIMEXINO-STM32F3/) | *2.0.0* | |
| :green_heart: | STM32F303VBT<br>STM32F303VCT | Generic Board | *2.0.0* | |
| :yellow_heart: | STM32F318C8 | Generic Board | **2.4.0** | |
| :yellow_heart: | STM32F318K8 | Generic Board | **2.4.0** | |
| :yellow_heart: | STM32F328C8 | Generic Board | **2.4.0** | |
| :yellow_heart: | STM32F334C4<br>STM32F334C6<br>STM32F334C8 | Generic Board | **2.4.0** | |
| :green_heart: | STM32F334K4<br>STM32F334K6<br>STM32F334K8 | Generic Board | *2.0.0* | |
| :yellow_heart: | STM32F334R6<br>STM32F334R8 | Generic Board | **2.4.0** | |
| :yellow_heart: | STM32F358CC | Generic Board | **2.4.0** | |
| :yellow_heart: | STM32F358RC | Generic Board | **2.4.0** | |
| :yellow_heart: | STM32F358VC | Generic Board | **2.4.0** | |
| :yellow_heart: | STM32F378CC | Generic Board | **2.4.0** | |
| :yellow_heart: | STM32F378RC | Generic Board | **2.4.0** | |
| :yellow_heart: | STM32F378VC | Generic Board | **2.4.0** | |
| :yellow_heart: | STM32F398VE | Generic Board | **2.4.0** | |

### Generic STM32F4 boards

Expand Down
232 changes: 232 additions & 0 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2027,6 +2027,62 @@ GenF3.menu.pnum.OLIMEXINO_STM32F3.build.product_line=STM32F303xC
GenF3.menu.pnum.OLIMEXINO_STM32F3.build.variant_h=variant_{build.board}.h
GenF3.menu.pnum.OLIMEXINO_STM32F3.build.variant=STM32F3xx/F303R(B-C)T

# Generic F301C6Tx
GenF3.menu.pnum.GENERIC_F301C6TX=Generic F301C6Tx
GenF3.menu.pnum.GENERIC_F301C6TX.upload.maximum_size=32768
GenF3.menu.pnum.GENERIC_F301C6TX.upload.maximum_data_size=16384
GenF3.menu.pnum.GENERIC_F301C6TX.build.board=GENERIC_F301C6TX
GenF3.menu.pnum.GENERIC_F301C6TX.build.product_line=STM32F301x8
GenF3.menu.pnum.GENERIC_F301C6TX.build.variant=STM32F3xx/F301C6T_F301C8(T-Y)

# Generic F301C8Tx
GenF3.menu.pnum.GENERIC_F301C8TX=Generic F301C8Tx
GenF3.menu.pnum.GENERIC_F301C8TX.upload.maximum_size=65536
GenF3.menu.pnum.GENERIC_F301C8TX.upload.maximum_data_size=16384
GenF3.menu.pnum.GENERIC_F301C8TX.build.board=GENERIC_F301C8TX
GenF3.menu.pnum.GENERIC_F301C8TX.build.product_line=STM32F301x8
GenF3.menu.pnum.GENERIC_F301C8TX.build.variant=STM32F3xx/F301C6T_F301C8(T-Y)

# Generic F301C8Yx
GenF3.menu.pnum.GENERIC_F301C8YX=Generic F301C8Yx
GenF3.menu.pnum.GENERIC_F301C8YX.upload.maximum_size=65536
GenF3.menu.pnum.GENERIC_F301C8YX.upload.maximum_data_size=16384
GenF3.menu.pnum.GENERIC_F301C8YX.build.board=GENERIC_F301C8YX
GenF3.menu.pnum.GENERIC_F301C8YX.build.product_line=STM32F301x8
GenF3.menu.pnum.GENERIC_F301C8YX.build.variant=STM32F3xx/F301C6T_F301C8(T-Y)

# Generic F301K6Tx
GenF3.menu.pnum.GENERIC_F301K6TX=Generic F301K6Tx
GenF3.menu.pnum.GENERIC_F301K6TX.upload.maximum_size=32768
GenF3.menu.pnum.GENERIC_F301K6TX.upload.maximum_data_size=16384
GenF3.menu.pnum.GENERIC_F301K6TX.build.board=GENERIC_F301K6TX
GenF3.menu.pnum.GENERIC_F301K6TX.build.product_line=STM32F301x8
GenF3.menu.pnum.GENERIC_F301K6TX.build.variant=STM32F3xx/F301K(6-8)T

# Generic F301K8Tx
GenF3.menu.pnum.GENERIC_F301K8TX=Generic F301K8Tx
GenF3.menu.pnum.GENERIC_F301K8TX.upload.maximum_size=65536
GenF3.menu.pnum.GENERIC_F301K8TX.upload.maximum_data_size=16384
GenF3.menu.pnum.GENERIC_F301K8TX.build.board=GENERIC_F301K8TX
GenF3.menu.pnum.GENERIC_F301K8TX.build.product_line=STM32F301x8
GenF3.menu.pnum.GENERIC_F301K8TX.build.variant=STM32F3xx/F301K(6-8)T

# Generic F301R6Tx
GenF3.menu.pnum.GENERIC_F301R6TX=Generic F301R6Tx
GenF3.menu.pnum.GENERIC_F301R6TX.upload.maximum_size=32768
GenF3.menu.pnum.GENERIC_F301R6TX.upload.maximum_data_size=16384
GenF3.menu.pnum.GENERIC_F301R6TX.build.board=GENERIC_F301R6TX
GenF3.menu.pnum.GENERIC_F301R6TX.build.product_line=STM32F301x8
GenF3.menu.pnum.GENERIC_F301R6TX.build.variant=STM32F3xx/F301R(6-8)T

# Generic F301R8Tx
GenF3.menu.pnum.GENERIC_F301R8TX=Generic F301R8Tx
GenF3.menu.pnum.GENERIC_F301R8TX.upload.maximum_size=65536
GenF3.menu.pnum.GENERIC_F301R8TX.upload.maximum_data_size=16384
GenF3.menu.pnum.GENERIC_F301R8TX.build.board=GENERIC_F301R8TX
GenF3.menu.pnum.GENERIC_F301R8TX.build.product_line=STM32F301x8
GenF3.menu.pnum.GENERIC_F301R8TX.build.variant=STM32F3xx/F301R(6-8)T

# Generic F302R6Tx
GenF3.menu.pnum.GENERIC_F302R6TX=Generic F302R6Tx
GenF3.menu.pnum.GENERIC_F302R6TX.upload.maximum_size=32768
Expand All @@ -2043,6 +2099,22 @@ GenF3.menu.pnum.GENERIC_F302R8TX.build.board=GENERIC_F302R8TX
GenF3.menu.pnum.GENERIC_F302R8TX.build.product_line=STM32F302x8
GenF3.menu.pnum.GENERIC_F302R8TX.build.variant=STM32F3xx/F302R(6-8)T

# Generic F303C6Tx
GenF3.menu.pnum.GENERIC_F303C6TX=Generic F303C6Tx
GenF3.menu.pnum.GENERIC_F303C6TX.upload.maximum_size=32768
GenF3.menu.pnum.GENERIC_F303C6TX.upload.maximum_data_size=12288
GenF3.menu.pnum.GENERIC_F303C6TX.build.board=GENERIC_F303C6TX
GenF3.menu.pnum.GENERIC_F303C6TX.build.product_line=STM32F303x8
GenF3.menu.pnum.GENERIC_F303C6TX.build.variant=STM32F3xx/F303C(6-8)T_F334C(4-6-8)T

# Generic F303C8Tx
GenF3.menu.pnum.GENERIC_F303C8TX=Generic F303C8Tx
GenF3.menu.pnum.GENERIC_F303C8TX.upload.maximum_size=65536
GenF3.menu.pnum.GENERIC_F303C8TX.upload.maximum_data_size=12288
GenF3.menu.pnum.GENERIC_F303C8TX.build.board=GENERIC_F303C8TX
GenF3.menu.pnum.GENERIC_F303C8TX.build.product_line=STM32F303x8
GenF3.menu.pnum.GENERIC_F303C8TX.build.variant=STM32F3xx/F303C(6-8)T_F334C(4-6-8)T

# Generic F303CBTx
GenF3.menu.pnum.GENERIC_F303CBTX=Generic F303CBTx
GenF3.menu.pnum.GENERIC_F303CBTX.upload.maximum_size=131072
Expand Down Expand Up @@ -2075,6 +2147,22 @@ GenF3.menu.pnum.GENERIC_F303K8TX.build.board=GENERIC_F303K8TX
GenF3.menu.pnum.GENERIC_F303K8TX.build.product_line=STM32F303x8
GenF3.menu.pnum.GENERIC_F303K8TX.build.variant=STM32F3xx/F303K(6-8)T_F334K(4-6-8)T

# Generic F303R6Tx
GenF3.menu.pnum.GENERIC_F303R6TX=Generic F303R6Tx
GenF3.menu.pnum.GENERIC_F303R6TX.upload.maximum_size=32768
GenF3.menu.pnum.GENERIC_F303R6TX.upload.maximum_data_size=12288
GenF3.menu.pnum.GENERIC_F303R6TX.build.board=GENERIC_F303R6TX
GenF3.menu.pnum.GENERIC_F303R6TX.build.product_line=STM32F303x8
GenF3.menu.pnum.GENERIC_F303R6TX.build.variant=STM32F3xx/F303R(6-8)T_F334R(6-8)T

# Generic F303R8Tx
GenF3.menu.pnum.GENERIC_F303R8TX=Generic F303R8Tx
GenF3.menu.pnum.GENERIC_F303R8TX.upload.maximum_size=65536
GenF3.menu.pnum.GENERIC_F303R8TX.upload.maximum_data_size=12288
GenF3.menu.pnum.GENERIC_F303R8TX.build.board=GENERIC_F303R8TX
GenF3.menu.pnum.GENERIC_F303R8TX.build.product_line=STM32F303x8
GenF3.menu.pnum.GENERIC_F303R8TX.build.variant=STM32F3xx/F303R(6-8)T_F334R(6-8)T

# Generic F303RBTx
GenF3.menu.pnum.GENERIC_F303RBTX=Generic F303RBTx
GenF3.menu.pnum.GENERIC_F303RBTX.upload.maximum_size=131072
Expand Down Expand Up @@ -2123,6 +2211,62 @@ GenF3.menu.pnum.GENERIC_F303VCTX.build.board=GENERIC_F303VCTX
GenF3.menu.pnum.GENERIC_F303VCTX.build.product_line=STM32F303xC
GenF3.menu.pnum.GENERIC_F303VCTX.build.variant=STM32F3xx/F303V(B-C)T

# Generic F318C8Tx
GenF3.menu.pnum.GENERIC_F318C8TX=Generic F318C8Tx
GenF3.menu.pnum.GENERIC_F318C8TX.upload.maximum_size=65536
GenF3.menu.pnum.GENERIC_F318C8TX.upload.maximum_data_size=16384
GenF3.menu.pnum.GENERIC_F318C8TX.build.board=GENERIC_F318C8TX
GenF3.menu.pnum.GENERIC_F318C8TX.build.product_line=STM32F318xx
GenF3.menu.pnum.GENERIC_F318C8TX.build.variant=STM32F3xx/F318C8(T-Y)

# Generic F318C8Yx
GenF3.menu.pnum.GENERIC_F318C8YX=Generic F318C8Yx
GenF3.menu.pnum.GENERIC_F318C8YX.upload.maximum_size=65536
GenF3.menu.pnum.GENERIC_F318C8YX.upload.maximum_data_size=16384
GenF3.menu.pnum.GENERIC_F318C8YX.build.board=GENERIC_F318C8YX
GenF3.menu.pnum.GENERIC_F318C8YX.build.product_line=STM32F318xx
GenF3.menu.pnum.GENERIC_F318C8YX.build.variant=STM32F3xx/F318C8(T-Y)

# Generic F318K8Ux
GenF3.menu.pnum.GENERIC_F318K8UX=Generic F318K8Ux
GenF3.menu.pnum.GENERIC_F318K8UX.upload.maximum_size=65536
GenF3.menu.pnum.GENERIC_F318K8UX.upload.maximum_data_size=16384
GenF3.menu.pnum.GENERIC_F318K8UX.build.board=GENERIC_F318K8UX
GenF3.menu.pnum.GENERIC_F318K8UX.build.product_line=STM32F318xx
GenF3.menu.pnum.GENERIC_F318K8UX.build.variant=STM32F3xx/F318K8U

# Generic F328C8Tx
GenF3.menu.pnum.GENERIC_F328C8TX=Generic F328C8Tx
GenF3.menu.pnum.GENERIC_F328C8TX.upload.maximum_size=65536
GenF3.menu.pnum.GENERIC_F328C8TX.upload.maximum_data_size=12288
GenF3.menu.pnum.GENERIC_F328C8TX.build.board=GENERIC_F328C8TX
GenF3.menu.pnum.GENERIC_F328C8TX.build.product_line=STM32F328xx
GenF3.menu.pnum.GENERIC_F328C8TX.build.variant=STM32F3xx/F328C8T

# Generic F334C4Tx
GenF3.menu.pnum.GENERIC_F334C4TX=Generic F334C4Tx
GenF3.menu.pnum.GENERIC_F334C4TX.upload.maximum_size=16384
GenF3.menu.pnum.GENERIC_F334C4TX.upload.maximum_data_size=12288
GenF3.menu.pnum.GENERIC_F334C4TX.build.board=GENERIC_F334C4TX
GenF3.menu.pnum.GENERIC_F334C4TX.build.product_line=STM32F334x8
GenF3.menu.pnum.GENERIC_F334C4TX.build.variant=STM32F3xx/F303C(6-8)T_F334C(4-6-8)T

# Generic F334C6Tx
GenF3.menu.pnum.GENERIC_F334C6TX=Generic F334C6Tx
GenF3.menu.pnum.GENERIC_F334C6TX.upload.maximum_size=32768
GenF3.menu.pnum.GENERIC_F334C6TX.upload.maximum_data_size=12288
GenF3.menu.pnum.GENERIC_F334C6TX.build.board=GENERIC_F334C6TX
GenF3.menu.pnum.GENERIC_F334C6TX.build.product_line=STM32F334x8
GenF3.menu.pnum.GENERIC_F334C6TX.build.variant=STM32F3xx/F303C(6-8)T_F334C(4-6-8)T

# Generic F334C8Tx
GenF3.menu.pnum.GENERIC_F334C8TX=Generic F334C8Tx
GenF3.menu.pnum.GENERIC_F334C8TX.upload.maximum_size=65536
GenF3.menu.pnum.GENERIC_F334C8TX.upload.maximum_data_size=12288
GenF3.menu.pnum.GENERIC_F334C8TX.build.board=GENERIC_F334C8TX
GenF3.menu.pnum.GENERIC_F334C8TX.build.product_line=STM32F334x8
GenF3.menu.pnum.GENERIC_F334C8TX.build.variant=STM32F3xx/F303C(6-8)T_F334C(4-6-8)T

# Generic F334K4Tx
GenF3.menu.pnum.GENERIC_F334K4TX=Generic F334K4Tx
GenF3.menu.pnum.GENERIC_F334K4TX.upload.maximum_size=16384
Expand All @@ -2147,6 +2291,94 @@ GenF3.menu.pnum.GENERIC_F334K8TX.build.board=GENERIC_F334K8TX
GenF3.menu.pnum.GENERIC_F334K8TX.build.product_line=STM32F334x8
GenF3.menu.pnum.GENERIC_F334K8TX.build.variant=STM32F3xx/F303K(6-8)T_F334K(4-6-8)T

# Generic F334R6Tx
GenF3.menu.pnum.GENERIC_F334R6TX=Generic F334R6Tx
GenF3.menu.pnum.GENERIC_F334R6TX.upload.maximum_size=32768
GenF3.menu.pnum.GENERIC_F334R6TX.upload.maximum_data_size=12288
GenF3.menu.pnum.GENERIC_F334R6TX.build.board=GENERIC_F334R6TX
GenF3.menu.pnum.GENERIC_F334R6TX.build.product_line=STM32F334x8
GenF3.menu.pnum.GENERIC_F334R6TX.build.variant=STM32F3xx/F303R(6-8)T_F334R(6-8)T

# Generic F334R8Tx
GenF3.menu.pnum.GENERIC_F334R8TX=Generic F334R8Tx
GenF3.menu.pnum.GENERIC_F334R8TX.upload.maximum_size=65536
GenF3.menu.pnum.GENERIC_F334R8TX.upload.maximum_data_size=12288
GenF3.menu.pnum.GENERIC_F334R8TX.build.board=GENERIC_F334R8TX
GenF3.menu.pnum.GENERIC_F334R8TX.build.product_line=STM32F334x8
GenF3.menu.pnum.GENERIC_F334R8TX.build.variant=STM32F3xx/F303R(6-8)T_F334R(6-8)T

# Generic F358CCTx
GenF3.menu.pnum.GENERIC_F358CCTX=Generic F358CCTx
GenF3.menu.pnum.GENERIC_F358CCTX.upload.maximum_size=262144
GenF3.menu.pnum.GENERIC_F358CCTX.upload.maximum_data_size=40960
GenF3.menu.pnum.GENERIC_F358CCTX.build.board=GENERIC_F358CCTX
GenF3.menu.pnum.GENERIC_F358CCTX.build.product_line=STM32F358xx
GenF3.menu.pnum.GENERIC_F358CCTX.build.variant=STM32F3xx/F358CCT

# Generic F358RCTx
GenF3.menu.pnum.GENERIC_F358RCTX=Generic F358RCTx
GenF3.menu.pnum.GENERIC_F358RCTX.upload.maximum_size=262144
GenF3.menu.pnum.GENERIC_F358RCTX.upload.maximum_data_size=40960
GenF3.menu.pnum.GENERIC_F358RCTX.build.board=GENERIC_F358RCTX
GenF3.menu.pnum.GENERIC_F358RCTX.build.product_line=STM32F358xx
GenF3.menu.pnum.GENERIC_F358RCTX.build.variant=STM32F3xx/F358RCT

# Generic F358VCTx
GenF3.menu.pnum.GENERIC_F358VCTX=Generic F358VCTx
GenF3.menu.pnum.GENERIC_F358VCTX.upload.maximum_size=262144
GenF3.menu.pnum.GENERIC_F358VCTX.upload.maximum_data_size=40960
GenF3.menu.pnum.GENERIC_F358VCTX.build.board=GENERIC_F358VCTX
GenF3.menu.pnum.GENERIC_F358VCTX.build.product_line=STM32F358xx
GenF3.menu.pnum.GENERIC_F358VCTX.build.variant=STM32F3xx/F358VCT

# Generic F378CCTx
GenF3.menu.pnum.GENERIC_F378CCTX=Generic F378CCTx
GenF3.menu.pnum.GENERIC_F378CCTX.upload.maximum_size=262144
GenF3.menu.pnum.GENERIC_F378CCTX.upload.maximum_data_size=32768
GenF3.menu.pnum.GENERIC_F378CCTX.build.board=GENERIC_F378CCTX
GenF3.menu.pnum.GENERIC_F378CCTX.build.product_line=STM32F378xx
GenF3.menu.pnum.GENERIC_F378CCTX.build.variant=STM32F3xx/F378CCT

# Generic F378RCTx
GenF3.menu.pnum.GENERIC_F378RCTX=Generic F378RCTx
GenF3.menu.pnum.GENERIC_F378RCTX.upload.maximum_size=262144
GenF3.menu.pnum.GENERIC_F378RCTX.upload.maximum_data_size=32768
GenF3.menu.pnum.GENERIC_F378RCTX.build.board=GENERIC_F378RCTX
GenF3.menu.pnum.GENERIC_F378RCTX.build.product_line=STM32F378xx
GenF3.menu.pnum.GENERIC_F378RCTX.build.variant=STM32F3xx/F378RC(T-Y)

# Generic F378RCYx
GenF3.menu.pnum.GENERIC_F378RCYX=Generic F378RCYx
GenF3.menu.pnum.GENERIC_F378RCYX.upload.maximum_size=262144
GenF3.menu.pnum.GENERIC_F378RCYX.upload.maximum_data_size=32768
GenF3.menu.pnum.GENERIC_F378RCYX.build.board=GENERIC_F378RCYX
GenF3.menu.pnum.GENERIC_F378RCYX.build.product_line=STM32F378xx
GenF3.menu.pnum.GENERIC_F378RCYX.build.variant=STM32F3xx/F378RC(T-Y)

# Generic F378VCHx
GenF3.menu.pnum.GENERIC_F378VCHX=Generic F378VCHx
GenF3.menu.pnum.GENERIC_F378VCHX.upload.maximum_size=262144
GenF3.menu.pnum.GENERIC_F378VCHX.upload.maximum_data_size=32768
GenF3.menu.pnum.GENERIC_F378VCHX.build.board=GENERIC_F378VCHX
GenF3.menu.pnum.GENERIC_F378VCHX.build.product_line=STM32F378xx
GenF3.menu.pnum.GENERIC_F378VCHX.build.variant=STM32F3xx/F378VC(H-T)

# Generic F378VCTx
GenF3.menu.pnum.GENERIC_F378VCTX=Generic F378VCTx
GenF3.menu.pnum.GENERIC_F378VCTX.upload.maximum_size=262144
GenF3.menu.pnum.GENERIC_F378VCTX.upload.maximum_data_size=32768
GenF3.menu.pnum.GENERIC_F378VCTX.build.board=GENERIC_F378VCTX
GenF3.menu.pnum.GENERIC_F378VCTX.build.product_line=STM32F378xx
GenF3.menu.pnum.GENERIC_F378VCTX.build.variant=STM32F3xx/F378VC(H-T)

# Generic F398VETx
GenF3.menu.pnum.GENERIC_F398VETX=Generic F398VETx
GenF3.menu.pnum.GENERIC_F398VETX.upload.maximum_size=524288
GenF3.menu.pnum.GENERIC_F398VETX.upload.maximum_data_size=65536
GenF3.menu.pnum.GENERIC_F398VETX.build.board=GENERIC_F398VETX
GenF3.menu.pnum.GENERIC_F398VETX.build.product_line=STM32F398xx
GenF3.menu.pnum.GENERIC_F398VETX.build.variant=STM32F3xx/F398VET

# Upload menu
GenF3.menu.upload_method.swdMethod=STM32CubeProgrammer (SWD)
GenF3.menu.upload_method.swdMethod.upload.protocol=0
Expand Down
30 changes: 28 additions & 2 deletions variants/STM32F3xx/F301C6T_F301C8(T-Y)/generic_clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,34 @@
*/
WEAK void SystemClock_Config(void)
{
/* SystemClock_Config can be generated by STM32CubeMX */
#warning "SystemClock_Config() is empty. Default clock at reset is used."
RCC_OscInitTypeDef RCC_OscInitStruct = {};
RCC_ClkInitTypeDef RCC_ClkInitStruct = {};

/** Initializes the RCC Oscillators according to the specified parameters
* in the RCC_OscInitTypeDef structure.
*/
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
RCC_OscInitStruct.HSICalibrationValue = RCC_HSICALIBRATION_DEFAULT;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
RCC_OscInitStruct.PLL.PLLMUL = RCC_PLL_MUL16;
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) {
Error_Handler();
}

/** Initializes the CPU, AHB and APB buses clocks
*/
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK | RCC_CLOCKTYPE_SYSCLK
| RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2;
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2;
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;

if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK) {
Error_Handler();
}
}

#endif /* ARDUINO_GENERIC_* */
Loading