Calculator locks up with this program

Post here to share useful tips and tricks, to ask questions about using your DM42 or to report software-related problems
HPMike
Posts: 439
Joined: Fri Jul 21, 2017 11:01 pm
Location: DFW, Texas

Calculator locks up with this program

Post by HPMike »

I wrote a program to test the calculator speed, and it locks up needing a RESET to recover. The error message is Reg Id d3770103, fw 3.0. The number of loops is placed in the X register before execution, and the program locks up with loops exceeding 100.

LBL “SPEED”
STO “Loop”
TIME
—> HR
STO 00
0
STO “SUM”
1
STO “X”
LBL 01
ATAN
SIN
e^x
3
1/x
y^x
STO+ “Sum”
RCL “X”
1
+
STO “X”
DSE “Loop”
GTO 01
TIME
—> HR
RCL- 00
3600
X
END
DM15L, S/N 00548. DM42, SN: 00159. DM41X, SN: 00973. DM32, SN 00054.
rprosperi
Posts: 1703
Joined: Mon Apr 24, 2017 7:48 pm
Location: New York

Re: Calculator locks up with this program

Post by rprosperi »

HPMike wrote:
Mon Jan 08, 2018 10:55 pm
I wrote a program to test the calculator speed, and it locks up needing a RESET to recover. The error message is Reg Id d3770103, fw 3.0. The number of loops is placed in the X register before execution, and the program locks up with loops exceeding 100.
Firmware update v3.2 added some changes to fix lock-ups during intensive calculations. From the error message text, it appears you are still running v3.0, but your message does not state which rev you are running on. Suggest you update your machine to v3.2 and try it again; it likely will correct the problem.
--bob p

DM42: β00071 & 00282, DM41X: β00071 & 00656, DM10L: 071/100
HPMike
Posts: 439
Joined: Fri Jul 21, 2017 11:01 pm
Location: DFW, Texas

Re: Calculator locks up with this program

Post by HPMike »

Yes, I’m running firmware V3.0.
DM15L, S/N 00548. DM42, SN: 00159. DM41X, SN: 00973. DM32, SN 00054.
hpgene
Posts: 36
Joined: Mon May 29, 2017 3:02 pm

Re: Calculator locks up with this program

Post by hpgene »

Does V3.2 fix the other hang issue with the loop having LOG and 10^X ?
grsbanks
Posts: 1122
Joined: Tue Apr 25, 2017 11:23 am
Location: Preston, Lancs, UK
Contact:

Re: Calculator locks up with this program

Post by grsbanks »

There are only 10 kinds of people in the world: those who understand binary and those who do not.
HPMike
Posts: 439
Joined: Fri Jul 21, 2017 11:01 pm
Location: DFW, Texas

Re: Calculator locks up with this program

Post by HPMike »

Yesterday I finally got around to updating my firmware, and I can confirm that my program now runs w/o hanging the CPU, however there is a significant reduction in speed. Comparing previous results of the speed test created by pier4r on the MoHPc forum, the time for 100 and 1000 program loops changed as follows:

Loops = 100

Batteries: 0.6s —> 1.08s
USB: 0.28s —> 0.37s

Loops = 1000

Batteries: 6.64s —> 10.42s
USB: 2.6s —> 3.53s

Of course, I don’t know to what extent my code differs from the original tests, or even exactly how the timing was done (I used the internal clock and the TIME function of the DM42), but the differences are quite significant.

Nonetheless, the DM42 is still nearly thirty times faster than the original HP-42s.
DM15L, S/N 00548. DM42, SN: 00159. DM41X, SN: 00973. DM32, SN 00054.
grsbanks
Posts: 1122
Joined: Tue Apr 25, 2017 11:23 am
Location: Preston, Lancs, UK
Contact:

Re: Calculator locks up with this program

Post by grsbanks »

I did benchmark the new version compared to the old and I got a 0.6% reduction in speed with V3.2 compared to V3.1.
There are only 10 kinds of people in the world: those who understand binary and those who do not.
HPMike
Posts: 439
Joined: Fri Jul 21, 2017 11:01 pm
Location: DFW, Texas

Re: Calculator locks up with this program

Post by HPMike »

grsbanks wrote:
Wed Jan 17, 2018 5:18 pm
I did benchmark the new version compared to the old and I got a 0.6% reduction in speed with V3.2 compared to V3.1.
Hmm, that is totally at odds with my results, but unfotunately I cannot make a direct comparison, since my calculator would hang under V3.0.
DM15L, S/N 00548. DM42, SN: 00159. DM41X, SN: 00973. DM32, SN 00054.
grsbanks
Posts: 1122
Joined: Tue Apr 25, 2017 11:23 am
Location: Preston, Lancs, UK
Contact:

Re: Calculator locks up with this program

Post by grsbanks »

HPMike wrote:
Wed Jan 17, 2018 5:32 pm
Hmm, that is totally at odds with my results, but unfotunately I cannot make a direct comparison, since my calculator would hang under V3.0.
I compared the speeds running on USB power, in which case the machine wouldn't lock up on earlier fw versions.
There are only 10 kinds of people in the world: those who understand binary and those who do not.
HPMike
Posts: 439
Joined: Fri Jul 21, 2017 11:01 pm
Location: DFW, Texas

Re: Calculator locks up with this program

Post by HPMike »

grsbanks wrote:
Wed Jan 17, 2018 10:49 pm
HPMike wrote:
Wed Jan 17, 2018 5:32 pm
Hmm, that is totally at odds with my results, but unfotunately I cannot make a direct comparison, since my calculator would hang under V3.0.
I compared the speeds running on USB power, in which case the machine wouldn't lock up on earlier fw versions.
OK, I didn’t know that, so I didn’t bother trying. I wonder how those results that I quoted were obtained with the calculator running under battery power. <scratches head>
DM15L, S/N 00548. DM42, SN: 00159. DM41X, SN: 00973. DM32, SN 00054.
Post Reply