Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 20:42 02 Jul 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 : CMM2: V5.07.00RC1 - Getting closer :-)

     Page 2 of 4    
Author Message
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1127
Posted: 05:46am 10 Jun 2021
Copy link to clipboard 
Print this post

I'm not sure where to put this, since I'm still running an older beta.
Also not sure that it's even a bug, but the output of the following is less than ideal over the console and Tera Term:
> cls : for i = 1 to 100 : ? @(i) i : next

Try the above from the prompt. On the VGA screen, the output is as expected.
With Tera Term, the output doesn't scroll as I would expect, and the first number doesn't even appear. The horizontal positioning in Tera Term is what I would expect - character based.

Change the loop to, say, 10, to see the missing first number - no "1" appears in Tera Term.

This might just be a problem with Tera Term, in which case ignore the above.

edit: Weird, I just quit and re-ran Tera Term and now the numbers scroll as expected, although "1" is still missing.
_
Edited 2021-06-10 15:52 by vegipete
Visit Vegipete's *Mite Library for cool programs.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10181
Posted: 07:41am 10 Jun 2021
Copy link to clipboard 
Print this post

  Quote  I'm not sure where to put this, since I'm still running an older beta.


If you put a pause after the print you will see the 1 does appear but then gets overwritten. It appears teraterm doesn't like a cursor command where the y coordinate is 0. I'll add 1 and put the change into the final release
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5025
Posted: 08:15am 10 Jun 2021
Copy link to clipboard 
Print this post

*deleted*
Edited 2021-06-10 18:18 by Volhout
PicomiteVGA PETSCII ROBOTS
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1864
Posted: 01:49am 14 Jun 2021
Copy link to clipboard 
Print this post

I've just loaded CMM2V5.07.00RC2 14-06-2021. I have a weird problem:

If I type files, I get the file manager, but "Syntax" appears at the top of the screen followed by CMD prompt.

If I send a file to the CMM2, it runs correctly, if I type EDIT, the editor opens, shows the file in edit mode, and then has the same message as the File command.

So can't edit or select anything from file manager.

Anyone running the latest test release notice anything like this?

BTW re-programmed and verified correctly, same error?

Mike
.
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10181
Posted: 07:19am 14 Jun 2021
Copy link to clipboard 
Print this post

Try erase all before programming. Remove battery. Reflash, then after entering start-up params see if fixed
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1864
Posted: 08:03am 14 Jun 2021
Copy link to clipboard 
Print this post

Thanks, I had already erased everything prior to programming, however I had not removed the backup battery, so all I did was remove all power, remove backup and shorted out battery socket and 5v line just for good measure (caps holding a charge),  reinstalled battery and powered up, greeted with initialisation prompts, all good now Editor and Files work.  
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10181
Posted: 08:24am 14 Jun 2021
Copy link to clipboard 
Print this post

Great, now the interesting question is why pause is working on the CMM2 but not the H7 since I copied the fix from the CMM2  
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1864
Posted: 08:59am 14 Jun 2021
Copy link to clipboard 
Print this post

I have a H7V1 and two H7V2 all give the same results with Pause, IE lockup if called too many times in succession with delays above 1.5ms

Out of interest I just now tried using Bitbash on the CMM2 as a delay command, dam that's sweet, perfect pulse timing on the DSO and so simple to implement.
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10181
Posted: 09:02am 14 Jun 2021
Copy link to clipboard 
Print this post

I'll put bitbang on the H7 later this week
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10181
Posted: 09:02am 14 Jun 2021
Copy link to clipboard 
Print this post

I'll put bitbang on the H7 later this week
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1864
Posted: 09:06am 14 Jun 2021
Copy link to clipboard 
Print this post

  Quote  I'll put bitbang on the H7 later this week


       Thank you, so many uses with the nature of the H7.
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3348
Posted: 12:06pm 14 Jun 2021
Copy link to clipboard 
Print this post

  KeepIS said  Out of interest I just now tried using Bitbash on the CMM2 as a delay command, dam that's sweet, perfect pulse timing on the DSO and so simple to implement.

Can you post your code? I'm afraid I have no idea what you're doing or how you're doing it.
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1127
Posted: 07:35pm 14 Jun 2021
Copy link to clipboard 
Print this post

