My Cargo bike build.

Nealh

Esteemed Pedelecer
Aug 7, 2014
20,917
8,533
61
West Sx RH
  • Like
Reactions: guerney

guerney

Esteemed Pedelecer
Sep 7, 2021
11,434
3,248
I have all four downloads on my local disk (C.).
en.stvd-stm8.zip and all extracted.
On my computer, I have downloaded it and it's showing as:

en.stvd-stm8.zip

On Windows 10, when you click a .zip file, it looks just like any other folder, because it opens them to reveal the contants automatically, but that doesn't mean it that any of the .zip file's contents have been extracted, or that anything has installed. In this case en.stvd-stm8.zip contains an installer called sttoolset_pack42.exe, which you have to doubleclick to install into a new folder called:

C:\STMicroelectronics

For convenience, you can make that folder yourself using File Explorer, before you double click to start the installer. Or you can make a new folder while installing that program.
 
Last edited:

guerney

Esteemed Pedelecer
Sep 7, 2021
11,434
3,248
Zip files are compressed files containing one or many files by the way - Windows 10 and 7 show them as folders, for speed. But they can't be executed within zip files, they have to be extracted first. If you double click that file called:

compile_and_flash_20.bat

...your computer will try to run programs which haven't extracted anywhere yet, and so will not find them, hence error messages.

If you have already extracted the files somewhere, you can drag and drop any .bat file into an editor. If they look garbled, I would recommend downloading and installing Notepad++ here:


I've just opened that file you mentioned in Notepad++ and it looks like this:

@Echo OFF

SET home_dir=%~dp0
SET release_folder=releases\20.1

CD src\controller
CALL compile_and_flash.bat || GOTO :error
CD %home_dir%
COPY .\src\controller\main.ihx %release_folder%\TSDZ2-mb.20beta1.B-PROGRAM.hex

ECHO:
EXIT /b %errorlevel%

@Echo ON
 
  • Agree
Reactions: Nealh

Nealh

Esteemed Pedelecer
Aug 7, 2014
20,917
8,533
61
West Sx RH
Which file is that exactly? I hope we're looking at the same wiki. If you post a link to it, I can have a look.
This one, it is the github extracted zip file of v20.1C.2.
It is the line above the jar conigurator.
DSCF1358.JPG

The java config tries to open with Jar platofrm SE binary, but all that happens is a black command type box breifly tries to open before failing. I get no error messages as B-4-2 got.
 

Nealh

Esteemed Pedelecer
Aug 7, 2014
20,917
8,533
61
West Sx RH
On my computer, I have downloaded it and it's showing as:

en.stvd-stm8.zip

On Windows 10, when you click a .zip file, it looks just like any other folder, because it opens them to reveal the contants automatically, but that doesn't mean it that any of the .zip file's contents have been extracted, or that anything has installed. In this case en.stvd-stm8.zip contains an installer called sttoolset_pack42.exe, which you have to doubleclick to install into a new folder called:

C:\STMicroelectronics

For convenience, you can make that folder yourself using File Explorer, before you double click to start the installer. Or you can make a new folder while installing that program.
This is what I see & have for sttoolset.
DSCF1359.JPG
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,434
3,248
The verson Bikes4Two
This one, it is the github extracted zip file of v20.1C.2.
It is the line above the jar conigurator.
View attachment 46910

The java config tries to open with Jar platofrm SE binary, but all that happens is a black command type box breifly tries to open before failing. I get no error messages as B-4-2 got.
It's hard to tell if that has been extracted, or if Windows 10 is just showing you a zip file as a folder. On the left where it says Local Disk C:\, expand that and look at the folder there - if it has a zigzag line through it, those files need extracting to a new folder called TSDZ2-Smart-EBike-1-20.1B

This isn't the same version Bikes4Two used, the .bat file names are different, and no path is set within them. So next step is to make sure those files have been extracted to the specified folder, then add a path if needed.
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,434
3,248
This is what I see & have for sttoolset.
View attachment 46911
That's showing you a zip file's contents, represented as a folder containing that installation file. If you double click that, it will start the installation process.
 
  • Like
Reactions: Nealh

guerney

Esteemed Pedelecer
Sep 7, 2021
11,434
3,248
This is what I see & have for sttoolset.
View attachment 46911
Double click that file and install it into:

C:\STMicroelectronics

If that folder doesn't exist, make a folder on C:\ with exactly that name (STMicroelectronics) first, paying attention to capitalisation.
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,434
3,248
This one, it is the github extracted zip file of v20.1C.2.
It is the line above the jar conigurator.
View attachment 46910

