Posts: 455
Threads: 39
Joined: Jan 2011
I have now converted a second unit with my usb flash adaptor. But I still have trouble reflashing the device. See this post
Quote:
I have tried two different ways of flashing. One works, and the other one doesn't. Both use my integrated USB adaptor to connect the PC to the 34S.
Using ON+D, ON+S+S, reset, ON, then flashing, reset, ON results in the calculator displaying "restored" and the firmware NOT being updated. However MySamba transmits and tells me it took 24s (as usual)
Following these instructions:
Hold down the ERASE button on the cable (do not release it).
Press and release the RESET button on the cable.
Press and release ON/CE on the calculator to turn it on again.
Release the ERASE button on the cable that you pressed a few steps earlier.
Press and release the RESET button on the cable.
Press and release ON/CE on the calculator. It will not appear to turn on.
followed by flashing with MySamba (again tells me it took 24 seconds) is succesfull. After reseting and turning on the calculator it comes up displaying "erased" and contains the new firmware.
I suspect I am making a mistake in my ON+D, ON+S*S.... procedure, but can't see it. This has worked for me in the past. Am I missing a step?!? If not, the only thing that is different is the firmware.
It is almost as if the SAMBA bootloader is active, but just dicards the data instead of writing it to flash.
I still have exactly the same issue. This is staring to bug me, as it very much limits the usefullness of my flash adaptor. I still need the normal cable just to press the erase button on it.
I am sure this has worked for me before. Can someone else please try falshing without using the erase button and report the procedure used if successfull?
Cheers,
Harald
Posts: 3,283
Threads: 104
Joined: Jul 2005
I do this all the time:
ON+D, then ON+S+S, then ON. Flashing works most of the time. If not, a RESET, followed by ON does the trick always.
My cable is a modified serial cable with all the guts in the blob (except the buttons) removed and connected to a 3V3 FTDI-TLL cable.
Posts: 455
Threads: 39
Joined: Jan 2011
What do you do after flashing? Reset and then ON?
Or am I making a mistake here?
I am beginning to think my adaptor is at fault. I just don't see how, as it works if I use the erase button instead of ON+D, ON+S+S.
I am probably looking at the problem from the wrong angle.....
How the heck can MySamBa transmit the data and the calculator NOT contain the firmware afterwards? If MySamBa is happy, that means the calculator MUST have given the correct reply, therefore it MUST also have entered the bootloader. So would you agree the problem must lie in something that happens after flashing? What does happen after flashing? Anything that could go wrong there?
Sorry to bother you with this, I just don't seem to be able to work out what is going wrong on my own....
Cheers,
Harald
Posts: 3,283
Threads: 104
Joined: Jul 2005
The ON+D, ON+S+S sequence clears the boot bit (to enable the boot loader) and then turns the calculator off. Hence the necessity to press ON afterwards.
MySamba first sets the boot bit with the SAM-BA built-in commands and then downloads and starts a special communication program which is contained as a hex dump in the MySamba sources. This program is responsible for actually flashing the device. Since this program never reaches its programmed end condition (the full 128KB) the calculator sits there waiting for more data. So after the send completes it's necessary to press RESET once and then ON.
Posts: 455
Threads: 39
Joined: Jan 2011
Strange. I still can't see a reason why it would kind of "half work" with the ON+D... procedure and work fine with the other.
Would you be interested in testing the flash adaptor? I don't have the one with the resistor for the IR LED and the transistors to switch between battery and USB power yet. So you could choose between the one with Li-Ion handling and the basic just USB one. Email me your address and I'll send you one. h dot pott at gmx dot net. Forum mail doesn't seem to work.
Cheers,
Harald
PS: And thanks for your patience with all those stupid questions...