chrismiller / TeensyEyes

Based on adafruit/Uncanny_Eyes, M4_Eyes, and mjs513/GC9A01A_t3n
MIT License
20 stars 7 forks source link

`.text.csf' will not fit in region `FLASH' (overflowed by 3072 bytes) collect2.exe: error [.pio\build\eyes\firmware.elf] Error 1 #3

Closed strunx closed 1 week ago

strunx commented 1 week ago

Hi Chris,

I installed

  Visual Studio Code Version: 1.94.2 (user setup)
  Electron: 30.5.1, ElectronBuildId: 10262041, Chromium: 124.0.6367.243, Node.js: 20.16.0, V8: 12.4.254.20-electron.0, 
  OS: Windows_NT x64 10.0.19045

  with C/C++ v1.21.6 in it

then I installed

  3.3.3 release of PlatformIO IDE.

I get your Code for TeensyEyes by making a new project on PlatformIO (without changing anything in your code) and do the build, but the result is that build-error:


  Executing task: C:\Users\user\.platformio\penv\Scripts\platformio.exe run 
  Processing eyes (platform: https://github.com/platformio/platform-teensy.git; board: teensy40; framework: arduino)

 Verbose mode can be enabled via `-v, --verbose` option
  CONFIGURATION: https://docs.platformio.org/page/boards/teensy/teensy40.html
  PLATFORM: Teensy (5.0.0+sha.a14acf2) > Teensy 4.0  
  HARDWARE: IMXRT1062 600MHz, 512KB RAM, 1.94MB Flash
  DEBUG: Current (jlink) External (jlink)
  PACKAGES:
   - framework-arduinoteensy @ 1.159.0 (1.59)        
   - tool-teensy @ 1.159.0 (1.59)
   - toolchain-gccarmnoneeabi-teensy @ 1.110301.0 (11.3.1)
  Converting TeensyEyes.ino
  LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
  LDF Modes: Finder ~ chain, Compatibility ~ soft
  Found 97 compatible libraries
  Scanning dependencies...
  Dependency Graph
  |-- Wire @ 1.0.0+sha.e4df3ff
  |-- ST7735_t3 @ 1.0.0+sha.25978c8
  |-- GC9A01A1_t3n @ 0.0.0+sha.11ceeed
  |-- Adafruit BusIO @ 1.16.1
  |-- Adafruit GFX Library @ 1.11.11
  |-- Entropy
  |-- SPI @ 1.0
  Building in release mode
  Compiling .pio\build\eyes\src\TeensyEyes.ino.cpp.o
  Linking .pio\build\eyes\firmware.elf
  c:/users/user/.platformio/packages/toolchain-gccarmnoneeabi-teensy/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-
  abi/bin/ld.exe: .pio\build\eyes\firmware.elf section `.text.csf' will not fit in region `FLASH'
  c:/users/user/.platformio/packages/toolchain-gccarmnoneeabi-teensy/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-
  eabi/bin/ld.exe: region `FLASH' overflowed by 3072 bytes
  collect2.exe: error: ld returned 1 exit status
  *** [.pio\build\eyes\firmware.elf] Error 1

I cannot see what I should have done wrong. Can you please find out exactly what went wrong? I am not an expert in this kind of thing. Can you please help me?

kindly regards

strunx

strunx commented 1 week ago

I found the error: too much eyes for teensy 4.0 You have to comment out one of them in the config.h maybe the problem was the one more new eye
'firebox' added to the code last year.