▼
Posts: 141
Threads: 35
Joined: Jun 2007
I'm trying to flash my HP30s and failing.
The setup:
* Programming cable (thank you, Gene)
* HP30s hooked to power supply (batteries are expensive)
* Atmel's sam-ba 2.12 on both Windows (vista) and Linux (ubuntu)
* Both hardware serial ports and USB serial adaptors.
None of the four combinations of port type and operating system seem to work. I select the port in sam-ba, select the right chip, and then I either get connection error (windows) or just indefinite wait (linux).
The instructions on the wiki mention sam-ba v2.9, but that's not available any more, and I don't see why that would make a difference.
I have an oscilloscope, a logic analyzer, and stuff like that, if debugging the problem involves using them.
Help?
Thanks,
/ji
▼
Posts: 4,587
Threads: 105
Joined: Jul 2005
Please use the procedure as specified in the manual - it will work.
d:-)
▼
Posts: 141
Threads: 35
Joined: Jun 2007
If you by that you mean "erase the calculator first", yes, I did that. AFAICT, I'm using the procedure in the manual.
Thanks,
/ji
▼
Posts: 4,587
Threads: 105
Joined: Jul 2005
I hate to repeat, but please follow carefully the procedure as described in App. A (and possibly also App. G) of the manual and it shall work: this includes MySamba, an FTDI USB/serial converter, and maybe more you may need.
On my site, it works both with FTDI converter + Gene's flashing cable or Harald's USB board + standard USB cable -- always under Windows 7.
Edited: 3 Sept 2013, 10:59 a.m.
▼
Posts: 225
Threads: 13
Joined: Jun 2011
+1. I've been able to make it work under Seven & XP, with MySamba and with Sam-BA 2.10.
And even sometimes on a Mac & on Linux using my own flashing tool but this is less reliable.
Trying many times may sometimes be necessary (i.e. 10 or 20).
Edited: 3 Sept 2013, 1:04 p.m.
Posts: 8
Threads: 0
Joined: Dec 2011
Hi John,
"Samba" never worked for me too.
I allways use "mySamba", give it a chance...
Posts: 65
Threads: 14
Joined: Jun 2013
Grab the MySamBa.zip file from this web site here All of this is in the manual, but somehow I was lead to the wrong version of samba my first time too, so use the MySamba program from the link above on a windows 7 machine and you will be fine.
Edited: 2 Sept 2013, 11:04 a.m.
▼
Posts: 141
Threads: 35
Joined: Jun 2007
I did that too. strace() on the process shows that the calculator never responds to the first two commands sent by the flashing program.
I've tried this on two calculators. Any way of testing whether the cable is working properly?
▼
Posts: 65
Threads: 14
Joined: Jun 2013
You can mail the calculator to someone with a known good flashing cable. I don't have one, but perhaps you can find someone on the forum who does.
Posts: 263
Threads: 42
Joined: Aug 2007
I too was not able to get the flash process to work until I acquired a FTDI USB/Serial cable.
TomC
▼
Posts: 141
Threads: 35
Joined: Jun 2007
I dug up an old enough laptop with a "real" (COM1, on irq4 and port 3F8), and it finally worked. I wonder what the code was trying to do that was failing for the usb cable I had, or the PCI card with the serial ports. I didn't see anything suspicious when strace-ing the process, but if it works, it works!
Thanks to all who responded.
Off to write my own firmware now!
▼
Posts: 1,545
Threads: 168
Joined: Jul 2005
Good news!
I have yet to see a bad cable. It is almost always one of these problems first:
1) Not following the procedure exactly as written. I have fallen into this trap several times myself.
2) OS issue talking to the ports, etc.
3) Computer port hardware issue.
4) Samba software not talking to the proper port, not working at all, etc.
5) Bad calculator.
Only after all those have been completely examined should the cable be considered as at fault. There's just nothing in the cable that can really go bad easily at all.
Glad things worked!
Posts: 3,283
Threads: 104
Joined: Jul 2005
Glad to see it worked. The problem is that the boot code in the chip cannot assume a crystal being available so it tries to guess the proper oscillator settings iteratively. That's why the host sends several packages of data to synchronize the connection. The whole process is flaky at best.
One common problem with flashing is that the calculator is properly erased but not turned on. There is no visible indication that the chip is powered on. You can just press ON long enough to make sure. Interrupting power will turn it off again.
Posts: 23
Threads: 3
Joined: Jan 2013
One of mine needed constant pressure on the connector to alllow flashing.
▼
Posts: 141
Threads: 35
Joined: Jun 2007
That's why God made rubber bands :)
|