emmebrusa / TSDZ2-Smart-EBike-1

TSDZ2 Open Source Firmware adapted to VLCD5-VLCD6-XH18 displays
GNU General Public License v3.0
131 stars 35 forks source link

Error 1, Build error #86

Open xDudox opened 7 months ago

xDudox commented 7 months ago

Could someone help me what is wrong? 1231234

dzid26 commented 7 months ago

Is this the latest version of the TSDZ2-Smart-EBike-1 ? Which version of sdcc have you installed? Can you type in the terminal: sdcc --version

The compilation should look like this: image

Build started...
mkdir -p ../../bin
sdcc --verbose -c -I../common/STM8S_StdPeriph_Lib/inc -I../common -mstm8 -DSTM8S105 -Ddouble=float --std-c99 --nolospre --opt-code-speed --peep-asm --peep-file peep.txt --out-fmt-ihx --debug  -o../../bin/ ../common/STM8S_StdPeriph_Lib/src/stm8s_iwdg.c
sdcc: Calling preprocessor...
sdcc: sdcpp.exe -nostdinc -Wall -std=c99 -I"../common/STM8S_StdPeriph_Lib/inc" -I"../common" -D"STM8S105" -D"double=float" --obj-ext=.rel -D__SDCC_STACK_AUTO -D__SDCC_CHAR_UNSIGNED -D__SDCC_MODEL_MEDIUM -D__SDCC_OPTIMIZE_SPEED -D__SDCC_INT_LONG_REENT -D__SDCC_FLOAT_REENT -D__SDCCCALL=1 -D__SDCC=4_3_2 -D__SDCC_VERSION_MAJOR=4 -D__SDCC_VERSION_MINOR=3 -D__SDCC_VERSION_PATCH=2 -D__SDCC_REVISION=14254 -D__SDCC_stm8 -D__STDC_NO_COMPLEX__=1 -D__STDC_NO_THREADS__=1 -D__STDC_NO_ATOMICS__=1 -D__STDC_NO_VLA__=1 -D__STDC_ISO_10646__=201409L -D__SIZEOF_FLOAT__=4 -D__SIZEOF_DOUBLE__=4 -D__SDCC_BITINT_MAXWIDTH=64 -isystem "C:\Program Files\SDCC\bin\..\include\stm8" -isystem "C:\Program Files\SDCC\bin\..\include"  -xc "../common/STM8S_StdPeriph_Lib/src/stm8s_iwdg.c"
sdcc: Generating code...
sdcc: Calling assembler...
sdcc: sdasstm8.exe -plosgffwy ""../../bin\stm8s_iwdg".asm"
sdcc --verbose -c -I../common/STM8S_StdPeriph_Lib/inc -I../common -mstm8 -DSTM8S105 -Ddouble=float --std-c99 --nolospre --opt-code-speed --peep-asm --peep-file peep.txt --out-fmt-ihx --debug  -o../../bin/ ../common/STM8S_StdPeriph_Lib/src/stm8s_itc.c
sdcc: Calling preprocessor...
etc

In your case, I believe SDCC is somehow calling C:\Program Files\SDCC\bin\sdasstm8.exe without quotation marks.

xDudox commented 7 months ago

Thanks for your help, your suggestion about SDCC helped me. I installed SDCC directly to Drive C:.