Skip to content

High Flash Usages for any program #363

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

Closed
mayurharge opened this issue Oct 31, 2018 · 3 comments
Closed

High Flash Usages for any program #363

mayurharge opened this issue Oct 31, 2018 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@mayurharge
Copy link

I am using the latest arduino core stm32. On a windows machine.
I am trying to compile a code for nucleo32 board with L031K6 mcu. Strangely The compiled code size is becoming very high and so i am unable to include any library.
I tried to compile basic analogtoserial code from arduino examples. That code alone is using almost 64% of the total flash, if i add any library it son reaches to 90% or sometimes beyon 100%.

I checken on stmduino forums and some people suggested about adding --specs=nano.specs in the end of line beginning with "recipe.c.combine.pattern=...." in platforms.txt but in my case this is already there.

I have tried many things but it seems like an issue with the core. Can someone point me in right direction here...

@fpistm
Copy link
Member

fpistm commented Oct 31, 2018

Hi @mayurharge
There is no issue, some actions are on going to decrease the size.
The next release (will come today 1.4.0) will decrease the basic size.
You could also fully disabling the Serial feature if you do not use it thanks the menu.
Other actions will be to use the LL for the clock config and also be able to disable useless HAL See #228

@mayurharge
Copy link
Author

thanks, @fpistm
I will try out disabling useless HAL and will wait for next release

@fpistm
Copy link
Member

fpistm commented Nov 2, 2018

New release done.
For useless HAL this will required #228.
Note also that LL will be more deployed to reduce size.
I would mark this issue as a duplicated of #228 are you agreed?

@fpistm fpistm added waiting feedback Further information is required duplicate This issue or pull request already exists and removed waiting feedback Further information is required labels Nov 2, 2018
@fpistm fpistm closed this as completed Nov 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants