2024-04-16 07:46 PM
Hi,
I'm trying to build SPC5 application in VS Studio Code on an agent environment (Windows), which does not have any installed SPC5Studio with Autodevkit plugin. The intention is to start a pipeline on AzureDevOps, where the project can be compiled and build on the agent environment.
While executing the command make -j8 all, I'm getting following error:
I ran this on VS Code with msys64 installed on windows pc.
@Erwan YVIN can you support me on this?
Solved! Go to Solution.
2024-04-18 07:18 AM
Hello ,
The compiler is in an eclipse plugin
Example
c:\SPC5Studio-6.0\eclipse\plugins\com.st.tools.spc5.tools.gnu.gcc.ppcvle.win32_4.9.4.20200908161514\
Autodevkit has the same
you can take it.
we have a linux version too
Best Regards
Erwan
2024-04-18 07:18 AM
Hello ,
The compiler is in an eclipse plugin
Example
c:\SPC5Studio-6.0\eclipse\plugins\com.st.tools.spc5.tools.gnu.gcc.ppcvle.win32_4.9.4.20200908161514\
Autodevkit has the same
you can take it.
we have a linux version too
Best Regards
Erwan
2024-04-19 02:23 AM
@Erwan YVIN thanks for the help, by adding eclipse plugin to the path, at least the issue has been solved. But compiling further results in the following error, where build/out.elf is not generated. I tried check the path and even tried to give access to the dir to create files, but no luck. Could you or anyone in community help on this issue or anyone had any idea/hint?
Output:
Compiling components.c
ppc-freevle-eabi-gcc -c -mcpu=e200z4 -mvle -meabi -msdata=none -mregnames -O2 -gdwarf-2 -fomit-frame-pointer -falign-functions=16 -fno-gcse -std=gnu99 -ffunction-sections -fdata-sections -fno-common -Wall -Wextra -Wstrict-prototypes -Wa,-alms=build/lst/components.lst -DPPC_USE_VLE=1 -MD -MP -MF .dep/components.o.d -I. -I./components/spc584bxx_platform_component_rla/lib/include -I./components/spc584bxx_low_level_drivers_component_rla/lib/include -I./components/spc5_runtime_io_component_rla/lib/include -I./components/spc584bxx_board_initialization_component_rla/lib/include -I./components/spc584bxx_clock_component_rla/lib/include -I./components/spc584bxx_irq_component_rla/lib/include -I./components/spc584bxx_osal_component_rla/lib/include -I./components/spc584bxx_platform_component_rla/cfg -I./components/spc584bxx_low_level_drivers_component_rla/cfg -I./components/spc5_runtime_io_component_rla/cfg -I./components/spc584bxx_board_initialization_component_rla/cfg -I./components/spc584bxx_clock_component_rla/cfg -I./components/spc584bxx_irq_component_rla/cfg -I./components/spc584bxx_osal_component_rla/cfg -I./source/ -I./source/dc_motor/ -I./components ./components/components.c -o build/obj/components.o
Linking build/out.elf
ppc-freevle-eabi-gcc build/obj/boot.o build/obj/crt0.o build/obj/vectors.o build/obj/ivor.o build/obj/cache.o build/obj/spc5_lld.o build/obj/spc5_edma.o build/obj/can_lld.o build/obj/serial_lld.o build/obj/pit_lld.o build/obj/spc5_linflex.o build/obj/spc5_emios.o build/obj/pwm_lld.o build/obj/close.o build/obj/fstat.o build/obj/isatty.o build/obj/lseek.o build/obj/open.o build/obj/read.o build/obj/sbrk.o build/obj/spc5_io.o build/obj/write.o build/obj/pal.o build/obj/clock.o build/obj/irq.o build/obj/eirq.o build/obj/swirq.o build/obj/osal.o build/obj/systimer.o build/obj/serial_lld_cfg.o build/obj/can_lld_cfg.o build/obj/pit_lld_cfg.o build/obj/pwm_lld_cfg.o build/obj/spc5_io_cfg.o build/obj/board.o build/obj/irq_cfg.o build/obj/eirq_cfg.o build/obj/swirq_cfg.o build/obj/main.o build/obj/dc_motor.o build/obj/components.o -mcpu=e200z4 -mvle -meabi -msdata=none -mregnames -O2 -gdwarf-2 -fomit-frame-pointer -falign-functions=16 -fno-gcse -std=gnu99 -ffunction-sections -fdata-sections -fno-common -nostartfiles -Wl,-Map=build/out.map,--cref,--no-warn-mismatch,--library-path=,--gc-sections,-lm,-lc,-z,max-page-size=16384,--script=application.ld -o build/out.elf
Creating build/out.hex
ppc-freevle-eabi-objcopy -O ihex build/out.elf build/out.hex
Creating build/out.mot
ppc-freevle-eabi-objcopy -O srec build/out.elf build/out.mot
Creating build/out.bin
ppc-freevle-eabi-objcopy -O binary build/out.elf build/out.bin
C:\AutoDevKitStudio-2.2.1\eclipse\plugins\com.st.tools.spc5.tools.gnu.gcc.ppcvle.win32_4.9.4.20200908161514\toolchain\bin\ppc-freevle-eabi-objcopy.exe: 'build/out.elf': No such file
Cmake: *** [components/spc584bxx_platform_component_rla/lib/rsc/rules.mk:168: build/out.hex] Error 1
make: *** Waiting for unfinished jobs....
:\AutoDevKitStudio-2.2.1\eclipse\plugins\com.st.tools.spc5.tools.gnu.gcc.ppcvle.win32_4.9.4.20200908161514\toolchain\bin\ppc-freevle-eabi-objcopy.exe: 'build/out.elf': No such file
make: *** [components/spc584bxx_platform_component_rla/lib/rsc/rules.mk:172: build/out.mot] Error 1
Creating build/out.dmp
ppc-freevle-eabi-objdump -x --syms build/out.elf > build/out.dmp
C:\AutoDevKitStudio-2.2.1\eclipse\plugins\com.st.tools.spc5.tools.gnu.gcc.ppcvle.win32_4.9.4.20200908161514\toolchain\bin\ppc-freevle-eabi-objcopy.exe: 'build/out.elf': No such file
make: *** [components/spc584bxx_platform_component_rla/lib/rsc/rules.mk:176: build/out.bin] Error 1
C:\AutoDevKitStudio-2.2.1\eclipse\plugins\com.st.tools.spc5.tools.gnu.gcc.ppcvle.win32_4.9.4.20200908161514\toolchain\bin\ppc-freevle-eabi-objdump.exe: 'build/out.elf': No such file
make: *** [components/spc584bxx_platform_component_rla/lib/rsc/rules.mk:180: build/out.dmp] Error 1
2024-04-24 12:47 AM - edited 2024-04-24 12:54 AM
Hello ,
which shell (gnu tools) do you use ?
Which version of make do you use ?
i recommend to use git bash or put the gnu tools in your Path (make and so on..)
com.st.tools.spc5.tools.gnu.win32_1.0.0.20210215093711.jar (you can unzip it)
On VsCode , it is very important to create a clean environment ..
(shell , make , compiler ..)
Best regards
Erwan
2024-04-29 12:27 AM
@Erwan YVIN , where do i find the plugins for Linux version?