Thanks
@stancecoke . I tried using the bat file, but it throws a bunch of errors after compiling.
(Just to clarify - I talk about the fork from 'consp' - compiling your version works w/o issues)
-> I guess I stay with the 'Torque from X4' Version in your github for my BlusOsec setup.
(I was curious about this new Fork, because 'Power based Control' does not work in the X4 Version and I was hoping that that was fixed in consp's fork)
I got rid of the errors from the compiling bat file from consp's Fork:
It looks like that in Start_Compiling.bat the path for STMicroelectronics\st_toolset and SDDC is differently defined compared to your fork / compared to the initial recommendations where to install these programs
(see BMSBattery_S_controllers_firmware-master\scripts\Start_Compiling.bat)
This is the path in consp's fork:
Code:
PATH = %PATH%;C:\Program Files\STMicroelectronics\st_toolset\stvp;C:\Program Files (x86)\STMicroelectronics\st_toolset\stvp;C:\SDCC\usr\local\bin
and this is the adjusted one (for installation paths as originally recommended as per your fork) :
Code:
PATH = %PATH%;C:\STMicroelectronics\st_toolset\stvp;C:\Program Files\SDCC\usr\local\bin
(I am not home for some weeks, so I can not test this with actually programming a controller, but the errors are gone and the output looks reasonable to me)
Hope this helps others as well who want to try consp's Fork:
OSEC Open Source E-Bike Controller in a Windows toolchain for a STM8 - consp/BMSBattery_S_controllers_firmware
github.com
.... However - the one thing I wanted to try this for is switching on "Power based control" (instead of std. Current based control).
But it turns out that that setting is not visible in the config.h
It seems to be hidden somewhere in (one of) these settings:
#define ACA 13440
#define EEPROM_INIT_MAGIC_BYTE 155
#define ACA_EXPERIMENTAL 128
Oh well. -> I will stay with stancecoke X4 branch. (Never change a running system......)