Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 15:23 24 Apr 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 : CMM2: Bug reports

     Page 17 of 17    
Author Message
GregZone
Senior Member

Joined: 22/05/2020
Location: New Zealand
Posts: 114
Posted: 08:30am 20 Jun 2020
Copy link to clipboard 
Print this post

  matherp said  search the forum for "tain.txt"
There is a good benchmark that someone wrote that I use for all SD testing

Okay, I found and downloaded the TA.BAS testing benchmark.

Below are the results using my 64MB DSE SD Card. NORMAL then CONSERVATIVE.

In summary, NORMAL timings:
READ test = 92208.169ms
WRITE test = 113859.135ms

CONSERVATIVE timings:
READ test = 113556.52ms
WRITE test = 131740.223ms

So for NORMAL we have:
READ approx 19% faster
WRITE approx 15% faster

Running on computer 'CMM2 Y NORMAL 64MB DSE SD Card' on 20-06-2020 at 19:58:51
Starting 1,000,000 iterations of empty loop ...
Finished 1,000,000 iterations of empty loop in 1499.627ms or 0.0015 ms per iteration.

Starting reading 100 line file 10,000 times ...
Finished reading 100 line file 10,000 times in 92208.169ms or 0.0922 ms per iteration.

Starting writing 1,000,000 line file ...
Finished writing 1,000,000 line file in 113859.135ms or 0.1139 ms per iteration.

Starting parse 9 strings from 100,000 strings ...
Finished parse 9 strings from 100,000 strings in 23277.765ms or 0.0259 ms per iteration.

Starting extracting the value from a string 1,000,000 times ...
Finished extracting the value from a string 1,000,000 times in 11761.504ms or 0.0118 ms per iteration.

Finished 4,900,000 iterations on computer 'CMM2 Y NORMAL 64MB DSE SD Card' in 242614.928ms or 0.0495 ms per iteration.
===============================================
Running on computer 'CMM2 Y CONSERVATIVE 64MB DSE SD Card' on 20-06-2020 at 20:06:57
Starting 1,000,000 iterations of empty loop ...
Finished 1,000,000 iterations of empty loop in 1480.991ms or 0.0015 ms per iteration.

Starting reading 100 line file 10,000 times ...
Finished reading 100 line file 10,000 times in 113556.52ms or 0.1136 ms per iteration.

Starting writing 1,000,000 line file ...
Finished writing 1,000,000 line file in 131740.223ms or 0.1317 ms per iteration.

Starting parse 9 strings from 100,000 strings ...
Finished parse 9 strings from 100,000 strings in 23288.082ms or 0.0259 ms per iteration.

Starting extracting the value from a string 1,000,000 times ...
Finished extracting the value from a string 1,000,000 times in 11761.541ms or 0.0118 ms per iteration.

Finished 4,900,000 iterations on computer 'CMM2 Y CONSERVATIVE 64MB DSE SD Card' in 281849.499ms or 0.0575 ms per iteration.
===============================================


I could do the same tests for my non-working (at NORMAL timing) SanDisk Ultra 32GB SD card.
But this isn't really telling us any more than the simpler tests I ran above using my own quick & dirty file write timing comparison.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8573
Posted: 08:31am 20 Jun 2020
Copy link to clipboard 
Print this post

GregZone

Please test the attached on normal - it is a hack but let me know


CMM2V5.05.03exp.zip
 
GregZone
Senior Member

Joined: 22/05/2020
Location: New Zealand
Posts: 114
Posted: 08:51am 20 Jun 2020
Copy link to clipboard 
Print this post

  matherp said  GregZone

Please test the attached on normal - it is a hack but let me know

CMM2V5.05.03exp.zip

Done. No change. 32GB SD Card still not working on NORMAL (but works on CONSERVATIVE).  Also, my old 32MB Card still working on both NORMAL & CONSERVATIVE.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8573
Posted: 09:19am 20 Jun 2020
Copy link to clipboard 
Print this post

  Quote  Done. No change


OK thanks, nothing more I can do then, for some reason you appear to have a CPU/motherboard combination which is an outlier in some respect
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 3838
Posted: 10:06am 20 Jun 2020
Copy link to clipboard 
Print this post

Hey folks,

When the dust has settled is there any chance of an executive summary of what the long list of posts about SD cards that has largely gone over my head actually means?

Still learning,

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

Joined: 11/12/2012
Location: United Kingdom
Posts: 8573
Posted: 10:11am 20 Jun 2020
Copy link to clipboard 
Print this post

Executive summary:

Nearly all SDcards will work with the CMM2 in default configuration for nearly all users.

In the event that you have an SDcard that doesn't work, try OPTION SD TIMING CONSERVATIVE
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 3838
Posted: 10:14am 20 Jun 2020
Copy link to clipboard 
Print this post

  matherp said  Executive summary:

Nearly all SDcards will work with the CMM2 in default configuration for nearly all users.

In the event that you have an SDcard that doesn't work, try OPTION SD TIMING CONSERVATIVE




I guess I asked for that. It didn't teach me anything, but thanks anyway  

Tom
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 3838
Posted: 10:21am 20 Jun 2020
Copy link to clipboard 
Print this post

BUG: Can't EDIT files with no extension

This might be a "feature" or something you don't intend to resolve, but ...

You can't use the inbuilt editor for a file with no extension (either from the command-line or the File Manager). It just slaps the ".bas" extension to the filename which usually means it opens an empty file.

This is a problem because it means you have to use a PC manipulate some of the standard files that might accompany an installation, e.g. README, LICENSE and ChangeLog which defacto have no file-extension ... yes I know that some people add one, but the convention is not to.

My recommendation is that the editor first check if the file exists exactly as specified before assuming the user intended for it to have the .bas extension.

