Skip to main content
sebastian239955
Associate
April 27, 2016
Question

SPC5Studio 4.1.0 compilation errors from generated code

  • April 27, 2016
  • 12 replies
  • 2911 views
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
    This topic has been closed for replies.

    12 replies

    sebastian239955
    Associate
    April 27, 2016
    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
    May 2, 2016
    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