-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Please, before reporting any issue
- Make sure you are using the latest Arduino_Core_STM32 version.
https://github.com/stm32duino/Arduino_Core_STM32/releases/latest - Make sure the issue is not already reported/fixed on GitHub or discussed on the stm32duino forum
- Submit a GitHub issue only for reporting a problem related to the Arduino_Core_STM32.
- Avoid to submit a GitHub issue for project troubleshooting.
Any questions/feedback/suggestions should be discussed on the stm32duino forum:
- questions on the STM32 Core
- bugs/enhancements on the STM core: Bugs and enhancements
⚠ When reporting any issue, please try to provide all relevant information to help on its resolution.
Describe the bug
Hello, i am having a problem with memory usage on my STM32F030 board. This is just for compiling and not for uploading. When i write a very small amount of code, i noticed that the used memory after a compile rapidly increases, even just to blink an LED is already at 66% flash usage. And a bare bones sketch already uses 49%. This value increases unusually quickly and i have never seen this happen with my other boards packages before. If anyone can help me figure this out i will gladly appreciate it, thank you foe your help.
To Reproduce
There is really no good code to show, just write as you go and frequently verify the code.
Steps to reproduce the behavior:
- Start with a bare bones sketch, hit verify or compile, the used flash memory is 49%
- Write a code to blink the led, 66% is used.
- Write a code to slowly fade the led with pwm, including a value to keep track of current brightness, a delay value, a speed value, and a boolean value used to invert the fade, 88% used.
- Or just simply include the Wire library in a bare bones sketch, 79% used.
Expected behavior
Memory usage goes up slowly as more code is being added, and not very quickly.
Screenshots
Will add soon.
Desktop (please complete the following information):
- OS: Windows
- Arduino IDE version: 1.8.19
- STM32 core version: 2.5.0
- Tools menu settings: default
- Upload method: Serial (using hacked drivers).
Board (please complete the following information):
- Name: Generic STM32F030F4x
- Hardware Revision: unsure, the board is a clone from china.
- Extra hardware used if any: FTDI adapter
Additional context
Uploading to the board works fine, it’s just the memory usage on the Arduino side is crazy, even for a very tiny code. I believe my other STM32 boards don’t have this issue. I am not sure if these memory problems are normal, but I believe i’m the only person with this issue. I truly believe this is a real bug, and as far as i can tell no-one else posted anything about this problem. I hope a solution can be made to fix this problem. Thank you again for your help.