top of page

Basic Assembly and Setup

Public·217 members

Sketch uses over 100% when OpenCat.ino uploaded

Today, I unpacked Bittle and successfully ran WriteInstinct.ino. But I failed to upload OpenCat.ino because sketch uses over 100%.

How do I solve this situation?


What I checked :

  1. https://www.petoi.com/forum/basic-assembly-and-setup/opencat-sketch-too-big-solved

  2. IRremote 2.6.1 installed


Environment :

  • OS : MacOSX 11.2.2(BigSur)

  • CPU : Apple M1

  • Arduino IDE : 1.8.3 and 2.0.0


Error message :

In file included from /Users/user_name/Dev/OpenCat/WriteInstinct/OpenCat.h:86:0, from /Users/user_name/Dev/OpenCat/OpenCat.ino:31:/Users/user_name/Library/Arduino15/packages/arduino/hardware/avr/1.8.3/libraries/Wire/src/Wire.h: In member function 'void Motion::loadDataFromI2cEeprom(unsigned int&)':/Users/user_name/Library/Arduino15/packages/arduino/hardware/avr/1.8.3/libraries/Wire/src/Wire.h:68:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int) uint8_t requestFrom(int, int); ^~~/Users/user_name/Library/Arduino15/packages/arduino/hardware/avr/1.8.3/libraries/Wire/src/Wire.h:65:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t) uint8_t requestFrom(uint8_t, uint8_t); ^~~Sketch uses 33328 bytes (103%) of program storage space. Maximum is 32256 bytes.Global variables use 1208 bytes (58%) of dynamic memory, leaving 840 bytes for local variables. Maximum is 2048 bytes.Sketch too big; see https://support.arduino.cc/hc/en-us/articles/360013825179 for tips on reducing it.Compilation error: Error: 2 UNKNOWN: text section exceeds available space in board

84 Views
ar-aya
ar-aya
Aug 23, 2021

I solved.


I already have edited IRremote.h since the first post, but it was the same name file of a different path.

I strictly checked the path of "Documents/Arduino/libraries/IRremote/src/IRremote.h" and I edit the file, then uploading succeeded.


Thank you for your advice guys.

bottom of page