Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:13 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 : CMM2: V5.06.00RC1

     Page 3 of 3    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 07:41pm 12 Dec 2020
Copy link to clipboard 
Print this post

  Quote  The COM3 interrupt issue is fixed but Xmodem still presents an error "Serial Console Disabled" when trying to operate over COM3 when in OPTION CONSOLE SCREEN mode.


The port has to be open and you have to specify the com port in the xmodem call

open "com3:115200" as #1
xmodem s "file",3


works perfectly for me
 
frnno967
Senior Member

Joined: 02/10/2020
Location: United States
Posts: 104
Posted: 08:28pm 12 Dec 2020
Copy link to clipboard 
Print this post

  matherp said  
  Quote  The port has to be open and you have to specify the com port in the xmodem call


My apologies, yes it is working now. Good to go!

Thank you.
Jay Crutti: Ham Radio Operator, K5JCJ. Computer Enthusiast. Musician. Engineer.
 
siwypiotr

Senior Member

Joined: 18/08/2020
Location: Poland
Posts: 127
Posted: 08:42am 13 Dec 2020
Copy link to clipboard 
Print this post

Hi

I have some issues with this firmware. Previously I was using CMM2V5.05.06RC7 without any issues, when I flashed CMM2V5.06.00RC5, Maximite asks for keyboard layout and time settings, when I finish setting it up it reboots and Im back in configuration again.

Do You know what can be the reason?
Edited 2020-12-13 18:47 by siwypiotr
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 08:49am 13 Dec 2020
Copy link to clipboard 
Print this post

Time and date have to be valid and the firmware performs checks on other options to check for corruption. Erase all flash before flashing the new firmware and enter a valid date (>2018)
 
siwypiotr

Senior Member

Joined: 18/08/2020
Location: Poland
Posts: 127
Posted: 09:03am 13 Dec 2020
Copy link to clipboard 
Print this post

  matherp said  Time and date have to be valid and the firmware performs checks on other options to check for corruption. Erase all flash before flashing the new firmware and enter a valid date (>2018)


You have remote access to my Maximite and spy on me now? You are correct, to be faster I was pressing 1111111.... during setup.

Entering correct date solved the problem.

Thank You very much for help!
Edited 2020-12-13 19:06 by siwypiotr
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 12:53pm 13 Dec 2020
Copy link to clipboard 
Print this post

Please download V5.06.00RC6
http://geoffg.net/Downloads/Maximite/CMM2_Beta.zip

This includes the extension of use of com3 to include interrupts and xmodem
It fixes a bug in the INC command
It fixes a bug  in LOAD FONT when the font files is an exact multiple of 256 characters long.

In addition there is a minor change to LOAD SPRITE and GUI CURSOR LOAD in colour depths 8 and 16
In both cases specifying a colour of 0 will translate to NOTBLACK. A space character translates to BLACK. This allows you to have non-transparent black in sprites and cursors loaded this way so that commands like BLIT will respect the "transparency"

Note ARMCFunctions.h is updated to Version 1.5. This version must be used for building CFunctions with V5.06.00 RC5 and above
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 01:19pm 13 Dec 2020
Copy link to clipboard 
Print this post

  matherp said  Please download V5.06.00RC6...


INC bug is fixed.

Welcome Tape (v0.5) now fails to launch its splash screen:
Error in splash.inc line 31: Address


And that line is:
Const fake_black = peek(byte MM.INFO(PAGE ADDRESS 2) + 200 * MM.HRES)


Please advise what has changed,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 01:34pm 13 Dec 2020
Copy link to clipboard 
Print this post

There was some sort of corruption in the file - please download again and also test mandlebrot again
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 02:02pm 13 Dec 2020
Copy link to clipboard 
Print this post

  matherp said  There was some sort of corruption in the file - please download again and also test mandlebrot again


Thanks Peter, looks good to me including Mandelbrot Explorer, hopefully I will have time to test more thoroughly during the afternoon.

I have noticed one new issue that I believe wasn't occuring until relatively recently:

Colour Maximite 2
MMBasic Version 5.06.00RC6
Copyright 2011-2020 Geoff Graham
Copyright 2016-2020 Peter Mather

> list "bug4.bas"
Print Mm.CmdLine$

> list "runbug4.bas"
Run "/bug4.bas"

> run "/bug4.bas"


> run "runbug4.bas"
'|1


What's the '|1 all about?

Also, and this may be long standing and possibly even by design:

RUN, "foo"


Tries to run the program "foo.bas" instead of running the current program with Mm.CmdLine$ = "foo".

Neither of these issues is currently a showstopper for me.

Thanks,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
epsilon

Senior Member

