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

Disable all SPL modules but GPIO for spl-blink #43

Merged
merged 4 commits into from
Mar 23, 2021
Merged

Disable all SPL modules but GPIO for spl-blink #43

merged 4 commits into from
Mar 23, 2021

Conversation

maxgerhardt
Copy link
Contributor

@maxgerhardt maxgerhardt commented Mar 23, 2021

This significantly reduces the firmware size and also makes it possible to compile the firmware for a smaller 8Kbyte flash device (stm8sblue), where the firmware is only 565 bytes big, compared to the over 21kByte before.

For the environments

stm8sblue
stm8sdisco
nucleo_8s207k8
nucleo_8s208rb

with the old config file:

Error: The program size (21730 bytes) is greater than maximum allowed (8192 bytes)
*** [checkprogsize] Explicit exit, status 1
RAM:   [          ]   0.0% (used 0 bytes from 1024 bytes)
Flash: [==========]  265.3% (used 21730 bytes from 8192 bytes)

RAM:   [          ]   0.0% (used 0 bytes from 2048 bytes)
Flash: [=======   ]  74.4% (used 24393 bytes from 32768 bytes)

RAM:   [          ]   0.1% (used 5 bytes from 6144 bytes)
Flash: [====      ]  37.9% (used 24839 bytes from 65536 bytes)

RAM:   [          ]   0.3% (used 21 bytes from 6144 bytes)
Flash: [==        ]  22.2% (used 29062 bytes from 131072 bytes)

With my updated file:

RAM:   [          ]   0.0% (used 0 bytes from 1024 bytes)
Flash: [=         ]   6.9% (used 565 bytes from 8192 bytes)

RAM:   [          ]   0.0% (used 0 bytes from 2048 bytes)
Flash: [          ]   1.7% (used 567 bytes from 32768 bytes)

RAM:   [          ]   0.0% (used 0 bytes from 6144 bytes)
Flash: [          ]   0.9% (used 569 bytes from 65536 bytes)

RAM:   [          ]   0.0% (used 0 bytes from 6144 bytes)
Flash: [          ]   0.4% (used 571 bytes from 131072 bytes)

The resulting firmare still works on my STM8S103F3 board.

This significantly reduces the firmware size and also makes it possible to compile the firmware for a smaller 8Kbyte flash device (stm8sblue), where the firmware is only 565 bytes big, compared to the over 25kByte before
GPIOG doesn't exist and would result in build failure.
@maxgerhardt maxgerhardt changed the title Disable all SPL modules but GPIO and CLK for spl-blink Disable all SPL modules but GPIO for spl-blink Mar 23, 2021
@valeros valeros merged commit d616bbe into platformio:develop Mar 23, 2021
@valeros
Copy link
Member

valeros commented Mar 23, 2021

Thanks, merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants