The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

HP Prime - usbtool.exe
Message #1 Posted by bluesun08 on 10 Dec 2013, 10:47 a.m.

There are websites which describes the firmware-update of HP Prime by means of the "usbtool.exe". What is the advantage/disadvantage of this update method compared to the ConnKit?
The websites for example are:
Link1
Link2
Link3

      
Re: HP Prime - usbtool.exe
Message #2 Posted by Tim Wessman on 10 Dec 2013, 11:04 a.m.,
in response to message #1 by bluesun08

That tool can overwrite your bootloader as it has no limits and can fully write anywhere in flash. It was never meant to be publically avaiable and was given to early testers in the Prime development. I would highly recommend not playing around with it.

The code that writes to the flash is identical in both, but the connkit one has limits to prevent overwriting things like the bootloader. If the connkit doesn't update properly, that tool will not work either.

TW

Edited: 10 Dec 2013, 11:12 a.m.

            
Re: HP Prime - usbtool.exe
Message #3 Posted by bluesun08 on 10 Dec 2013, 11:15 a.m.,
in response to message #2 by Tim Wessman

Thank you very much!

            
Re: HP Prime - usbtool.exe
Message #4 Posted by Erwin Ried on 10 Dec 2013, 11:23 a.m.,
in response to message #2 by Tim Wessman

If you mess the bootloader, how can you recover it?

                  
Re: HP Prime - usbtool.exe
Message #5 Posted by bluesun08 on 10 Dec 2013, 11:50 a.m.,
in response to message #4 by Erwin Ried

Good question ...

                        
Re: HP Prime - usbtool.exe
Message #6 Posted by Tim Wessman on 10 Dec 2013, 1:56 p.m.,
in response to message #5 by bluesun08

There is a special software tool that is supposed to be able to do this, but I have no personal experience with it at all.

Edited: 10 Dec 2013, 1:56 p.m.

                              
Re: HP Prime - usbtool.exe
Message #7 Posted by fabrice48 on 10 Dec 2013, 2:35 p.m.,
in response to message #6 by Tim Wessman

In general situation like embeded electronic's :
the bootloader is a master piece of software whitch is able to write inside the ROM/FLASH where the firmware is.
The goal is to to replace the firmware if some condition are meeted
The bootloader can too rewrite itself.
Nowadays, microcontrolers own specific assembler instruction to write inside the entire flash memory during exe.
I said microcontroler, prime use microprocessor i guess, with external memory, in microcontroler the memory is inside the chip.
Bootloader is the fist executive part launched at start, generally his job is easy :
for example, if he see a communication line opened, he thought that a loader operation will probably be initiaded
The new firmware is received by an USB or serial port by the bootloader who rewrite the old and actual firmawre
In the other hand if during start operation, the bootloader did not see the load condition meeted he launch the real firmware, he call it and he stop to run.
so we can see generally see this in memory as two different field, the begining area is for the bootlaoder and the other is for the firmware.
. if an error occur, during bootloader operation, there is no problem, you can retry the operation
BUT if this error is about the destruction of the bootloader, there is no easy recovery solutions, to be clear, a customer can't solve by himself, there is no issue
the user mus contact the developper to re-FLASH the bootlaoder, with a specific developpement probe, in the case of the prime the probe is an JTAG-PROBE.
Some microcontrolers can protect the bootloader area automaticly, so that this area can't be destroyed or rewrited, in this case the developper must indicate the address where the bootloader is to cover this entire area.

                  
Re: HP Prime - usbtool.exe
Message #8 Posted by Mic on 10 Dec 2013, 3:04 p.m.,
in response to message #4 by Erwin Ried

USBToolkit right works for that.

                  
Re: HP Prime - usbtool.exe
Message #9 Posted by Les Koller on 10 Dec 2013, 6:59 p.m.,
in response to message #4 by Erwin Ried

I did just that, and HP sent me a zip file with usbtool.exe in it and a PDF of instructions to use it, and it worked flawlessly!. It is marked HP Confidential at the bottom, so not sure whether it should be posted here or not? To err on the safe side, I won't, but email me if you have questions about it.

                        
Re: HP Prime - usbtool.exe
Message #10 Posted by bluesun08 on 11 Dec 2013, 7:06 a.m.,
in response to message #9 by Les Koller

i also interested in the instructions. i send you a pm.

                  
Re: HP Prime - usbtool.exe
Message #11 Posted by Les Koller on 10 Dec 2013, 10:53 p.m.,
in response to message #4 by Erwin Ried

I've tried sending the files with both yahoo and gmail, but they won't allow me. Any other ideas?

                        
Re: HP Prime - usbtool.exe
Message #12 Posted by Erwin Ried on 10 Dec 2013, 10:59 p.m.,
in response to message #11 by Les Koller

You can upload it to skydrive, google drive, etc?

            
Re: HP Prime - usbtool.exe
Message #13 Posted by Namir on 10 Dec 2013, 4:35 p.m.,
in response to message #2 by Tim Wessman

I highly recommend following Tim's advice. A few days ago, I experienced a problem updating the firmware on my Prime. The error rendered the Prime invisible to my PC (any one of them) as a USB device. The calculator would turn on, display the initial screens, and then be stuck there!!! Plugging the USB cable did nothing!! I thought I was dead in the water. Fortunately, the Prime did not lose its bootloader. Tim saved the day and helped with simple instructions that allowed the PC to once again detect the Prime as a USB device. I was able to update the firmware and the machine came back to life!! Losing the bootloader is akin to playing Russian roulette with your HP Prime!!

Namir

Edited: 10 Dec 2013, 4:37 p.m.

                  
Re: HP Prime - usbtool.exe
Message #14 Posted by Erwin Ried on 10 Dec 2013, 5:15 p.m.,
in response to message #13 by Namir

What are these instructions? I am always a bit scared playing with devices I don't know how to restore (i.e. makes me feel safe to know I can reflash wrt into my router via the programming pins)

                        
Re: HP Prime - usbtool.exe
Message #15 Posted by Namir on 10 Dec 2013, 10:39 p.m.,
in response to message #14 by Erwin Ried

Hold the Symb button while you use a pin to do a reset on the back side of the calculator.

                              
Re: HP Prime - usbtool.exe
Message #16 Posted by bluesun08 on 11 Dec 2013, 7:10 a.m.,
in response to message #15 by Namir

What are the differences between the following resets:
1. Use a pin to do a reset on the back side of the calculator
2. Hold the Symb button while you use a pin to do a reset on the back side of the calculator
3. If the calculator is off, then hold the Symb button and press "ON".

Last question: Using method 2 the display shows "HP Prime recovery mode V13". What can i do in this mode?

                                    
Re: HP Prime - usbtool.exe
Message #17 Posted by Joe Horn on 11 Dec 2013, 12:06 p.m.,
in response to message #16 by bluesun08

Quote:
What are the differences between the following resets:
1. Use a pin to do a reset on the back side of the calculator
2. Hold the Symb button while you use a pin to do a reset on the back side of the calculator
3. If the calculator is off, then hold the Symb button and press "ON".
1. Simple warmstart. Restores most recent power-up state.
2. Enters recovery mode (firmware update mode).
3. Not a reset. Same as turning on (unlike turning on while holding down Symb, which is the same as #2 above).
Quote:
Last question: Using method 2 the display shows "HP Prime recovery mode V13". What can i do in this mode?
Reflash the firmware. The currently supported (safe) methods are:

(A) Run the Connectivity Kit, right-click the calculator (if it appears in the list), and select "Update firmware". If it does not appear in the list, use method B instead:

(B) Run the "Updater.exe" program directly from the installation folder of the Connectivity Kit.

A third method is floating around which involves running a very dangerous program called "usbtool.exe" which has the possibility of nuking your Prime's boot loader. Don't use "usbtool.exe" unless explicitly instructed to do so by HP, and even then be VERY careful to follow their instructions exactly or you'll brick your Prime.

-Joe- Edit: fixed misspellings

Edited: 11 Dec 2013, 12:09 p.m.

                                          
Re: HP Prime - usbtool.exe
Message #18 Posted by bluesun08 on 11 Dec 2013, 1:54 p.m.,
in response to message #17 by Joe Horn

Just a minute! Do i have to enter the recovery mode before i can update the Prime firmware with ConnKit or Updater.exe???

                                                
Re: HP Prime - usbtool.exe
Message #19 Posted by Tim Wessman on 11 Dec 2013, 2:40 p.m.,
in response to message #18 by bluesun08

The updater.exe does not set the device into update mode. The connkit does that.

1. If you calculator is running normally, it will show up in the connkit tree. The firmware update command a)sends a command to the calculator putting it into update mode and then b) launches the updater.exe
2. If your calculator is already in the updater mode (such as you held the SYMB button down on boot), launching the updater.exe should detect it and begin the update.

TW

Edited: 11 Dec 2013, 2:40 p.m.

                                                      
Re: HP Prime - usbtool.exe
Message #20 Posted by bluesun08 on 11 Dec 2013, 3:23 p.m.,
in response to message #19 by Tim Wessman

Great. Now it is clear. Thank you very much!

                  
Re: HP Prime - usbtool.exe
Message #21 Posted by bluesun08 on 11 Dec 2013, 7:16 a.m.,
in response to message #13 by Namir

I have the same problem. The calculator would turn on, display the initial screens, and then be stuck there. (x^2+y^2=1). When i press "ON" the calculator go "Off". Can you give me detailed instructions how to fix this?

Edited: 11 Dec 2013, 7:23 a.m.

                        
Re: HP Prime - usbtool.exe
Message #22 Posted by Namir on 11 Dec 2013, 12:33 p.m.,
in response to message #21 by bluesun08

See my comment above.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall