Thanks for your help It worked.
Here is my Processor settings:
-Float ABI = softfp(I was trying with hard option because stm32f303 has got hard-FPU unit. I dont figure out yet why this option isn’t working.)
-FPU Type = fpv4-sp-d16
-Instruction set = thumb
So after that correction I have worked simple led blink example with using C++.
Anyone can take a look my source code from bitbucket(https://bitbucket.org/Namcho/freertos
gccstm32f3/src). The led blink example written in Demo.cpp class file.
Then I have tryed to do same think for FreeRTOS but I failed.
Source code: https://bitbucket.org/Namcho/freertos
gccstm32f3/src/404ab212c4acb806a6b18037739adf0f7668cdb9/src/main.cpp?at=develop
Here is compiler output:
~~~~~~
10:42:55 **** Incremental Build of configuration Release for project freeRtos
gccstm32f3 ****
make all
Building target: freeRtos
gccstm32f3.elf
Invoking: Cross ARM C++ Linker
arm-none-eabi-g++ -mcpu=cortex-m4 -mthumb -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -Wall -Wextra -g -T mem.ld -T libs.ld -T sections.ld -nostartfiles -Xlinker –gc-sections -L”../ldscripts” -Wl,-Map,”freeRtos
gccstm32f3.map” –specs=nano.specs -o “freeRtos
gccstm32f3.elf” ./system/src/stm32f3-stdperiph/stm32f30x
gpio.o ./system/src/stm32f3-stdperiph/stm32f30xrcc.o ./system/src/newlib/
cxx.o ./system/src/newlib/exit.o ./system/src/newlib/
sbrk.o ./system/src/newlib/startup.o ./system/src/newlib/
syscalls.o ./system/src/newlib/assert.o ./system/src/freeRTOS/croutine.o ./system/src/freeRTOS/eventgroups.o ./system/src/freeRTOS/heap
4.o ./system/src/freeRTOS/list.o ./system/src/freeRTOS/port.o ./system/src/freeRTOS/queue.o ./system/src/freeRTOS/tasks.o ./system/src/freeRTOS/timers.o ./system/src/diag/Trace.o ./system/src/diag/traceimpl.o ./system/src/cortexm/
initializehardware.o ./system/src/cortexm/
resethardware.o ./system/src/cortexm/exception
handlers.o ./system/src/cmsis/systemstm32f30x.o ./system/src/cmsis/vectors
stm32f30x.o ./src/Demo.o ./src/TaskOOP.o ./src/write.o ./src/main.o
c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: freeRtos
gccstm32f3.elf section
.bss' will not fit in region
RAM’
c:/program files (x86)/gnu tools arm embedded/4.9 2015q1/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: region `RAM’ overflowed by 36520 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [freeRtos
gccstm32f3.elf] Error 1
makefile:63: recipe for target ‘freeRtos
gccstm32f3.elf’ failed
10:42:58 Build Finished (took 2s.403ms)
~~~~~~
When I make comment
ledObj.create(“LED1”,configMINIMALSTACKSIZE,1); that line, the code is compiled without any errors.