Joined: 30/07/2020
Location: Belgium
Posts: 255
Posted: 02:12pm 13 Dec 2020
Copy link to clipboard 
Print this post

It looks like the keycode returned by KEYDOWN(1) for shift+tab has changed since 5.05 firmware.
In V5.05 KEYDOWN(1) returns the value 9 when pressing shift+tab (same as tab). In V5.06.00RC5 the returned value is 159.

I don't know if any other key combos are affected as well.
I'm using OPTION USBKEYBOARD FR
Epsilon CMM2 projects
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 442
Posted: 03:56pm 13 Dec 2020
Copy link to clipboard 
Print this post

  thwill said  

Also, and this may be long standing and possibly even by design:

RUN, "foo"


Tries to run the program "foo.bas" instead of running the current program with Mm.CmdLine$ = "foo".

Neither of these issues is currently a showstopper for me.

Thanks,

Tom


In the manual, it looks like for the command RUN, the filename isn't optional. In other words there's no default for it. If the command was listed as

RUN [file$] [,cmdline]

then your example should work but it's merely listed as

RUN file$

with a separate line for RUN file$,cmdline$

I think it would be easier to show it as

RUN file$ [, cmdline$]
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 08:51pm 13 Dec 2020
Copy link to clipboard 
Print this post

  epsilon said  It looks like the keycode returned by KEYDOWN(1) for shift+tab has changed since 5.05 firmware.
In V5.05 KEYDOWN(1) returns the value 9 when pressing shift+tab (same as tab). In V5.06.00RC5 the returned value is 159.

I don't know if any other key combos are affected as well.
I'm using OPTION USBKEYBOARD FR


I still get 159 for shift-tab with OPTION USBKEYBOARD US.
My keyboard is a crazy HP one with a few odd keys but shift-tab is good.

Jim
VK7JH
MMedit
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 10:48pm 13 Dec 2020
Copy link to clipboard 
Print this post

This was implemented recently

SHIFT TAB gives 159
SHIFT DEL gives 160

Allows the editor to use these as different functions

Current codes are:


Keyboard Key Key Code
(Hex) Key Code (Decimal)
DEL 7F 127
Up Arrow 80 128
Down Arrow 81 129
Left Arrow 82 130
Right Arrow 83 131
Insert 84 132
Home 86 134
End 87 135
Page Up 88 136
Page Down 89 137
Alt 8B 139
F1 91 145
F2 92 146
F3 93 147
F4 94 148
F5 95 149
F6 96 150
F7 97 151
F8 98 152
F9 99 153
F10 9A 154
F11 9B 155
F12 9C 156
PrtScr/SysRq 9D 157
PAUSE/BREAK 9E 158
SHIFT_TAB 9F 159
SHIFT_DEL A0 160
 
jirsoft

Guru

Joined: 18/09/2020
Location: Czech Republic
Posts: 533
Posted: 10:57pm 13 Dec 2020
Copy link to clipboard 
Print this post

I didn't know, how nice can SHIFT DEL (160) help me in TUIinput, very nice... (and of course, in EDITOR i'ts SUPER!!!)

Thanks Peter!
Jiri
Napoleon Commander and SimplEd for CMM2 (GitHub),  CMM2.fun
 
NPHighview

Senior Member

Joined: 02/09/2020
Location: United States
Posts: 203
Posted: 11:10pm 13 Dec 2020
Copy link to clipboard 
Print this post

Peter - another masterpiece with RC6 - thank you!  

My code runs 35% faster than RC2 with no optimization.  I'll play with my Conway's Life program to use INC statements and see just how much faster it'll go.

Now, to learn the techniques for embedding C / Assembler.

Thanks again!

- Steve
Live in the Future. It's Just Starting Now!
 
epsilon

Senior Member

Joined: 30/07/2020
Location: Belgium
Posts: 255
Posted: 09:18am 14 Dec 2020
Copy link to clipboard 
Print this post

  matherp said  This was implemented recently

SHIFT TAB gives 159
SHIFT DEL gives 160

Allows the editor to use these as different functions

Current codes are:


Keyboard Key Key Code
(Hex) Key Code (Decimal)
DEL 7F 127
...
Alt 8B 139
...


Thanks. More resolution in INKEY$ is a good thing but it does break backward compatibility with existing code using KEYDOWN(1) and KEYDOWN(7) to determine SHIFT+TAB.
Not a big deal, I can if-else around it with MM.INFO(VERSION) of course, but worth mentioning.

Btw, I'm surprised to see Alt in that list, and it doesn't seem to work, so maybe it's just a typo. I don't think modifiers should get key codes.
The other key codes are the same as is 5.05.
Epsilon CMM2 projects
 
     Page 3 of 3    
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