Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 03:52 29 Nov 2024 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 : Issues using MMEdit to Load a modified program

Author Message
nigelcole
Newbie

Joined: 18/04/2012
Location: United Kingdom
Posts: 2
Posted: 09:07am 25 Apr 2023
Copy link to clipboard 
Print this post

Hi
After a 10 years away from an old project I am trying to go back to it and use MMEdit to edit and reload a program into Maximite.  But  I am having issues when LOADING back into Maximite.
Maybe something changed since i last did this… 10 years ago!

I am using MMEdit v 3.8.1 OS Ver 10 on a Window 10 notebook.
It connects to my old Maximite hardware fine.  
I go to MM Chat and all looks fine.
The header of MMChat window shows.” Micromite_MK2_V5.3 chat. COM9:38400”
I can read Maximite type using button.   Result= (v 3.0203)
I can use CTL-C icon to stop my mmBASIC program running.  Fine.
Screen then displays MAXIMITE BASIC version 3.2C, copyright 2011,2012 Geoff Graham
All as previous!
After using CTL-C to stop the existing prog..
I can press NEW and it clears my old program out of the device… but then it gets interesting.
At this point I would previously have my updated program code displayed in the Edit window.
I would just click on LOAD button of MMChat to load it into Maximite.  I would then see the code scroll quickly on the screen. Eventually it would finish loading.  I would save it locally on board.  I would click the RUN icon and it would run and all great.
But now when I click on LOAD,  it scrolls the program lines BUT I can see interspersed lines which seem to be as if the code is being Run or Interpreted…in real time.. and creating Error lines which are being inserted.
I paste a section of the MMChat screen below…captured as scrolling and tryimg to LOAD.
You can see that at various points there are ERROR lines such as ERROR UNKNOWN COMMAND or ERROR CAN NOT FIND LABEL.  Why is something trying to “run” or interpret the lines of code at this moment?
As a consequence it seems that these Error lines also get loaded.  Hence the loaded program will never run.


—————-
> '
> '
> '
> '
> CONFIG VIDEO OFF    'increase available memory
>
> EnableClockOutAtRTC
Error: Unknown command
>
> inpin_PH=1
> inpin_orp=2
> inpin_temp=9
> outpin_PH=19
> outpin_ORP=20
> outpin_PUMP=8
> SetPin inpin_ph,1
> SetPin inpin_orp,1
> SetPin inpin_temp,1
> SetPin outpin_ph,8
> SetPin outpin_orp,8
> setpin outpin_pump,8
> '
> SetPin 3,6,Request_Settings 'p3=MENU button
Error: Cannot find label
> SetPin 4,6,ButtonInterupt   'p4=UP button
Error: Cannot find label
> SetPin 5,6,ButtonInterupt   'p5=DOWN button
Error: Cannot find label
> SetPin 6,6,ButtonInterupt   'p6=END button
Error: Cannot find label
> SetPin 7,6,ButtonInterupt   'p7=SELECT button
Error: Cannot find label
> '
> '
> '      
__________________

Furthermore

An additional observation is that the first line scrolled in response to my LOAD command is AUTOSAVE which creates an Error line UNKNOWN COMMAND
See capture below of the very first section that scrolls on the MMChat screen after pressing LOAD


__________
AUTOSAVE
Error: Unknown command
>’ program version 553
>’ date 4 October 2014
>’ history is as follows
>’
>’
___________

Why am i seeing AUTOSAVE when I am clicking on the LOAD icon?

Its a while since I last did this and clearly things have moved on.
I am using a different Computer and a slightly newer version of MMEdit than previous.
Did I forget to do something?
Is there something that needs turning off to stop this real time execution of code lines which I am just wish to LOAD.
Can anyone help out an old timer!!
Thank you in advance for any replies…
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9133
Posted: 09:16am 25 Apr 2023
Copy link to clipboard 
Print this post

top right of the MMEDIT screen you need to use the dropdown to select Maximite syntax
 
nigelcole
Newbie

Joined: 18/04/2012
Location: United Kingdom
Posts: 2
Posted: 11:58am 25 Apr 2023
Copy link to clipboard 
Print this post

A big thank you Matherp.  That has indeed fixed it!       My wife says to Thank you because I was driving her nuts just banging my head on the table in frustration.   .
 
Print this page


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

© JAQ Software 2024