Flashing .bin via web interface always corrupts?

Discussion about various user interfaces such as web interface, displays and apps
Post Reply
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Flashing .bin via web interface always corrupts?

Post by cloudy »

Hoping to check if I'm doing anything wrong here... Setup:

-Standard web interface
-Tesla SDU V4 board (with the watchdog reset pin fix from V6)
-Current version (4.85R)
-Web interface works flawlessly otherwise.

-I'm adding the stm32_sine.bin into the upload box and pressing upload
-Status box says upload complete, and then goes from 0-100% in around 5 seconds. Green light on wifi module flashes green during this time.
-Nothing happens after this, the "run" LED on the inverter board no longer flashes. Restarting the board does nothing.
-Even while in this broken state, I can redo the upload and the exact same as above happen, including progress bar

Only way to get board back is to reflash via SWD, but this requires pulling the drive unit apart. Have tried reflashing the bootloader

Any ideas?
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada

Re: Flashing .bin via web interface always corrupts?

Post by dima »

Did you try .hex?
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Flashing .bin via web interface always corrupts?

Post by cloudy »

I did try, but doesn't work - the page is only looking for .bin anyway (this is original web interface not your alternative)


xmlhttp.onload = function()
{
if (file.endsWith(".bin"))
{
runUpdate(-1, "/" + file);
}
document.getElementById("bar").innerHTML = "<p>Upload complete</p>";
setTimeout(function() { document.getElementById("bar").innerHTML = "" }, 5000);
}
User avatar
johu
Site Admin
Posts: 5682
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: Flashing .bin via web interface always corrupts?

Post by johu »

hex wouldn't help anyway. I have no idea right now.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Flashing .bin via web interface always corrupts?

Post by cloudy »

If it sounds like my method is OK, I'll focus on troubleshooting the web interface/wifi module
User avatar
cloudy
Posts: 202
Joined: Wed Oct 02, 2019 12:15 am
Location: UK
Been thanked: 1 time

Re: Flashing .bin via web interface always corrupts?

Post by cloudy »

Using a spare Olimex with a freshly flashed version of web interface fixed. Duff hardware or flash of the web interface I guess. Worth swapping out or re-flashing if anyone is having similar issues (even if the rest of the interface works fine)
Post Reply