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

Warning about maximum data size should be an error instead #333

Open
robbieh opened this issue Sep 6, 2024 · 2 comments
Open

Warning about maximum data size should be an error instead #333

robbieh opened this issue Sep 6, 2024 · 2 comments

Comments

@robbieh
Copy link

robbieh commented Sep 6, 2024

Checking size .pio/build/32u416m/firmware.elf                                                     
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"                        
RAM:   [========Warning! The data size (7243 bytes) is greater than maximum allowed (2560 bytes)                                                                                                    
==]  282.9% (used 7243 bytes from 2560 bytes)                                                                                                                                                       
Flash: [===       ]  25.9% (used 7432 bytes from 28672 bytes)                                     
Building .pio/build/32u416m/firmware.hex                                                                                                                                                            
Configuring upload protocol...                                                                                                                                                                      
AVAILABLE: avr109                                                                                                                                                                                   
CURRENT: upload_protocol = avr109                                                                 
Looking for upload port...                                                                        
Auto-detected: /dev/ttyACM0                                                                                                                                                                         
Forcing reset using 1200bps open/close on port /dev/ttyACM0                                                                                                                                         
Waiting for the new upload port...                                                                                                                                                                  
Uploading .pio/build/32u416m/firmware.hex                           

This destroyed the board I was working with. This should have failed with an error instead.

@valeros
Copy link
Member

valeros commented Oct 10, 2024

Hi @robbieh

Indeed, PlatformIO only prints a warning in case of a RAM overflow, but it shouldn't break your board. Could you please elaborate on what happened after you uploaded the binary?

@robbieh
Copy link
Author

robbieh commented Oct 10, 2024

The board stopped responding to attempts to program it over USB. I don't have a non-USB programmer handy, and I suspect using one would fix it.

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

No branches or pull requests

2 participants