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

STM8S103F3P6 and SSD1306 Not enough memory #42

pasagame opened this Issue Jan 24, 2018 · 2 comments


None yet
3 participants
Copy link

pasagame commented Jan 24, 2018

i use file example oled-mini.ino it is show Not enough memory. how to fix issue or change module?

Sketch uses 5646 bytes (68%) of program storage space. Maximum is 8192 bytes. Global variables use 1141 bytes (111%) of dynamic memory, leaving -117 bytes for local variables. Maximum is 1024 bytes. Not enough memory; see for tips on reducing your footprint. Error compiling for board STM8S103F3 Breakout Board.


This comment has been minimized.

Copy link

peekpt commented May 19, 2018

same here :(

@tenbaht tenbaht added the wontfix label Nov 14, 2018


This comment has been minimized.

Copy link

tenbaht commented Nov 14, 2018

There is no fix, this is a device limitation. 128x64 pixel need 128x64 = 8kbit = 1kB of RAM for the display buffer. Since the STM8S103 has only 1kB RAM total, there is no way that this will fit.

The u8g2 library by Oli Kraus is able use less RAM by rendering the image in multiple stripes. This is slower, but saves RAM. I am thinking of porting that library, but don't hold your breath for it.

@tenbaht tenbaht closed this Nov 14, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment