Skip to main content
PLEE.2
Associate II
February 9, 2023
Solved

spc5studio makefile modify

  • February 9, 2023
  • 1 reply
  • 1204 views

Hello.

​

i use SPC5Studio tool

i started import samples from application library / Bootloader ...

the project complie is ok.

i modified Makefile.

i know this file automatically generated

but i must modify the compile option

"HEX = $(U_GHS_PATH)gsrec -hex386" to "HEX = $(U_GHS_PATH)gsrec -hex386 -crc32"

​

and then, this compile is ok.

​but. If i generate it again, the additional option disappears (-crc32).

prevent the makefile from being regenerated,

I want to put an option in the place that creates the makefile.

​

thanks

    This topic has been closed for replies.
    Best answer by ODOUV.1

    Hello,

    supposing you are working on SPC58ECxx

    just modify your file:

    C:\SPC5Studio-6.0\eclipse\plugins\com.st.tools.spc5.components.platform.spc58ecxx_rla_1.18.0.20221220104647\component\root_wa\Makefile.ftl

    It will generate your Makefile with your new parameter each time (on ALL your SPC58ECxx projects!!!)

    Best regards.

    1 reply

    ODOUV.1
    ODOUV.1Best answer
    ST Employee
    February 9, 2023

    Hello,

    supposing you are working on SPC58ECxx

    just modify your file:

    C:\SPC5Studio-6.0\eclipse\plugins\com.st.tools.spc5.components.platform.spc58ecxx_rla_1.18.0.20221220104647\component\root_wa\Makefile.ftl

    It will generate your Makefile with your new parameter each time (on ALL your SPC58ECxx projects!!!)

    Best regards.