buildbotics / bbctrl-firmware

Buildbotics CNC Controller Firmware
https://buildbotics.com/
Other
67 stars 24 forks source link

Issue building on Debian 10.10 VM #304

Open DJKalian opened 2 years ago

DJKalian commented 2 years ago

When I go through the setup instructions on the development page, I get to the "make pkg" without issue, but when I run "make pkg" it errors out with

/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: address 0x803820 of bbctrl-pwr-firmware.elf section `.data' is not within region `data'
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: address 0x80388a of bbctrl-pwr-firmware.elf section `.bss' is not within region `data'
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: address 0x803820 of bbctrl-pwr-firmware.elf section `.data' is not within region `data'
/usr/lib/gcc/avr/5.4.0/../../../avr/bin/ld: address 0x80388a of bbctrl-pwr-firmware.elf section `.bss' is not within region `data'
collect2: error: ld returned 1 exit status

It occurs when the script runs "make -C src/pwr2"

I'm very limited in my knowledge of building packages. I am assuming that the "memory space" available for the bbctrl-pwr-firmware.elf on the ATTiny3216 is too small? But i don't know how to fix this error or why I am getting it. Can someone point me in the right direction?

Kris

txdy077345 commented 1 year ago

I have the same problem as you now, I got the same error as you when compiling with Raspberry4B, do you know how to solve this problem?