AnsweredAssumed Answered

Trouble with assembly files in System Work Bench for STM32

Question asked by ragle.wesley on Mar 6, 2017
Latest reply on Mar 23, 2018 by Andrew Neil

Hi folks,

 

I am attempting to generate an archive file with System Work Bench.  All goes well until the make process hits an assembly file.  It then seems that the command line generated by the work bench tries to process the same assembly file twice resulting in a series of redefinition errors.

 

Following is what is output to the console window:

------------------------------------------------

'Building file: ../os_cpu_a.s'

'Invoking: MCU GCC Assembler'

C:\1_1_A_F7_WORKSPACE\UCOS109\Debug

arm-none-eabi-as -mcpu=cortex-m7 -mthumb -mfloat-abi=hard -mfpu=fpv5-sp-d16 -g -o "os_cpu_a.o" "../os_cpu_a.s" "../os_cpu_a.s"

../os_cpu_a.s: Assembler messages:

../os_cpu_a.s:46: Error: symbol `OSCtxSw' is already defined

../os_cpu_a.s:62: Error: symbol `OSIntCtxSw' is already defined

../os_cpu_a.s:78: Error: symbol `SaveStatusReg' is already defined

../os_cpu_a.s:93: Error: symbol `RestoreStatusReg' is already defined

../os_cpu_a.s:107: Error: symbol `OSStartHighRdy' is already defined

../os_cpu_a.s:130: Error: symbol `OSStartHang' is already defined

../os_cpu_a.s:145: Error: symbol `PendSV_Handler' is already defined

../os_cpu_a.s:169: Error: symbol `PendSVHandler_nosave' is already defined

../os_cpu_a.s:153: Error: branch out of range

make: *** [os_cpu_a.o] Error 1

 

---------------------------------------------------

As you can see, "../os_cpu_a.s"  shows up twice in the command line.

 

Any help would be greatly appreciated.

 

Thanks,

 

Wes

Outcomes