Cool stuff for Raspberry Pi, Arduino and all electronics hobby projects
Notifications
Clear all

Witty Pi 4 Firmware Compile Error

2 Posts
2 Users
0 Likes
18 Views
(@bobshort)
Posts: 2
Active Member
Topic starter
 

I need to customize the Witty Pi 4 firmware. I'm attempting to compile/upload the existing firmware before making any changes but it won't compile using the Arduino IDE. I'm using the following versions:

 

Arduino IDE: 2.3.6

ATTinyCore: 1.5.2

Witty Firmware: V7 (latest from git repo. no modifications)

 

When I click "Sketch -> Verify/Compile" I get the following error message:

 

/Users/myuser/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld: /Users/myuser/Library/Caches/arduino/sketches/F971072DC22B707AA6C3A9C2FB59C48C/WittyPi4.ino.elf section `.data' will not fit in region `text'
/Users/myuser/Library/Arduino15/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin/../lib/gcc/avr/7.3.0/../../../../avr/bin/ld: region `text' overflowed by 18 bytes
collect2: error: ld returned 1 exit status
Using library Wire at version 2.0.0 in folder: /Users/myuser/Library/Arduino15/packages/ATTinyCore/hardware/avr/1.5.2/libraries/Wire
Using library EEPROM at version 2.0.0 in folder: /Users/myuser/Library/Arduino15/packages/ATTinyCore/hardware/avr/1.5.2/libraries/EEPROM
exit status 1

Compilation error: exit status 1

 

Attached is a screenshot of the settings I'm using for AtTinyCore. I've double checked them against the documented settings. 

 

Any suggestions? Thanks!

 

 

 

 

 

1745343373-Screenshot-2025-04-22-at-112259AM.png
 
Posted : 22/04/2025 7:36 pm
(@admin)
Posts: 588
Member Admin
 

That error message indicates the compiled firmware has exceeded the maximum program space size (8KB) on ATtiny841. The reason for that is an error in your ATtinyCore settings:

In the line "Clock Source": it should be "8 MHz (internal, Vcc < 4.5V)" instead of "8 MHz (internal, Vcc > 4.5V)".

The ATtiny841 on Witty Pi 4 is powered by 3.3V, so "<4.5V" is the correct one.

As you can see, the current firmware is already very close to the limit of ATtiny841. If you are planning to modify the firmware and add some new features, you will have to remove some old features to keep the firmware below 8KB.

 
Posted : 23/04/2025 6:21 am
Join Waitlist We will inform you when the product arrives in stock. Please leave your valid email address below.