Page 1 of 1

Problem with __main_stack_size__

Posted: Mon Feb 13, 2017 12:43 pm
by franek.bmw
Hello,

I just downloaded Chibios 16.1.7 and I try to compile some demo examples. For example "RT-STM32F746G-DISCOVERY". I invoke "make" command inside of project directory and I get this error:
Linking build/ch.elf
ChibiOS/os/common/ports/ARMCMx/compilers/GCC/ld/STM32F746xG.ld:1: undefined symbol `__main_stack_size__' referenced in expression
collect2: ld returned 1 exit status
make: *** [build/ch.elf] Błąd 1

Could anyone help me?
I don't know what to do with that issue.

Franek

Re: Problem with __main_stack_size__

Posted: Mon Feb 13, 2017 4:54 pm
by Giovanni
Hi,

I am unable to reproduce the issue compiling with ChibiStudio, which toolchain are you using?

Giovanni

Re: Problem with __main_stack_size__

Posted: Tue Feb 14, 2017 6:25 am
by franek.bmw
Hey,

I am using gcc version 4.5.2 (Sourcery G++ Lite 2011.03-42).

Thank you for your time.
Franek

Re: Problem with __main_stack_size__

Posted: Tue Feb 14, 2017 7:13 am
by Giovanni
Hi,

I haven't tested that compiler in ages, please try with this one: https://launchpad.net/gcc-arm-embedded

It is the most supported nowadays.

Giovanni

Re: Problem with __main_stack_size__

Posted: Tue Feb 14, 2017 7:52 am
by franek.bmw
With toolchain that you told all working properly. It's strange because I use my old toolchain to compile projects based on ChibiOS 2.6.7 and it works.
Anyway thank you very much for you help.

Best regards,
Franek

Re: Problem with __main_stack_size__

Posted: Tue Feb 14, 2017 9:51 am
by Giovanni
Hi,

We used to use CodeSourcery too but it is no more updated frequently and that other compiler is maintained by ARM people so the choice is obvious.

Giovanni