My Cargo bike build.

guerney

Esteemed Pedelecer
Sep 7, 2021
11,209
3,178
No change, the jar doesn't even open with x2 L click or single R click. Just the a black box that shuts immiedately.
It won't shut down immediately if you use the command line -you'll see what the error message actually is.
 
Last edited:

guerney

Esteemed Pedelecer
Sep 7, 2021
11,209
3,178
The command:

cd C:TSDZ2-Smart-EBike-1-20.1C

...puts you into the "dist" directory, as stated in the ReadmeJava.txt file.

Then hit enter. Then type:

java -jar "JavaConfigurator.jar"

Then hit enter.
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,209
3,178
At this point, we have no idea what the configurator is complaining about!
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,209
3,178
Well, it's all a wonderful opportunity to learn more about computers (than you previously wanted or needed to).
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,209
3,178
Your vesrion of the bat file doesn't have that line to correct, Bike4Two had a different version of bat file



Yours is calling on another compile_and_flash.bat file, which is in the folder called "controller"
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,209
3,178
PATH = %PATH%;C:\STMicroelectronics\st_toolset\stvp;"C:\Program Files (x86)\STMicroelectronics\st_toolset\stvp"

so it's set paths to two directories, just in case.
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,209
3,178
So you can do the same as Bike4Two:

 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,209
3,178
Edit:

compile_and_flash.bat

file in the folder called "controller", hit save and start the configurator.
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,209
3,178
Basically the programmer has linked one .bat file to another, that's all - batch files can often be linked together like that to run multiple groups of commands.
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,209
3,178
You'll never find me if anything goes wrong... ;)
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,209
3,178
Remember to close down the configutaor until you've edited and saved that file. Start it again after editing and saving.
 

soundwave

Esteemed Pedelecer
May 23, 2015
16,720
6,433
i think he has hung himself with the usb cable lol
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,209
3,178
i think he has hung himself with the usb cable lol
Nah, I'm sure he'll be ok. I know doctors who feel completely out of their depth when trying to work their PC. Microsoft don't make computers easy to use to do anything useful anymore. Hidden file extensions, zip folders which look like folders, a zillion other things... Windows 10 is a mess.
 
Last edited:

guerney

Esteemed Pedelecer
Sep 7, 2021
11,209
3,178
i think he has hung himself with the usb cable lol
People really tend to freak out seeing the command prompt - just don't type in certain commands which will wipe everyting, and you'll be ok.
 

soundwave

Esteemed Pedelecer
May 23, 2015
16,720
6,433
format c:/ :p
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,209
3,178
Windows 10's Notepad should be fine editing that .bat file. If it looks like gobbledigook, just get Notepad++ and use that instead. It's what I use for pretty much everything.
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,209
3,178
What worries me is that we can't see the error message - when you use the command line, we will.
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,209
3,178
If it looks like this, use Notepad++


46916
 

Related Articles

Advertisers