PetteriAimonen / AlterBIOS

Extensions and fixes for DSO Quad BIOS (SYS.HEX)
11 stars 7 forks source link

Huuumm I seem to have bricked my DSO v2.72 #2

Open ghost opened 10 years ago

ghost commented 10 years ago

I was trying to patch the SYS_B160.HEX firmware file using your AlterBIOS to get around the file corruptions which keep on happening when I try to save data from QuadPAWN aps and then from the PA1_V110.HEX (standard oscilloscope) App. It booted and I thought everything was good. Until I tried to get an App to write to disk. Now I just get a white screen (WSOD) and am unable to get access to the device through usb

hub 2-1:1.0: unable to enumerate USB device on port 7

I cant even get to the flashing page. I can only assume that the firmware has accidentally corrupted its self and the boot loader!!! :'( Why isn’t that memory area write protected!!!!

Is there anyway I can re flash the device or issue a hard reset. will it involve getting to the jatag to reflash the bootloader?

I guess this serves me right, a little knowledge can be a dangerous thing.

edit quoted incorrect APP_251.HEX instead of PA1_V110.HEX though this wasn’t running at time of failure

PetteriAimonen commented 10 years ago

Hmm, so just to verify: What happens if you hold down the first button while turning on the device? White screen then also?

It is very strange that the bootloader has been corrupted. Can you give more details of what happened just before the problem?

It is possible to reflash bootloader using the 6-pin header on the main PCB. You just need a USB-to-serial adapter to do it, and a python script from here: https://github.com/jsnyder/stm32loader . Hook up the pins 1 and 2 of the header together and turn on the device to get to the bootloader. (Check http://koti.kapsi.fi/jpa/stuff/other/DS203V2.png for schematics).

Though you also need something to flash.. my firmware is at http://kapsi.fi/~jpa/stuff/other/my-original-flash.bin but that's for 2.6 hardware.

ghost commented 10 years ago

What happens if you hold down the first button while turning on the device?

White screen no sound just white screen. I assume the back light is hard wired on and the display is doing nothing.

Can you give more details of what happened just before the problem?

Using the PAWN_011.HEX aplication freqresponce. Make freq response . try to save CSV -> White screen, everything dead

Ok I will try the stm32 I have a fti usb to 3.3 v serial adepter somewhere. I think I have the firmware (bootloader?) Or I have seen it is available on some Chinese forum website

PetteriAimonen commented 10 years ago

As long as you first take a copy of your original stuff, it is pretty safe to try random bootloader firmwares. Someone on the Seeed forums might be able to make you a copy also.

Still no idea what could have caused this.. If you can post the .bin once you read it out, it might give some info.

ghost commented 10 years ago

Ok I will give it a go

this is the site with all the v2.72 stuff on it minidso.com google translated

but not sure if there is a boot loader there. I will try and download the scrambled one, and see if any of the ones from seed, boot loaders should be pretty universal no?

ghost commented 10 years ago

OK scratch all that, I think the error is from the USB cable and something out of wack on my PC. I left the usb cable in until the battery charged fully. Now the device will boot, but only with the USB unplugged. Plugging in the USB results in the White screening. Basically whatever is running on the DSO crashes and the screen fades to white. Very strange.

Actually this is not host specific it happens on both the machines I have.... Ok tried a different cable, Now things are more normal. Though the colours on the display change (yellows go orange) and the voltages on the oscilloscope saturate to -ve when plugging in wtf? Managed to get the originally SYS_B160.HEX on now, still the same problem.

Do you think there is a short on the USB, or something has got reconfigured some how using the patched SYS? I will look for shorts...

PetteriAimonen commented 10 years ago

A lot of people have been having trouble with bad USB cables and DSO Quad. I'm not sure if they ship bad ones. I have one that measures 1 ohm from end-to-end and doesn't work, but I can't remember what device it came with.

Maybe something wrong with your battery or the charger chip also.. I would measure the voltage on the battery while connected/disconnected.