electro-smith / DaisyExamples

Examples for the Daisy Platform
https://github.com/electro-smith/DaisyWiki/wiki
MIT License
381 stars 193 forks source link

Building field/Nimbus example crashes - overflows FLASH region #254

Closed znmeb closed 2 years ago

znmeb commented 2 years ago

I commented out the error exit in ci/build_examples.py so I could see if there were any other examples that crashed. field/Nimbus and patch/Nimbus are the only ones. The whole log file is attached.

Building: field/Nimbus
Memory region         Used Size  Region Size  %age Used
           FLASH:      133416 B       128 KB    101.79%
         DTCMRAM:          0 GB       128 KB      0.00%
            SRAM:      290004 B       512 KB     55.31%
          RAM_D2:       17232 B       288 KB      5.84%
          RAM_D3:          0 GB        64 KB      0.00%
         ITCMRAM:          0 GB        64 KB      0.00%
           SDRAM:          0 GB        64 MB      0.00%
       QSPIFLASH:          0 GB         8 MB      0.00/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: build/Nimbus.elf section `.text' will not fit in region `FLASH'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: region `FLASH' overflowed by 2344 bytes
collect2: error: ld returned 1 exit status
%
make: *** [../../libDaisy/core/Makefile:241: build/Nimbus.elf] Error 1
Building: field/sampler

rebuild_all.txt

znmeb commented 2 years ago

Closing - this was a messed up ARM toolchain install. It was using the WSL compiler :-(