Open dgeorge83616 opened 3 years ago
I'm just trying to reproduce this but I'm not sure how this would possibly fit into flash? :astonished:
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: cubepilot_cubeorange_default.elf section `.text' will not fit in region `FLASH'
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: region `FLASH' overflowed by 938840 bytes
Describe the bug Debug serial console at boot:
To Reproduce See below.
Expected behavior Normal boot.
Log Files and Screenshots
See slack thread here. @dagar suggested enabling stack checking to help diagnose, but first, tried updated master as discussed here.
Decided to verify stack checking would work on master, without any changes, other than enabling the checking and discovered the above.
Drone (please complete the following information):
Additional context What follows are captures from tmux log leading to discovering the fault.
After attempting to merge #16444 into master branch, and failing to cleanly resolve conflicts, I decided to just enable stack checking on the master branch.
distclean
the workspace.snipped out the build log.
All good, so far. Now enable stack checking. Used
make menuconfig
to enable[*] Check for stack overflow on each function call
.Rebuild
Phew! Just fits into FLASH.
Verify stack check is the only difference from
boards/cubepilot/cubeorange/nuttx/console/defconfig
What's with the
CONFIG_TTY_SIGINT_CHAR=0x03
difference? Not sure why butsavedefconfig
cut it, even though it remained in.config
.Longer listing of workspace log for double checking: