AnsweredAssumed Answered

STM32 Nucleo 103RB GNU enviroment problem

Question asked by Lukasz Przenioslo on Mar 12, 2014
Latest reply on Apr 28, 2014 by Lukasz Przenioslo
Hello there,
Recently I have bought a stm32 Nucleo 103RB board. Now i am trying to create a sample project for mysalfe using SlickEdit enviroment with code sourcery arm-none-eabi-gcc compiller. I am using the sample libraries and temple files downloaded from ST site for this certain board. 

I had some trouble with it, but got it sorted out. What is stopping me now is this error that i dont really understand. I have all the files included to the project patch and even though that i cant compile the code. I would really aprichiate any help on this topic, this is really important to me to make this code running.

I have used the _md.s startup file for this project and it is set to be linked as first.

Here is the compiller message that i dont get:
A:\Dropbox\programowanie\slickedit\stm32nuc>A: & cd A:\Dropbox\programowanie\slickedit\stm32nuc

A:\Dropbox\programowanie\slickedit\stm32nuc>echo VSLICKERRORPATH="A:\Dropbox\programowanie\slickedit\stm32nuc"
VSLICKERRORPATH="A:\Dropbox\programowanie\slickedit\stm32nuc"

A:\Dropbox\programowanie\slickedit\stm32nuc>"C:\Program Files\SlickEditV18.0.1 x64\win\vsbuild" -signal 50930 -command make -f "makefile" rebuild CFG=Debug
VSLICKERRORPATH="A:\Dropbox\programowanie\slickedit\stm32nuc"
make -f makefile rebuild CFG=Debug
rm -f Debug/stm32nuc.exe
rm -f Debug/main.o Debug/startup_stm32f10x_md.o Debug/stm32f1xx_it.o Debug/system_stm32f10x.o 
arm-none-eabi-gcc -c  -ansi "-DSTM32F10X_LD" -g -c -mthumb -mcpu=cortex-m3 -mfix-cortex-m3-ldrd -o "Debug/main.o" -IA:/Dropbox/programowanie/slickedit/stm32nuc/ -IA:/Dropbox/programowanie/slickedit/stm32nuc/inc -IA:/Dropbox/programowanie/slickedit/stm32nuc/Include -IA:/Dropbox/programowanie/slickedit/stm32nuc/src -IA:/Dropbox/programowanie/slickedit/stm32nuc/stm32f1xx  main.c
In file included from A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:136:0,
                 from A:/Dropbox/programowanie/slickedit/stm32nuc/Include/stm32f10x.h:488,
                 from A:/Dropbox/programowanie/slickedit/stm32nuc/stm32f1xx/stm32f1xx_nucleo.h:38,
                 from main.h:33,
                 from main.c:29:
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:325:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:336:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:347:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:357:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:369:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:380:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:391:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:404:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:404:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__REV'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:424:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:424:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__REV16'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:440:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:440:60: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__REVSH'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:461:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:461:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__ROR'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:487:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:487:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__RBIT'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:503:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:503:60: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__LDREXB'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:526:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:526:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__LDREXH'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:549:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:549:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__LDREXW'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:567:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:567:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__STREXB'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:585:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:585:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__STREXH'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:603:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:603:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__STREXW'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:617:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:662:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmInstr.h:662:60: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__CLZ'
In file included from A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:137:0,
                 from A:/Dropbox/programowanie/slickedit/stm32nuc/Include/stm32f10x.h:488,
                 from A:/Dropbox/programowanie/slickedit/stm32nuc/stm32f1xx/stm32f1xx_nucleo.h:38,
                 from main.h:33,
                 from main.c:29:
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:329:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:340:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:352:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:352:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__get_CONTROL'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:367:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:379:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:379:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__get_IPSR'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:394:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:394:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__get_APSR'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:409:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:409:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__get_xPSR'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:424:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:424:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__get_PSP'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:439:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:451:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:451:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__get_MSP'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:466:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:478:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:478:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__get_PRIMASK'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:493:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:506:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:517:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:529:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:529:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__get_BASEPRI'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:544:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:556:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:556:61: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__get_FAULTMASK'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cmFunc.h:571:52: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
In file included from A:/Dropbox/programowanie/slickedit/stm32nuc/Include/stm32f10x.h:488:0,
                 from A:/Dropbox/programowanie/slickedit/stm32nuc/stm32f1xx/stm32f1xx_nucleo.h:38,
                 from main.h:33,
                 from main.c:29:
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1291:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1311:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1311:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NVIC_GetPriorityGrouping'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1323:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1335:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1351:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1351:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NVIC_GetPendingIRQ'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1363:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1375:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1390:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1390:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NVIC_GetActive'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1405:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1425:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1425:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NVIC_GetPriority'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1447:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1447:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'NVIC_EncodePriority'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1475:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1493:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1532:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1532:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'SysTick_Config'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1572:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1572:26: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ITM_SendChar'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1591:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1591:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ITM_ReceiveChar'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1610:1: error: unknown type name 'inline'
A:/Dropbox/programowanie/slickedit/stm32nuc/Include/core_cm3.h:1610:25: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ITM_CheckChar'
make.EXE: *** [Debug/main.o] Error 1
If any additional information are needed I will provide them of course.

Outcomes