emmebrusa / TSDZ2-Smart-EBike-860C

TSDZ2 Open Source Firmware adapted to 860C display
GNU General Public License v3.0
43 stars 12 forks source link

latest 850c not enough flash memory? #4

Open danbates2 opened 2 years ago

danbates2 commented 2 years ago

I recently bought an 850c. Seems to get stuck at ~85% on bootloader flashing, apt burn tools method.

I've tried both 850c bootloader .bin files to no avail.

p.s. the 860c I bought worked a treat. Many thanks for the hard work.

danbates2 commented 2 years ago

I can confirm a much smaller flash file works.

"Bafang_LCD_850C_firmware-v0.2.0.bin" from an old project.

But the file is useless anyway, not suited to the latest hardware and software features. Screen doesn't even boot on it.

I'm almost certain this is a program memory / flash size issue.

danbates2 commented 11 months ago

I'm thinking of replacing the MCU inside this dead 850c with the larger flash memory version (I tried flashing with latest firmware and it's bricked).

Any thoughts out there on whether this will work or not?

This is the most recent compiled for the 850c as we know https://github.com/emmebrusa/TSDZ2-Smart-EBike-860C/releases/tag/v20.1C.4-860C-update-1

DavidKroeter84 commented 6 months ago

This is the most recent compiled for the 850c as we know https://github.com/emmebrusa/TSDZ2-Smart-EBike-860C/releases/tag/v20.1C.4-860C-update-1

Have you, @danbates2, or somebody else tried running this version on the 850C display? I'm still looking for the latest version that the combination of my display/motor is capable of...

danbates2 commented 6 months ago

Forget it. The only flashable binary for the new 850c, with it's smaller memory, doesn't work any more, it's ancient.

You need the 860c.. Or take the 850c apart and replace the stm chip with the equivalent of higher memory, which requires a heat gun and smt soldering skills.

On Mon, 11 Mar 2024, 07:09 DavidKroeter84, @.***> wrote:

This is the most recent compiled for the 850c as we know https://github.com/emmebrusa/TSDZ2-Smart-EBike-860C/releases/tag/v20.1C.4-860C-update-1

Have you, @danbates2 https://github.com/danbates2, or somebody else tried running this version on the 850C display? I'm still looking for the latest version that the combination of my display/motor is capable of...

— Reply to this email directly, view it on GitHub https://github.com/emmebrusa/TSDZ2-Smart-EBike-860C/issues/4#issuecomment-1987755481, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIB5XUUIRDYJR7G7I6L6Z3YXVKBDAVCNFSM5RCSPQKKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJYG43TKNJUHAYQ . You are receiving this because you were mentioned.Message ID: @.***>

DavidKroeter84 commented 6 months ago

Thanks for your quick answer! I still don't get it. What's the exact problem with the latest version, that is still flashable? Is the problem

  1. that the software is ancient?
  2. or that it doesn't work even though the flashing process works?

I'd have the technical skills to solder the bigger flash, but I would still try to avoid it.

danbates2 commented 6 months ago

no probs :)

With the latest version, neither 1 or 2! The 850c now uses a 256kB STM32 (not STM8 I don't think, from memory) chip. As can be seen in the releases page the binaries exceed that size. When I tried flashing, which was a waste of time, it simply froze around 80% as there was no flash memory left.

You can go through the releases you can find an ancient 850c binary which is smaller than 256kB, however when I tried using that it didn't work, perhaps due to other hardware changes in the display or motor controller over the years, I don't know.

On Mon, 11 Mar 2024 at 08:20, DavidKroeter84 @.***> wrote:

Thanks for your quick answer! I still don't get it. What's the exact problem with the latest version https://github.com/emmebrusa/TSDZ2-Smart-EBike-860C/releases/tag/v20.1C.4-860C-update-1, that is still flashable? Is the problem

  1. that the software is ancient?
  2. or that it doesn't work even though the flashing process works?

I'd have the technical skills to solder the bigger flash, but I would still try to avoid it.

— Reply to this email directly, view it on GitHub https://github.com/emmebrusa/TSDZ2-Smart-EBike-860C/issues/4#issuecomment-1987849704, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIB5XQ5B6WS5HMG2CGXARLYXVSLXAVCNFSM5RCSPQKKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJYG44DIOJXGA2A . You are receiving this because you were mentioned.Message ID: @.***>

DavidKroeter84 commented 6 months ago

Get that!

What happened when you flashed a too large file? Could you get the display working again by flashing another one with suitable size or was it completely brickend?

danbates2 commented 6 months ago

I bricked mine, but if it was possible with the flashing software I'd have read out the original binary first.. which is easy enough if the 850c is opened and official stm software used.

I'd like to get hold of the original binary.

On Mon, 11 Mar 2024, 09:39 DavidKroeter84, @.***> wrote:

Get that!

What happened when you flashed a too large file? Could you get the display working again by flashing another one with suitable size or was it completely brickend?

— Reply to this email directly, view it on GitHub https://github.com/emmebrusa/TSDZ2-Smart-EBike-860C/issues/4#issuecomment-1987988066, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIB5XRGK4SIEGAVS6VCMC3YXV3V3AVCNFSM5RCSPQKKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJYG44TQOBQGY3A . You are receiving this because you were mentioned.Message ID: @.***>