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 :
https://www.petoi.com/forum/basic-assembly-and-setup/opencat-sketch-too-big-solved
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
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.
I'm also on the M1 chip. The compiled code takes about 92% of the UNO's flash. Have you edited the IRremote.h as mentioned in chapter 4 of the manual?
Hello, I test the OpenCat.ino Sketch with an UNO with Errors by uploading.
Then I test the same with an Mega 2560 without any problem. :)
Perhaps it helps you. ;)