Is this an MMBasic bug?

e = 10
k = 1
do while e
  print e
  if k then do : loop until inkey$ <> ""
  e = e - 1
loop
end

> run
Error in line 3: LOOP has an UNTIL test

According to the manual, this should work.
  Quote  If there are more statements on the line (separated by colons (:) they will also be executed if true or skipped if false.


Change line 5 to
  if k then : do : loop until inkey$ <> "" : endif
and it does work.
Visit Vegipete's *Mite Library for cool programs.
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7820
Posted: 08:06pm 14 Jun 2021
Copy link to clipboard 
Print this post

It also works (on the PicoMite) if changed thus:

 if k then
    do : loop until inkey$ <> ""
 endif

So basically it seems to be looking for an Endif so that the bounds of the Do-Loop can be found.

If you see what I mean....  :)
Edited 2021-06-15 06:10 by Mixtel90
Mick

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

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1864
Posted: 09:58pm 14 Jun 2021
Copy link to clipboard 
Print this post

  lizby said  
  KeepIS said  Out of interest I just now tried using Bitbash on the CMM2 as a delay command, dam that's sweet, perfect pulse timing on the DSO and so simple to implement.

Can you post your code? I'm afraid I have no idea what you're doing or how you're doing it.


The thread below explains why I tried different ways to substitute the Pause command in the CMM2 and ARMH7, the CMM2 is now fixed and hopefully the ARMH7 will follow.

Pause cmd problem

When I get back home I'll post the results using the Bitbang command as an accurate delay command.

Some may be wondering why I don't use a Timer interrupt or other Timer variation, apart from the fact that I have no vacant timer slots left, these introduce other clash issues within the critical multiple pin clock and decode procedures in a big automation project that I'm running on the ARMH7.
.
Edited 2021-06-15 07:59 by KeepIS
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1864
Posted: 12:32am 15 Jun 2021
Copy link to clipboard 
Print this post

I've been away from the CMM2 for a few months, so something may have changed in the current firmware? IE. I'm missing something bleeding obvious!, however after updating to the last test Beta release, I'm loosing options with a power cycle, hopefully not another seniors moment.


Vbat pin is 2.92v which should be fine.

DSO on the vbat pin, no glitch, perfect DC line.  

Time and Date are NOT lost.

Nothing connected to the IO port.

Pin 40 is not at ground potential.

After power cycle:


>  Option List
CURRENT VGA mode 800x600 RGB332
OPTION USBKEYBOARD UK
>


Before power cycle:
> Option List
CURRENT Default mode 12 960x540
CURRENT VGA mode 960x540 RGB332
CURRENT DISPLAY 45,120
OPTION USBKEYBOARD US
OPTION SD TIMING FAST
OPTION RTC CALIBRATE 55
OPTION KEYBOARD REPEAT 600,40
OPTION SEARCH PATH /Test Programs/
>


Mike
.
Edited 2021-06-15 14:02 by KeepIS
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5025
Posted: 06:59am 15 Jun 2021
Copy link to clipboard 
Print this post

@KeppIs:

Are the options lost on every power cycle, or just during firmware update.?
I am running RC1, I can try tonight with exactly your options set (I'll change the path...).

Volhout
PicomiteVGA PETSCII ROBOTS
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10181
Posted: 07:03am 15 Jun 2021
Copy link to clipboard 
Print this post

Try a new battery. Clock will work at a level where memory is lost. If you look at the voltage characteristics of lithium cells 2.92v is basically flat
Edited 2021-06-15 17:09 by matherp
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1864
Posted: 07:56am 15 Jun 2021
Copy link to clipboard 
Print this post

Now 3.3 volts, and exactly the same result?
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
KeepIS

Guru

Joined: 13/10/2014
Location: Australia
Posts: 1864
Posted: 12:52am 16 Jun 2021
Copy link to clipboard 
Print this post

Reprogrammed with an earlier version of FW V5.07.00b24, options are now correctly maintained across any number of power cycles.
.
Edited 2021-06-16 10:52 by KeepIS
NANO Inverter: Full download - Only Hex Ver 8.1Ks
 
     Page 2 of 4    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025