I installed as discribes, path where set.
EndlessCadence said:
Hi Dirk, compiling the code isn't hard at all. I've made some fixes in the makefile for compiling on Windows, those changes are already in the latest master branch of the project.
1. Install SDCC (https://sourceforge.net/projects/sdcc/files/sdcc-win64/3.6.0/). Make sure to add it to your PATH (option in one of the last screens of the installer... )....
.......
4. Double-click Start_Compiling.bat to compile the firmware. The resulting main.ihx can be programmed in the controller.
I did not get anything out, a lot of Error Messages
Warning: Non-connected liverange found and extended to connected component of th
e CFG:iTemp44. Please contact sdcc authors with source code to reproduce.
sdcc -c -IStdPeriphLib/inc -I. -mstm8 -Ddouble=float --std-c99 --nolospre --out
-fmt-ihx --debug -outils.c utils.c
sdcc -IStdPeriphLib/inc -I. -mstm8 -Ddouble=float --std-c99 --nolospre --out-fm
t-ihx --debug main.c StdPeriphLib/src/stm8s_iwdg.rel StdPeriphLib/src/stm8s_itc
.rel StdPeriphLib/src/stm8s_clk.rel StdPeriphLib/src/stm8s_gpio.rel StdPeriphLib
/src/stm8s_uart2.rel StdPeriphLib/src/stm8s_tim1.rel StdPeriphLib/src/stm8s_tim2
.rel StdPeriphLib/src/stm8s_tim3.rel StdPeriphLib/src/stm8s_exti.rel StdPeriphLi
b/src/stm8s_adc1.rel StdPeriphLib/src/stm8s_flash.rel watchdog.rel torque_sensor
.rel uart.rel pwm.rel motor.rel wheel_speed_sensor.rel brake.rel pas.rel adc.rel
timers.rel ebike_app.rel utils.rel
main.c:122: warning 126: unreachable code
Warning: Non-connected liverange found and extended to connected component of th
e CFG:iTemp0. Please contact sdcc authors with source code to reproduce.
Warning: Non-connected liverange found and extended to connected component of th
e CFG:iTemp0. Please contact sdcc authors with source code to reproduce.
?ASlink-Warning-Undefined Global '_eeprom_init_variables' referenced by module '
ebike_app'
?ASlink-Warning-Undefined Global '_eeprom_init' referenced by module 'main'
make: *** [main] Error 1
C:\Temp\TSDZ2\TongSheng_TSDZ2_motor_controller_firmware-master>pause
Drücken Sie eine beliebige Taste . . .
Do I need something more than SDCC ?
Maybe libaries?
Regards
Dirk