I have got a question. I tried to change the main_stack_size and the process_stack_size in my chibios project (with ugfx library) from 0x0400 to 0x0F00 to increase the main and the process stack size, because i have a overflow anywhere in my project.
I changed the STM32F407xG.ld (main_stack_size = 0x0F00, process_stack_size = 0x0F00) and my make file (also the main_stack_size and process_stack_size):
Code: Select all
#Makefile for UGFX Embest-STM32-DMSTF4BB
# Einstellungen
# Unter $(GFXLIB)/tools/gmake_scripts/readme.txt Liste der Variablen
OPT_OS = chibios
OPT_THUMB = yes
OPT_LINK_OPTIMIZE = no
OPT_CPU = stm32m4
# uGFX Einstellungen
# Unter $(GFXLIB)/tools/gmake_scripts/library_ugfx.mk Liste der Variablen
GFXLIB = ../../ugfx
GFXBOARD = Embest-STM32-DMSTF4BB
GFXDEMO = modules/gdisp/basics
# ChibiOS Einstellungen
ifeq ($(OPT_OS),chibios)
# Unter $(GFXLIB)/tools/gmake_scripts/os_chibios_x.mk Liste der Variablen
CHIBIOS = ../../chibios26
CHIBIOS_VERSION = 2
CHIBIOS_BOARD =
CHIBIOS_PLATFORM = STM32F4xx
CHIBIOS_PORT = GCC/ARMCMx/STM32F4xx
CHIBIOS_LDSCRIPT = STM32F407xG.ld
endif
##############################################################################################
# Weiteres für's Projekt
#
ARCH = arm-none-eabi-
SRCFLAGS = -ggdb -O0
CFLAGS =
CXXFLAGS = -fno-rtti
ASFLAGS =
LDFLAGS = -Wl,--defsym=__process_stack_size__=0x0F00 -Wl,--defsym=__main_stack_size__=0x0F00
SRC =
OBJS =
DEFS =
LIBS =
INCPATH =
LIBPATH =
LDSCRIPT =
#------------------------------------------------------------------------------
# Includes immer am Ende einbinden
#
include $(GFXLIB)/tools/gmake_scripts/library_ugfx.mk
include $(GFXLIB)/tools/gmake_scripts/os_$(OPT_OS).mk
include $(GFXLIB)/tools/gmake_scripts/compiler_gcc.mk
# *** Ende ***
But when I compile everything the linker Options look like this:
Code: Select all
Linker Options........
arm-none-eabi-gcc -Wl,--defsym=__process_stack_size__=0x0F00 -Wl,--defsym=__main_stack_size__=0x0F00 -Wl,--defsym=__process_stack_size__=0x400 -Wl,--defsym=__main_stack_size__=0x400 -mcpu=cortex-m4 -falign-functions=16 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -nostartfiles -mthumb -T../../chibios26/os/ports/GCC/ARMCMx/STM32F4xx/ld/STM32F407xG.ld -lm .build/obj/fakethumbfile.o -o .build/PowerSupply.elf
.
There you can see that the process and main stack size is declerated two times (one with 0x0400 and one with 0xF00). Does anyone whats the reason for that? Do I have to change anything else?
I would be very happy if anyone could help me with this problem
Thank you in advance