stancecoke
100 kW
- Joined
- Aug 2, 2017
- Messages
- 1,808
rob42 said:Ive googled all afternoon, and I'm at a loss, where do I get those utilities?
See here:
https://stm8-binutils-gdb.sourceforge.io/
regards
stancecoke
rob42 said:Ive googled all afternoon, and I'm at a loss, where do I get those utilities?
HughF said:Hi Rob, sorry I can't help (I've tried googling and seem to end up at the same brick wall as you have), but do you have a windows machine you could use for this task? I know it is admitting defeat, but sometimes you just have to use what delivers the results unfortunately. It's a trait of the electronics industry that they tend to favour Windows with their toolchains, we get it with the Ti DSP assembler we use at work, Windows only.rob42 said:Hi,
I'm trying to build and install this from the cloned git repo at https://github.com/AckmaniacSoftware/TSDZ2-Smart-EBike-compatible-with-original-VlCD6-display. Ive been through the various pages and explanations etc. setups and dev stuff. (I'm a developer, but usually in java)
Running on ubuntu 18.04, "make -f Makefile_linux all" I get an error :
stm8-size main.elf -A
make: stm8-size: Command not found
Sure enough I dont have that or `stm8-objcopy` which follows in the script.
Ive googled all afternoon, and I'm at a loss, where do I get those utilities?
Thanks
Rob
After faffing about with SDCC the Java Configurator works well for me and I can at least quickly and easily build and test the various motor options.
Hugh
rob42 said:Thanks for that, I found another option too. In linux (ubuntu 18.04 with SDCC 3.8 I have some related commands
sdasstm8 - -plosgffw main //manipulates symbols etc
sdldstm8 -nf main.lk //linker
I found it all worked by just running `sdldstm8 -nf main.lk` in the src/controller dir after the make process errored. Gave me a main.ihx file which flashed and worked.
Thanks to mbrusa we have the possibility to try the v.020 beta1 for default displays.stancecoke said:Mbrusa released his code for the 0.20........ The GUI is still missing, you have to edit the config.h manually at the moment. ...........
The release is just published and only tested by two users (mbrusa and chr27.5)Nfer said:How does it work with the vlcd6? .....
Elinx said:The release is just published and only tested by two users (mbrusa and chr27.5)Nfer said:How does it work with the vlcd6? .....
So every feedback will be welcome if you want to try this release.
I presume that in that case you must "press up" for confirmation of different modes.
This was the same with mbrusa v0.19C data additions too.
I advice to read at the Italian jobike forum too.
:thumb:stancecoke said:.....
I've moved most parameters to the file advanced.h and started a GUI:.....
stancecoke said:Elinx said:The release is just published
I've moved most parameters to the file advanced.h and started a GUI:
https://github.com/stancecoke/TSDZ2-Smart-EBike
The GUI is not working yet, it will take two more hours of work, I think...
regards
stancecoke
GUI.PNG
Elinx said:The release is just published and only tested by two users (mbrusa and chr27.5)Nfer said:How does it work with the vlcd6? .....
So every feedback will be welcome if you want to try this release.
I presume that in that case you must "press up" for confirmation of different modes.
This was the same with mbrusa v0.19C data additions too.
I advice to read at the Italian jobike forum too.
You are right, mixing the advanced parameters in the main.h is not a good idea. Therefore I moved them to the advanced.h. I plan to use the second button in the GUI to open the advanced.h with notepad.mbrusa said:The choice of which parameters to put in main.h and which in config.h I made and the result is this!
You are welcome!mbrusa said:Good job and thank you.
If it is always possible to edit all functions and seperate them in "basic" and "advanced" configurations, then there should be no problem for everyone.stancecoke said:..... Therefore I moved them to the advanced.h. I plan to use the second button in the GUI to open the advanced.h with notepad.mbrusa said:The choice of which parameters to put in main.h and which in config.h I made and the result is this!
Elinx said:Till there is a working Gui
stancecoke said:Here you are!
stancecoke said:.....
The configurator works now for the basic settings. I think it is mostly self explanatory.
https://github.com/stancecoke/TSDZ2-Smart-EBike
.......
For people who want to bring the advanced settings into the GUI.......
mbrusa said:there is a problem in the config.h file
The .ini files are just simple text files. They content the values of the textfields and true/false for the radio buttons in the same order as in the config.h. They are written at the same time as the config.hfamichiki said:When are the .ini files saved, upon compiling & flashing? Are they saved in JSON format or something proprietary?
TF_MAX_SPEED.setText(in.readLine());
text_to_save = "#define WHEEL_MAX_SPEED " + TF_MAX_SPEED.getText();
iWriter.println(TF_MAX_SPEED.getText()); //writes .ini file
pWriter.println(text_to_save); // writes config.h
ilu said:Does anyone know if it's possible to add a brake sensor to a controller which has only the 6-pin display cable? Perhaps soldering a wire on the controller and connecting that to the sensor?