Problem with __main_stack_size__

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
franek.bmw
Posts: 57
Joined: Thu Mar 13, 2014 11:15 am
Has thanked: 2 times

Problem with __main_stack_size__

Post 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
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Problem with __main_stack_size__

Post by Giovanni »

Hi,

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

Giovanni
franek.bmw
Posts: 57
Joined: Thu Mar 13, 2014 11:15 am
Has thanked: 2 times

Re: Problem with __main_stack_size__

Post by franek.bmw »

Hey,

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

Thank you for your time.
Franek
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Problem with __main_stack_size__

Post 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
franek.bmw
Posts: 57
Joined: Thu Mar 13, 2014 11:15 am
Has thanked: 2 times

Re: Problem with __main_stack_size__

Post 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
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: Problem with __main_stack_size__

Post 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
Post Reply