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
Problem with __main_stack_size__
Moderators: RoccoMarco, barthess
-
- Posts: 57
- Joined: Thu Mar 13, 2014 11:15 am
- Has thanked: 2 times
- 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__
Hi,
I am unable to reproduce the issue compiling with ChibiStudio, which toolchain are you using?
Giovanni
I am unable to reproduce the issue compiling with ChibiStudio, which toolchain are you using?
Giovanni
-
- Posts: 57
- Joined: Thu Mar 13, 2014 11:15 am
- Has thanked: 2 times
Re: Problem with __main_stack_size__
Hey,
I am using gcc version 4.5.2 (Sourcery G++ Lite 2011.03-42).
Thank you for your time.
Franek
I am using gcc version 4.5.2 (Sourcery G++ Lite 2011.03-42).
Thank you for your time.
Franek
- 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__
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
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
-
- Posts: 57
- Joined: Thu Mar 13, 2014 11:15 am
- Has thanked: 2 times
Re: Problem with __main_stack_size__
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
Anyway thank you very much for you help.
Best regards,
Franek
- 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__
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
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
Who is online
Users browsing this forum: No registered users and 57 guests