Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 16:50 02 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Whoops... Oh dear

Author Message
IanRogers

Senior Member

Joined: 09/12/2022
Location: United Kingdom
Posts: 151
Posted: 02:23pm 22 Dec 2022
Copy link to clipboard 
Print this post

Hello all..

Running this lil pico with putty as my terminal editor.

As you now I'm just playing at the mo.

I have been working on a rather large program AND!! I assumed each time I run the program is safe inside..  I have no way at the moment to save a copy on the PC (I'm sure there is, but still learning )

I created my first interrupt, it was for a numberbox and  generated a #ref and hit F2, towit a  message appeared stating a 0 isn't valid and ( 1 to 9 ) was.

Realizing I have miss spelled the ref went back to edit..... All gone and memory wiped..  

Ho Hum... I am going to use a different term program as putty will not allow you to save any text on the screen.

Ian
I'd give my left arm to be ambidextrous
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7938
Posted: 02:44pm 22 Dec 2022
Copy link to clipboard 
Print this post

I wonder what else was in your program? That error message is one that I would associate with working with flash slots. Pressing F2 should run the program (which lives in flash slot 0).

If you think this might be a bug, what version number of the PicoMite firmware is it?

If you'd like to try a different terminal program then Tera Term is excellent with the PicoMite if you are running Windows. It supports XMODEM so you can save files from the PicoMite to the PC.

Alternatively, you could try MMedit which is very popular.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5091
Posted: 02:49pm 22 Dec 2022
Copy link to clipboard 
Print this post

Hi IanRogers,

- I have seen this once before. Never could duplicate. Typically you can store your program in a flash slot inside the picomite. That (in my case) survived the "crash".
FLASH SAVE 1 (or 2 or ....5)

- Using MMEdit is definitely preferable. Since you store your programs on the PC. Highly recommended.

Volhout
PicomiteVGA PETSCII ROBOTS
 
IanRogers

Senior Member

Joined: 09/12/2022
Location: United Kingdom
Posts: 151
Posted: 03:04pm 22 Dec 2022
Copy link to clipboard 
Print this post

  Mixtel90 said  I wonder what else was in your program? That error message is one that I would associate with working with flash slots. Pressing F2 should run the program (which lives in flash slot 0).


LOL... it was just a simple screen that loaded a jpg from SD with a button to enter config mode..(working fine)   I then placed 6 controls to access different menu options, one option to quit the program..  ( working)

The last option was to change a variable used in the main screen

 some thing like this

sub entry
' remove gui controls
 GUI DELETE menu1,menu2,menu3,menu4,menu5
 CLS 0
 GUI INTERRUPT myBut, myBut ' same interrupt
 text 20,30, "SELECT","LM", white, black
 GUI NUMBERBOX nbox1 20,50, 100, 37, white, black
 GUI NUMBERBOX ACTIVATE nbox1
 touched = 0 ' as interrupt key down had fired
 do
    if touched = 1 then
      ( save ctrlval and redraw previous screen )
       exit sub
    endif
 loop
end sub


I set the interrupt before this sub BUT  the control was actually named nbox and not nbox1
I also set up the GUI INTERRUPT  just befor
I'd give my left arm to be ambidextrous
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7938
Posted: 03:16pm 22 Dec 2022
Copy link to clipboard 
Print this post

I trust that you allocated some memory for GUI stuff?

Always safer to save progs, especially when messing with interrupts I've found. They usually behave but you never know. :)
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
IanRogers

Senior Member

Joined: 09/12/2022
Location: United Kingdom
Posts: 151
Posted: 03:20pm 22 Dec 2022
Copy link to clipboard 
Print this post

Yup

I'll not need more that 10 so I set it to 10 controls...
It won't let you use them if it's undefined.

print mm.ver
gives 5.0704

I'm downloading MMedit as we speak..
I'd give my left arm to be ambidextrous
 
IanRogers

Senior Member

Joined: 09/12/2022
Location: United Kingdom
Posts: 151
Posted: 03:34pm 22 Dec 2022
Copy link to clipboard 
Print this post

MMedit downloaded and running.

Lets hear no more of my madness...

Ian

Bit Later on.....  Back to where I was ( ish)  lets try the interrupt again..

BTW.. I like MMedit.. I like Textpad and I'd like to run that loader program direct from textpad...

I couldn't be a simple as passing the whole text to MMCC.. Guess I'll try.
Edited 2022-12-23 04:04 by IanRogers
I'd give my left arm to be ambidextrous
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 08:16pm 22 Dec 2022
Copy link to clipboard 
Print this post

  IanRogers said  
I couldn't be a simple as passing the whole text to MMCC.. Guess I'll try.


Yes, it could.

Jim
VK7JH
MMedit
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2642
Posted: 08:37pm 22 Dec 2022
Copy link to clipboard 
Print this post

As you have an SD card attached...

Save "Ver 1.x.BAS"

before RUN.
 
IanRogers

Senior Member

Joined: 09/12/2022
Location: United Kingdom
Posts: 151
Posted: 10:43am 23 Dec 2022
Copy link to clipboard 
Print this post

Cheers Jim.

I have used Textpad as an IDE for years.. It has the ability to setup a compiler to grab the text and compile... Similar as the MMedit.

However!! As MMedit is working sooo well, I'll just use that...( I don't want to introduce errors, not until I'm conversant with this topic..)

Ian

@phil99  Actually, as Peter has a Flash file system, it would make sense to use the new  version and stick it on flash... But using MMedit is tons easier than using a term program.. Cut and paste is a boon when duplicating lines of code..
I'd give my left arm to be ambidextrous
 
IanRogers

Senior Member

Joined: 09/12/2022
Location: United Kingdom
Posts: 151
Posted: 02:11pm 23 Dec 2022
Copy link to clipboard 
Print this post

Okay.. Back to where I was..

The issue is GUI NUMBERBOX ACTIVATE ttext

I used the Const ttext = 7

If I use an interrupt  sub  to increase a variable touched all works fine

Ie...  

sub mybut
touched = touched + 1
end sub

I can pick up that when touched = 2 the enter key was pressed.

But that's not what I want.. I want the number keypad to activate

The error on screen said my syntax is incorrect! It is typed as above..
I'd give my left arm to be ambidextrous
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 02:58pm 23 Dec 2022
Copy link to clipboard 
Print this post

If we are talking about the PicoMite then GUI Numberbox activate has been removed as it had intractable issues (also formatbox activate and textbox activate). The manual for 5.07.06 won't include it
 
IanRogers

Senior Member

Joined: 09/12/2022
Location: United Kingdom
Posts: 151
Posted: 12:08am 24 Dec 2022
Copy link to clipboard 
Print this post

Okay..

I'll set a dummy interrupt and just use it as is.

Thanks for the heads up Peter.

Ian
I'd give my left arm to be ambidextrous
 
IanRogers

Senior Member

Joined: 09/12/2022
Location: United Kingdom
Posts: 151
Posted: 02:07pm 24 Dec 2022
Copy link to clipboard 
Print this post

Is there any way to falsify and generate an interrupt!

All I need is the keypad to pop up normally..Without interaction.

Ian
I'd give my left arm to be ambidextrous
 
plover

Guru

Joined: 18/04/2013
Location: Australia
Posts: 306
Posted: 11:26am 01 Jan 2023
Copy link to clipboard 
Print this post

I am just curious, is this topic still going?
 
IanRogers

Senior Member

Joined: 09/12/2022
Location: United Kingdom
Posts: 151
Posted: 01:28pm 01 Jan 2023
Copy link to clipboard 
Print this post

Clearly not

I have decided to make my own keypad and text control...  Maybe in the future?

I'll not push as Peter has his hands full with the flash storage at the mo.
I'd give my left arm to be ambidextrous
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025