The Museum of HP Calculators

HP Forum Archive 20

[ Return to Index | Top of Index ]

WP34S Under WINE
Message #1 Posted by SteveH on 19 Nov 2011, 11:37 a.m.

I was trying to flash an HP 40 to WP34S today and no great success (and limited time) using a Windows PC at work. As I only have a Mac at home I was going to try again using WINE (Codeweavers version) as I've read here that this has been successful.

The problem I was having starting SAM-BA were all about communication errors. I was using both a direct COM port and a USB converter and SAM-BA 2.11.

The ATMEL SAM-BA software crashed with a runtime error whenever I stated it. Does it need any additional software to run under WINE?

I also looked at Bossa and wondered if this might work.

Quote:
The motivation behind BOSSA is to create a simple, easy-to-use, open source utility to replace Atmel's SAM-BA software

Has anyone tried this?

      
Re: WP34S Under WINE
Message #2 Posted by Marcus von Cube, Germany on 19 Nov 2011, 12:12 p.m.,
in response to message #1 by SteveH

Get the MySamba application from SourceForge (http://sourceforge.net/projects/wp34s/files/FlashTool/) and try again.

You certainly did not try to reflash an HP 40, did you?

Edited: 19 Nov 2011, 12:12 p.m.

            
Re: WP34S Under WINE
Message #3 Posted by SteveH on 19 Nov 2011, 12:20 p.m.,
in response to message #2 by Marcus von Cube, Germany

Quote:
You certainly did not try to reflash an HP 40, did you?

Whoops, no! Sorry about the typo.

            
Re: WP34S Under WINE
Message #4 Posted by SteveH on 19 Nov 2011, 12:36 p.m.,
in response to message #2 by Marcus von Cube, Germany

Quote:
Get the MySamba application from SourceForge (http://sourceforge.net/projects/wp34s/files/FlashTool/) and try again.

Is the MySamba application in place of the ATMEL software that's referred to in the quick start guide?

                  
Re: WP34S Under WINE
Message #5 Posted by Marcus von Cube, Germany on 19 Nov 2011, 12:46 p.m.,
in response to message #4 by SteveH

Yes, it's a replacement originally written by Cyrille from IBM and only slightly modified to make it compatible with the less than 128KB flash files for WP 34S. The software is much faster than Atmel's offering.

BTW, you will need fresh batteries because the SAMBA boot loader, once activated by erasing the flash with the cable, will have drained them already. Use a multimeter to verify this! If the batteries are still fine, chances are good that you did not successfully erase the calculator. Try to turn it on.

                        
Re: WP34S Under WINE
Message #6 Posted by SteveH on 19 Nov 2011, 2:03 p.m.,
in response to message #5 by Marcus von Cube, Germany

Quote:
BTW, you will need fresh batteries because the SAMBA boot loader, once activated by erasing the flash with the cable, will have drained them already. Use a multimeter to verify this! If the batteries are still fine, chances are good that you did not successfully erase the calculator. Try to turn it on.

Thanks for the tips, they're welcome. The batteries seem okay - still reading about 2.78V.

                        
Re: WP34S Under WINE
Message #7 Posted by Howard Owen on 19 Nov 2011, 4:00 p.m.,
in response to message #5 by Marcus von Cube, Germany

Quote:
Yes, it's a replacement originally written by Cyrille from IBM ..

Careful there. You'll start a rumor. :)

            
Re: WP34S Under WINE
Message #8 Posted by SteveH on 21 Nov 2011, 7:51 a.m.,
in response to message #2 by Marcus von Cube, Germany

Thanks, that suggestion worked well and the calculator is now up and running.

Is there a self-test mode? I couldn't see a reference to it in the manual - everythings aseems to work well though.

It might be worth updating the Quick Start guide to remove the reference to the Atmal software?

                  
Re: WP34S Under WINE
Message #9 Posted by Marcus von Cube, Germany on 21 Nov 2011, 8:50 a.m.,
in response to message #8 by SteveH

Quote:
Is there a self-test mode?
Do you really believe we implement a test to reveal the many bugs and shortcomings of our design? ;-)

No, if you want to test the hardware you'll need HP's original firmware. On the other hand, hardware failures aren't very common on this platform. So we decided to use the flash space for our own purposes.

Have fun!

                        
Re: WP34S Under WINE
Message #10 Posted by SteveH on 21 Nov 2011, 2:53 p.m.,
in response to message #9 by Marcus von Cube, Germany

Quote:
Have fun!

I have had fun! Thanks for your help.

I've written up a few thoughts about this as I went along on my Tumblr Blog. I thought I'd link to it here in case it's of use to anyone.

                              
Re: WP34S Under WINE
Message #11 Posted by Marcus von Cube, Germany on 21 Nov 2011, 3:57 p.m.,
in response to message #10 by SteveH

Steve, thanks for spreading the news. :-)

A remark:

Quote:
A JTAG serial programming cable. I got mine from Gene Wright.
This is not JTAG but a custom HP part. JTAG is the name of the connector that can be soldered to the board for hardware debugging.
                                    
Re: WP34S Under WINE
Message #12 Posted by SteveH on 21 Nov 2011, 4:01 p.m.,
in response to message #11 by Marcus von Cube, Germany

Thanks for that. I'll update it accordingly.

I think I assumed it was JTAG from the Atmel documentation and also from my own experience of working with FPGAs.

      
Re: WP34S Under WINE
Message #13 Posted by Hubert Weikert on 19 Nov 2011, 4:00 p.m.,
in response to message #1 by SteveH

Quote:
The ATMEL SAM-BA software crashed with a runtime error whenever I stated it. Does it need any additional software to run under WINE?

I had initially also crashes of SAM-BA under CrossOver. After I got the serial port configuration right everything worked.

Serial ports are defined in the dosdevices directory of ~/.wine or in the respective bottle of CrossOver.

Use 'com1' but not 'com1:' as the serial port name, the name with the colon does not work.

Hubert


[ Return to Index | Top of Index ]

Go back to the main exhibit hall