I've followed this thread since it started and now that my TSDZ2 is with Parcel Force as I write, I've been looking to understand the motor configuration/programming side more.
STEP 1 - I am going to stick with one of the stock displays (VLCD6) for the moment, only venturing on to one of the other possibilities once I've experienced the kit in it's 'as supplied' form for a while.
STEP 2 - have a play around with the Java based configuration tool to see how much I can change and improve the stock configuration
STEP 3 - if curiosity gets the better of me, I'll maybe move on to a more comprehensive display and toy with the Open Source Firmware that is out there.
As a precursor to the above, I set about installing the necessary software in my Windows 10 laptop as per the instructions given in this link
here and as provided by the OP (
@Swizz ).
It didn't all go to plan as I'll explain in case others have had a similar experience - I'm no computer boffin and so the measure I've taken to resolve the issues I found, may not be the best, but here goes:
The info in the link says
Para (1) - yup, straight forward - box ticked
Para (2) - installed SDCC ok but I didn't get presented with any choices about 'full version' etc., I just downloaded and installed what was at the linked site.
Para (3) - installing ST Visual Development - this is where the fun began in that the above instructions say to install in the root directory C:\ - If I did this, then the installation always failed, so I let Windows install the program where it thought best, i.e. C:\Progam Files (x86). So far so good but see later, as all wasn't quite well.
Para (4) - Github is a new thing to me so I'm easily confused. The link took me to a configurator version v20.1C.3 the latest version at the time of writing and SUSPENDED. So I faffed around and found the previous configurator version v20.1C.1
here.
OK - time to start up the configurator as in Para (5) above - yup, all well so far. For the hell of it I decided to hit the 'Compile and Flash' button to see what would happen (bearing in mind that I don't have the TSDZ2 motor yet.) Well the compiling started but came to an end with the error message saying:
View attachment 44237
Going back to Para (3) above, it says "
Alternatively you can set the correct path in the file _TSDZ2-Smart-EBike/src/controller/compile_and_flash.bat" So I opened the .bat file in a text editor only to find:
View attachment 44238
Now, I'm very rusty on this stuff, but given the error message above, I thought the line STVP_CmdLine should end with .exe to I changed it to
View attachment 44239
and in the Configurator I hit the 'Compile and Flash' button again - this time the program ran correctly until of course it found that I had no programming lead (tool) or motor connected.
View attachment 44240
OK, enough for now - I await delivery of the TSDZ2 and also the ST-Link V2 and speed sensor cable.