Make sure you did flash correctly and with the correctly firmware versions. Go to the wiki and follow again the instructions.hobbbes said:I just connected the 850c and flashed my motor with the latest firmware.
Everything was turning on, and I could even get the walk assist to work, but I couldn't get any motor power or readings for human power.
Any ideas on what I should do?
Thanks
This time is done and I was able to test on my 850C. And I saw that is ugly/hard to find the option when the LCD is inverted. I need to put more time to figure out how to correctly detect the LCD version.h27 said:Great, thanks.casainho said:You are correct, I forgot to implement the save variable so it will never make any difference at startup. I will finish that as also make the system reset automatically every time the user changes that configuration.
Thanks again for you work. Is this the bootloader version? And if not: Would you be kind enough to also produce the bootloader version (or tell me how to do it)?casainho said:This time is done and I was able to test on my 850C. And I saw that is ugly/hard to find the option when the LCD is inverted. I need to put more time to figure out how to correctly detect the LCD version.h27 said:Great, thanks.casainho said:You are correct, I forgot to implement the save variable so it will never make any difference at startup. I will finish that as also make the system reset automatically every time the user changes that configuration.
850C_v0.4.2: https://github.com/OpenSource-EBike-firmware/Color_LCD/releases/tag/850C_v0.4.2
Done. Seems there was an error when I did attach on the release the bootloader version file.h27 said:Thanks again for you work. Is this the bootloader version? And if not: Would you be kind enough to also produce the bootloader version (or tell me how to do it)?
Yes, on configurations, the option display -> LCD vertical flip. I need to put this on wiki.bennyschudo said:Got new file from github
"NOTE: this versions was developed for TSDZ2 motor controller firmware v0.19.0.
Corrected the LCD vertical flip."
Still inverted - do i need to change any setting for the flip ?
Thanks for version 0.4.2., casainho. Works perfectly. The immediade reset after a change of the setting is a very nice extra!casainho said:Done. Seems there was an error when I did attach on the release the bootloader version file.h27 said:Thanks again for you work. Is this the bootloader version? And if not: Would you be kind enough to also produce the bootloader version (or tell me how to do it)?
I need to make the wiki more clear about the versions. If you soldered and wires, then it is the regular version without ¨bootloader¨.lvx_xvl said:Hi Guys,
I'm trying to get a 850c screen to run with the "OpenSource-EBike-firmware/Color_LCD" firmware.
Flashing the 850c wasn't a problem, I opened the screen and soldered an upload/flash cable to the pins and closed the case again.
The thing is I wasn't sure which file to use. Either the "850C_v0.4.2-bootloader.bin" or the "850C_v0.4.2.bin" file. In the end I read in the Wiki on Github the you should use the "bootloader" version for SWD.
I tried both of the files, but none of them will boot the screen.
If I use the 850C-v0.4.2.bin:
- grey screen after flashing
- power toggle:
* 24V on battery pin
* white screen
* No action after any button press
If I use the 850C-v0.4.2-bootloader.bin:
- black screen after flashing
- power toggle:
* 24V on battery pin
* black screen
* No action after any button press
The question for me now is which file to use?
Because the one I shouldn't use is giving me at least a white screen. (Based on "White screen of death" threads, I did get a recent version from pswpower.com)
Another basic question I have is if the screen will boot as a standalone device. I just hooked up the "Battery" and "GND" pins. Or is it mandatory to connect to a TSDZ2 with the "OpenSource-EBike-firmware/TSDZ2-Smart-EBike" firmware? Reading the source code didn't reveal an obvious init blocking.
Just a quick question about the method to flash. I'm using the JTAG SWD method with ST-Link USB. At the moment I used Windows and the STM32-ST-LINK Utility software to flash the *.bin files.
On the wiki page I read the linux is also possible and somewhere on the forum I read that the active coders (casainho and geeksville) are using Linux, Eclipse and OpenOCD. I'm a linux user, so for me it would be really helpful if the wiki could be extended to include more information about this setup. I guess GCC toolchain for ARM is also needed, and reading the eclipse site they mention GNC-MCU and a node.js method with a xpm version of OpenOCD.
Would you guys want to elaborate on the method of flashing, is this via command line or via eclipse tools? Which version of linux, Debian is giving met the Eclipse version 3.8, fairly old I discovered.
And before I forget, I need the thank the coders and community the make this all possible. Many thanks!
Regards,
LVX
So the microcontroller is the same.lvx_xvl said:Hi Casainho,
Thank you for your fast reply.
The chip is a GD32F103.
I've tried the "850C_v0.4.1.bin" with the same result a white screen after flashing and a power cycle.
Here is an image of the chip status form the STM32-ST-LINK Utility:
The "Bafang_LCD_850C_firmware-v0.4.0.bin" shows the same result up to the power toggle, but when I pressed the power button for a longer time it flipped to grey.
Just to be sure I didn't mess up the 0.4.1, I retried and indeed after 3+ seconds of holding the power button it also flips the screen to grey. Off course I then retried the 0.4.2 and there I now have the same result, after 3+ seconds it flips the screen to grey.
But it never boots to a working screen. Just to be sure I did already ask, is the firmware capable off booting without a TSDZ2 connected?
regards,
LVX
1. yes.genuev said:1. I'm thinking of flashing this firmware on my 850c display and TSDZ2 motor but I was curious if the throttle works.
2. Also if I find that it dose not work for me do you know if I can rollback the firmware to the original version?
Today I did many builds and debug with OpenOCD and I did a few commits. All working for me on Linux.obcd said:I am trying to set up the environment to compile the 850C firmware under windows 8.
I haven't checked the map file yet to see how the labels main and SystemInit are represented there.
(I temporary removed the bl SystemInit and bl main from the s file. It compiles and links fine without them (obvious won't run, I know.)
I will look at it. I think there is an issue when enabling the throttle.genuev said:Also in the Technical screen when I push on the throttle I see 0 value on 'ADC throttle sensor' but 'Throttle sensor' seems to show the correct values from 0 to 255 based on how I push the throttle.
So it seems that the throttle is read but it is just ignored.
I get the feeling that there is a setting that I've missed. :-|