Problem with __main_stack_size__

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

Moderators: RoccoMarco, barthess

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

Problem with __main_stack_size__

Postby franek.bmw » Mon Feb 13, 2017 12:43 pm

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: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Problem with __main_stack_size__

Postby Giovanni » Mon Feb 13, 2017 4:54 pm

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__

Postby franek.bmw » Tue Feb 14, 2017 6:25 am

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: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Problem with __main_stack_size__

Postby Giovanni » Tue Feb 14, 2017 7:13 am

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__

Postby franek.bmw » Tue Feb 14, 2017 7:52 am

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: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: Problem with __main_stack_size__

Postby Giovanni » Tue Feb 14, 2017 9:51 am

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


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 57 guests