The java config tries to open with Jar platofrm SE binary, but all that happens is a black command type box breifly tries to open before failing. I get no error messages as B-4-2 got.
Every file and folder there needs to be moved into the folder before it. I've downloaded TSDZ2-Smart-EBike-1-20.1B.zip, so the folder would have to be called:

TSDZ2-Smart-EBike-1-20.1B

You've got a different version to the one I've downloaded.
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,434
3,248
I've just downloaded the version you have and it's ok, the correct bat file is named as:

getRuntime ()Ljava/lang/Runtime;† !cmd /c start compile_and_flash_20

...that's from within the file JavaConfigurator.jar, inspected using Notepad++

I think that you need to check that the files you are looking at are extracted files, and not located within .zip files, which Windows 10 is displaying the contents of. Microsoft makes things confusing, if zip files were clearer as zip files, nobody would mistake them for actual folders containing extracted files. It's why I use Winrar.

Once the program in #85 has been installed into the right directory (double click it, install into the right folder C:\STMicroelectronics, if that folder doesn't exist - make that folder first before installing, or during the installation), and all the files and folders in #84 have been extracted into the correct directory (Drag and drop into C:\TSDZ2-Smart-EBike-1-20.1C)... it's time to double click JavaConfigurator.jar again within that folder, and watch for errors.
 
Last edited:

Nealh

Esteemed Pedelecer
Aug 7, 2014
20,917
8,533
61
West Sx RH
That's showing you a zip file's contents, represented as a folder containing that installation file. If you double click that, it will start the installation process.
Yes it starts the install wiazard.
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,434
3,248
Yes it starts the install wiazard.
Make a new folder on your C:\ drive called:

STMicroelectronics

...and install it into that, not in program files.
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,434
3,248
Yes it starts the install wiazard.
You can cancel the installattion, and make that folder, then start again to install into that folder.
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,434
3,248
Yes it starts the install wiazard.
Basically what Windows does when you double click that file, is extract the file from the Zip file to a temporary directory on your computer, then it runs from there. After installation, that extracted program is then deleted from that temporary folder.
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,434
3,248
Extract all files and folders by right clicking the file:

TSDZ2-Smart-EBike-1-20.1C.2.zip

as he does here:


Make sure the folder is called:

TSDZ2-Smart-EBike-1-20.1C

...on the :

C:\

drive
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,434
3,248
This one, it is the github extracted zip file of v20.1C.2.
It is the line above the jar conigurator.
View attachment 46910

The java config tries to open with Jar platofrm SE binary, but all that happens is a black command type box breifly tries to open before failing. I get no error messages as B-4-2 got.
In this photo, all of those files and folders should be in the folder before that one. You should be able to select then all by highlighting, then drag and drop them into the folder called:

TSDZ2-Smart-EBike-1-20.1C

To do that, open another File Explorer window, expand Local Disk (C on the left, navigate to that folder. Then put the two explorer windows side by side (size as appropriate), then highlight all the files and folders you have in that photo, then hold and drag them over to the TSDZ2-Smart-EBike-1-20.1C folder in the other File Explorer window. The files will then be extracted and moved into the TSDZ2-Smart-EBike-1-20.1C folder.
 
Last edited:

Nealh

Esteemed Pedelecer
Aug 7, 2014
20,917
8,533
61
West Sx RH
Every file and folder there needs to be moved into the folder before it.
Explain more please in English please !!!
I have the zip file named v20.1c.2 and extracted it to a separate C. file of the same name, is this what you are saying ?
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,434
3,248
Explain more please in English please !!!
I have the zip file named v20.1c.2 and extracted it to a separate C. file of the same name, is this what you are saying ?
In this photo:



...those files and folders are showing in a folder ending in the word "master". They should all be in a folder called TSDZ2-Smart-EBike-1-20.1C.2, which is the one before it. Windows is showing you the contents of a .zip file as a folder, when it's just a .zip file and nothing has been extracted yet. So anything you double click (like bat files) will extract on their own into a temporary directory somewhere else, and won't work. Those files and folders need to be extracted into a folder called TSDZ2-Smart-EBike-1-20.1C.2 on the C:\ drive. If it doesn't exist, make that folder and drag and drop all of those files and folders into it.
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,434
3,248
Alternatively, you should be able to highlight all of those files and folders and right click > copy (right click and select "Copy")

...then go to the right folder:

TSDZ2-Smart-EBike-1-20.1C.2

...and right click > paste
 

guerney

Esteemed Pedelecer
Sep 7, 2021
11,434
3,248
Have you installed the ST Visual Development? After that's installed into the right directory, and the files and folders in the zip folder TSDZ2-Smart-EBike-1-20.1C.2 , are extracted into the right folder - start the configutator.
 
Last edited:

Related Articles

Advertisers