Regards,

Tom
Edited 2020-06-20 20:35 by thwill
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8573
Posted: 10:22am 20 Jun 2020
Copy link to clipboard 
Print this post

  Quote  I guess I asked for that. It didn't teach me anything, but thanks anyway


Should have added:

For SDcards that don't work it appears the issue is in initialisation. Once they have been initialised once successfully using the conservative timings, and assuming they are not removed or power cycled, then they can be re-initialised with the normal timings and will continue to work properly with the normal timings.

Because of the way the two different timings are created in the firmware it is completely impossible to initialise the SDcard using the conservative timings but then run it with the normal settings without resetting the processor (this is what setting a permanent option does)

  Quote  You can't use the inbuilt editor for a file with no extension (either from the command-line or the File Manager). It just slaps the ".bas" extension to the filename which usually means it opens an empty file.


I'll put it on the list for a future release
Edited 2020-06-20 20:39 by matherp
 
GregZone
Senior Member

Joined: 22/05/2020
Location: New Zealand
Posts: 114
Posted: 10:38am 20 Jun 2020
Copy link to clipboard 
Print this post

  thwill said  Hey folks,

When the dust has settled is there any chance of an executive summary of what the long list of posts about SD cards that has largely gone over my head actually means?

Still learning,

Tom

Peter may correct me, but from my perspective, and from what I understand from other people’s posts on SD Card experiences, it seems that there’s no logical guideline for what SD Cards (or card speed classes) are likely to be guaranteed to work with the default “NORMAL” SD card timing.

However, if you override the default setting to “CONSERVATIVE” then it appears that this more or less ensures that All SD Cards are supported.

The performance cost of using CONSERVATIVE versus NORMAL appears to be perhaps 15% on write, and perhaps 20% on read.  ie. I imagine not hugely significant for most Users.

Given this, I had suggested that perhaps it would be prudent to make the CONSERVATIVE setting the default, on the basis that the setting that is expected to work for everyone should be the default.
This would avoid lots of new user support issues regarding non-working SD Cards. Advanced users could choose to change the setting if they wanted to see if their SD Card supports the 15% - 20% speed boost.

Well, that was my 2c. YMMV
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 3838
Posted: 11:02am 20 Jun 2020
Copy link to clipboard 
Print this post

Peter, Greg,

Thanks for taking the time to explain.

Tom
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1082
Posted: 07:41pm 21 Jun 2020
Copy link to clipboard 
Print this post

Found one involving boxes and circles drawn off screen. Maybe other shapes too. Pixels seem fine.

If you draw a box or a circle that is entirely off the screen, the edge still appears on screen. For example:
box -100,300,50,50
leaves a line of pixels on the left edge of the screen.

I found this because I was plotting a line of circles and due to a loop ending error, my circles kept going to infinity (and maybe beyond.) In the process, a skid mark was left across the top of the screen.
Visit Vegipete's *Mite Library for cool programs.
 
abraxas
Regular Member

Joined: 16/06/2020
Location: Canada
Posts: 99
Posted: 01:56am 22 Jun 2020
Copy link to clipboard 
Print this post

I believe I spotted a CMM2 Basic bug. SPRITE LOAD “spritefile.spr” appears to mangle sprites in any color mode other than 8 bits.

Code to reproduce:


MODE 3,12
SPRITE LOAD “cmmsprite.spr”,1
SPRITE SHOW 1,0,0,1


Any sprite file I tried came out garbled. Switching the mode to 3,8 made things work. Any graphics mode M that was M,8 worked good and none with the color width higher than 8 did.
 
GregZone
Senior Member

Joined: 22/05/2020
Location: New Zealand
Posts: 114
Posted: 02:01am 22 Jun 2020
Copy link to clipboard 
Print this post

@matherp  I note the just released official 5.05.03 version is dated 19 June, but the current Beta download (CMM2V5.05.03b1s.bin) is dated the day before (18 June).

The 5.05.03 version (Colour_Maximite_2_MMBasic.zip) does appear to have the mm.info(current) & mm.info(path) fixes, although the included changelog only documents up to 5.05.02.

So, am I correct in assuming the current beta (CMM2_Beta.zip) is now outdated by the official 5.05.03 release?

(Well, until you release your first .04 beta, at some point?)
Edited 2020-06-22 12:01 by GregZone
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8573
Posted: 07:40am 22 Jun 2020
Copy link to clipboard 
Print this post

  Quote   believe I spotted a CMM2 Basic bug. SPRITE LOAD “spritefile.spr” appears to mangle sprites in any color mode other than 8 bits.


Are you on the latest version? This bug was fixed fairly recently. If you are please post cmmsprite.spr so I can test as it works for my simple mouse cursor sprite

  Quote  If you draw a box or a circle that is entirely off the screen, the edge still appears on screen. For example:


I've a suspicion all MM do this but haven't checked. I'll look at it in the next beta

  Quote  The 5.05.03 version (Colour_Maximite_2_MMBasic.zip) does appear to have the mm.info(current) & mm.info(path) fixes, although the included changelog only documents up to 5.05.02.

So, am I correct in assuming the current beta (CMM2_Beta.zip) is now outdated by the official 5.05.03 release?


5.05.03 is the official release

The readme.txt is now updated in the download from Geoff's site

Future versions will be beta's of 5.05.04 and can be downloaded from the link on his site (same as the one repeatedly posted on this thread)
Edited 2020-06-22 19:19 by matherp
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 8573
Posted: 10:48am 22 Jun 2020
Copy link to clipboard 
Print this post

Please treat this thread as closed. I'll start a new thread for V5.05.03
 
     Page 17 of 17    
Print this page


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

© JAQ Software 2024