platform-atmelavr icon indicating copy to clipboard operation
platform-atmelavr copied to clipboard

Warning about maximum data size should be an error instead

Open robbieh opened this issue 1 year ago • 2 comments

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.

robbieh avatar Sep 06 '24 14:09 robbieh

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?

valeros avatar Oct 10 '24 08:10 valeros

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.

robbieh avatar Oct 10 '24 23:10 robbieh