cancel
Showing results for 
Search instead for 
Did you mean: 
sc99cs
Level 2
13 12 2 1
Message 1 of 22
1,487
Flag Post

Solved!

HP Prime crashed by 'break' command

HP Recommended
Other

Hello,

 

I've just bought an HP Prime and I've been playing about trying to learn how to use it. I have a problem with the Demo_BREAK example program.

 

EXPORT Demo_BREAK()

BEGIN

FOR A FROM 1 TO 10 DO
  B:= (A+3) MOD 5;
  IF B==1 THEN BREAK;
END;
END;

 

END;

 

when ever the BREAK command is hit my calculator displays a "The calculator had a problem and will reboot in 3 seconds" message.

 

Is this a fault specific to my calculator or a general PRIME fault?

Software  Version 2.1.14181 (2018 1016)

 

Thanks

Steve

1 ACCEPTED SOLUTION

Accepted Solutions
sc99cs
Author
Level 2
13 12 2 1
Message 20 of 22
Flag Post
HP Recommended

I posted the same question on the HP Museum forum and someone else has confirmed that they get the same crash on their calculator. Furthermore this apparently use to be a known bug on the G1 which was fixed but seems to have been brought back to the G2.

 

Thank you Maké and Bart for your help with this.

 

Steve

View solution in original post

Tags (1)
Was this reply helpful? Yes No
21 REPLIES 21
Maké
Level 9
3,551 3,299 180 540
Message 2 of 22
Flag Post
HP Recommended

Hi!, @Sc99cs :

Try, with ...

FOR TO.PNG

Kind Regards !.
Have a nice day !.
@Maké (Technical Advisor Premium - HP Program Top Contributor).
Provost in HP Spanish Public Forum ... https://h30467.www3.hp.com/
Was this reply helpful? Yes No
sc99cs
Author
Level 2
13 12 2 1
Message 3 of 22
Flag Post
HP Recommended

Hi Maké,

 

Thanks for the reply. The RETURN command needs to be between the 2nd and 3rd END command or the program just exits after one loop and the BREAK is never called. I've tried stepping through using the debug mode and the BREAK command is reached but as soon as the program exits, the calculator crashes, so for example

 

clipboard_image_0.png

displays

clipboard_image_1.png

but as soon as OK is pressed the calculator crashes.  The emulator I took the screen shots with does not have this problem.

 

Steve

Was this reply helpful? Yes No
sc99cs
Author
Level 2
13 12 2 1
Message 4 of 22
Flag Post
HP Recommended

Screen shots from my actual calculator

The demo program modified as above

clipboard_image_0.png

 

The output following the BREAK

clipboard_image_1.png

 

The crash following pressing OK

clipboard_image_2.png

 

Calculator software version is

clipboard_image_0.png

Was this reply helpful? Yes No
Maké
Level 9
3,551 3,299 180 540
Message 5 of 22
Flag Post
HP Recommended

Hi!, @Sc99cs :

Check with the instruction defined in the head of program HPPPL ... https://carlos-icg.blogspot.com/2017/09/Pragma-HP-Prime.html

Note : I apologize if this document are written in Spanish Language.

Kind Regards !.
Have a nice day !.
@Maké (Technical Advisor Premium - HP Program Top Contributor).
Provost in HP Spanish Public Forum ... https://h30467.www3.hp.com/
Was this reply helpful? Yes No
sc99cs
Author
Level 2
13 12 2 1
Message 6 of 22
Flag Post
HP Recommended

Hi Maké ,

 

I checked the link but the pragma statement is correct. I would hope it is correct because it is part of the built in demo programs. To make sure I deleted the pragma (got a crash), added it via the menu as per the blog (crashed) and typed it in manually (crashed again).

On the possibility that there was a bug in the stored demo I typed the program in by hand and again got a crash.

 

I might try to update the firmware again.

 

PS " I apologize if this document are written in Spanish Language"

Don't worry I work in IT so I know all about pragma statement so it was fairly easy to understand the blog in the context 😀

Was this reply helpful? Yes No
Maké
Level 9
3,551 3,299 180 540
Message 7 of 22
Flag Post
HP Recommended

Hi!, @Sc99cs :

Please, try with key's ... ON+Apps+Esc for delete all RAM (Random Access Memory).

Too, check with ON+Symb.

Then, rewrite the program and try again.

Kind Regards !.
Have a nice day !.
@Maké (Technical Advisor Premium - HP Program Top Contributor).
Provost in HP Spanish Public Forum ... https://h30467.www3.hp.com/
Was this reply helpful? Yes No
sc99cs
Author
Level 2
13 12 2 1
Message 8 of 22
Flag Post
HP Recommended

No success. I'll try writing some more complex programs tomorrow to see if I have any success. It would be interesting to know if this is a general Prime fault or just my calculator.

Was this reply helpful? Yes No
Maké
Level 9
3,551 3,299 180 540
Message 9 of 22
Flag Post
HP Recommended

Hi!, @Sc99cs :

Try ... http://www.hp-prime.de/files/composite_file/file/214-hp_prime_recovery_mode.pdf

Too, from ... https://www.hpmuseum.org/forum/thread-12210.html

Note : informach user's in this site, it's me ... informach.PNG

Kind Regards !.
Have a nice day !.
@Maké (Technical Advisor Premium - HP Program Top Contributor).
Provost in HP Spanish Public Forum ... https://h30467.www3.hp.com/
Was this reply helpful? Yes No
sc99cs
Author
Level 2
13 12 2 1
Message 10 of 22
Flag Post
HP Recommended

I carried out the format and reset (twice). The error still occurs so it isn't something in memory. That leaves the firmware.

Was this reply helpful? Yes No
† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation