cancel
Showing results for 
Search instead for 
Did you mean: 

SPC5Studio 4.1.0 compilation errors from generated code

sebastian239955
Associate II
Posted on April 27, 2016 at 09:34

When I use SPC5Studio 4.1.0 to generate files for a project that worked with 4.0.0 and try to compile with gcc, I get the following error

scc1.exe: error: bad value (e200z0) for -mcpuIf I replace the line in the Makefile

MCU  = e200z0 -meabi -msdata=none -mregnameswith the previous code from 4.0.0

MCU  = e200zx -meabi -msdata=none -mnew-mnemonics -mregnamesit works again.

Likewise, in the file checkCompiler.h I have to add the line 

&sharpdefine se_bge   bgeoutside of the &sharpif defined(__hightec_asm), otherwise I get this error:

./components/spc560bcxx_platform_component_rla/lib/src/boot.s:163: Error: Unrecognized opcode: `se_bge'

#spc5studio
12 REPLIES 12
Erwan YVIN
ST Employee
Posted on April 27, 2016 at 18:03

Hello Sebastian ,

Good to know  ;-)

it is a regression , we will generate a SPC5Studio 4.1.1 to revert our version of gnutools.

the new one was based on zimsis (cf http://sourceforge.net/projects/mingw.)

   Best regards

                     Erwan

sebastian239955
Associate II
Posted on April 27, 2016 at 18:10

Hello Erwan,

Regarding possible fixes for 4.1.1, I have another minor suggestion:

Can you include components.c and components.h in the patch system?

We had to rename the clockInit function due to a naming collision and currently have to change the code there manually after each regeneration.

Best regards,

Sebastian

Erwan YVIN
ST Employee
Posted on May 02, 2016 at 16:30

Hello Sebastian ,

the Gnu Tools issue should be corrected in Spc5studio 4.1.1

for components.* , it is not possible... it is generated file from a freemarker file.

you can create usercomponents.* in src directory 

and hook these functions in your project by your own componentInit()

  best regards

                  Erwan