Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:12 01 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 : Micromite and Micromite Plus Beta 37

     Page 1 of 3    
Author Message
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 04:10pm 15 Oct 2015
Copy link to clipboard 
Print this post

I know that I said that it would be a while before the next beta but a couple of serious bugs surfaced so I thought it best to fix them immediately.

So an updated version (B37) can be downloaded from the usual place: http://geoffg.net/Downloads/Micromite/Micromite_4.7_Beta.zip (clear your browser cache first).

This fixes the "corrupt library" bug and a few more (see the file Changes.txt for the details). Again, my bug list is empty except for the Win10 USB issue.

This version also allows you to use any I/O pin for interrupts including the IRQ pin used by the touch controller.

As before, please let me know if you find an issue.

Thanks,
Geoff
Geoff Graham - http://geoffg.net
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 05:00pm 15 Oct 2015
Copy link to clipboard 
Print this post

That is excellent!

Micromites and Maximites! - Beginning Maximite
 
Zonker

Guru

Joined: 18/08/2012
Location: United States
Posts: 767
Posted: 05:21pm 15 Oct 2015
Copy link to clipboard 
Print this post

Thanks for all your hard work and time spent fine Sir..!!

Will try out the new commands this weekend... (sweet)... Will be loading up the 170 28 pinners too...
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2944
Posted: 08:28pm 15 Oct 2015
Copy link to clipboard 
Print this post

THANKS Geoff.

By the way, in you change log, the last B37 entry reads as:
- With a non SSD1963 LCD using the BACKLIGHT command will now
cause an error.

Hopefully 'now' should be read as 'not' !

I will check this out later today (currently 07:30am).

Thanks again for all your commitment to the MicroMite; it really does keep getting better and better

 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 11:03pm 15 Oct 2015
Copy link to clipboard 
Print this post

Geoff

Thanks for the update. One small change request. Would it be possible to specify whether the card detect pin on the SD card was active high or active low in OPTION SDCARD?

A possible syntax could be OPTION SDCARD CSpin, CDpin, WRpin, H/L, H/L

Many card slots seem to ground the CD pin when the card is removed and leave it floating when it is inserted.

Thanks

PeterEdited by matherp 2015-10-17
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 03:53am 16 Oct 2015
Copy link to clipboard 
Print this post

  matherp said   Geoff

Thanks for the update. One small change request. Would it be possible to specify whether the card detect pin on the SD card was active high or active low in OPTION SDCARD?

A possible syntax could be OPTION SDCARD CSpin, CDpin, WRpin, H/L, H/L

Many card slots seem to ground the CD pin when the card is removed and leave it floating when it is inserted.

Thanks

Peter


That's good thinking! I had to find a micro sd card holder with independent switch connections, which wasn't straight forward.
Micromites and Maximites! - Beginning Maximite
 
Justplayin

Guru

Joined: 31/01/2014
Location: United States
Posts: 328
Posted: 08:05am 16 Oct 2015
Copy link to clipboard 
Print this post

Here is a minor bug. MMBASIC doesn't catch the extra parenthesis.

Dim chars(900)), ASCIIptr(150,2), MsgData(maxbytes)



--Curtis
I am not a Mad Scientist...  It makes me happy inventing new ways to take over the world!!
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 08:10am 16 Oct 2015
Copy link to clipboard 
Print this post

  Justplayin said   Here is a minor bug. MMBASIC doesn't catch the extra parenthesis.

Dim chars(900)), ASCIIptr(150,2), MsgData(maxbytes)



--Curtis


It does. It just saves it in flash for the next time that you forget the parenthesis.


Micromites and Maximites! - Beginning Maximite
 
Justplayin

Guru

Joined: 31/01/2014
Location: United States
Posts: 328
Posted: 08:23am 16 Oct 2015
Copy link to clipboard 
Print this post

  Quote  It does. It just saves it in flash for the next time that you forget the parenthesis.


That's where those unexplained errors come from... Two partial errors make a whole error and may only be revealed at the most inopportune time! It's Murphy's Law, you better know it, because you are going to live it.

--Curtis
I am not a Mad Scientist...  It makes me happy inventing new ways to take over the world!!
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2944
Posted: 09:55pm 16 Oct 2015
Copy link to clipboard 
Print this post

Can someone please check the FILES [fspec$] command for me!

When I use FILES by itself, it mainly works ok (see later).
But with any 'fspec$' specified I get the message:
0 directories, 0 files

I mentioned above that 'FILES' mainly works ok. Sometimes it just 'hangs' with no response.

I have tried different SD cards, and different pins for CS, CD, and WP.

Thanks . . . .

WW
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2944
Posted: 10:49pm 16 Oct 2015
Copy link to clipboard 
Print this post

@Geoffg

Just had the following error message whilst a program was running on B37:
CPU exception #7 (bus error on load or store) at address 0x9D04BF3C
Processor restarted


I had OPTION AUTORUN ON set, and I was browsing the web, so hence didn't see when it happened. But I have a ILI9341 setup on a 64pinner with SPI hardware running in a continuous loop.

Does the above error give you any clue as to what may have triggered it?

Thanks,
WW
 
kiiid

Guru

Joined: 11/05/2013
Location: United Kingdom
Posts: 671
Posted: 01:36am 17 Oct 2015
Copy link to clipboard 
Print this post

Geoff, since the first release of MM+ this has been like a thorn in my b*** and I've always wanted to ask, why is the external crystal needed? The internal FRC in MX470 has 0.9% accuracy by specs and will be good for the USB. Isn't it possible to get rid of the external crystal, probably by an OPTION in order to keep compatibility with what's been done so far?

Another question (sorry, asking a lot recently, but that's because it is getting serious for many practical applications): would there be any possibility ever that a program may self-configure the device with all the needed OPTIONs and GUI CALIBRATE? Probably some function (maybe ISCONF(option id) is a possible choice) which will simply take a numeric parameter indicating the relevant option, and return 0 if that has not been configured, or 1 if it has. Thus the program will be able to find out whether certain options need to be executed only once. Of course they will need be to program executable as well as they are not at the moment.

http://rittle.org

--------------
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2944
Posted: 11:05pm 17 Oct 2015
Copy link to clipboard 
Print this post

@Geoffg

OPTION LIST is very useful. One thing that would be appreciated to be added to the list (albeit not an option!) is CPU speed.

I seem to remember matherp has posted CFunction details to do this but I think it would be a useful addition to incorporate the info into the OPTION LIST output.

Any thoughts . . . .

WW
 
Greg Fordyce
Senior Member

Joined: 16/09/2011
Location: United Kingdom
Posts: 153
Posted: 01:33am 18 Oct 2015
Copy link to clipboard 
Print this post

Page 17, Advanced Features manual.

The description for Font 4 reads "A bold version of font #4".

It should read "A bold version of font #3".
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 03:19am 18 Oct 2015
Copy link to clipboard 
Print this post

Thanks for the comments,

  WhiteWizzard said  in you change log, the last B37 entry reads as:
- With a non SSD1963 LCD using the BACKLIGHT command will now
cause an error.

Hopefully 'now' should be read as 'not' !

No, the change log is correct. Ie, BACKLIGHT only works with the SSD1963.

  matherp said  Would it be possible to specify whether the card detect pin on the SD card was active high or active low in OPTION SDCARD?

I will put it in the next beta. Obviously my exposure to SD card sockets is limited because I have not heard of this requirement before.

  kiiid said  I've always wanted to ask, why is the external crystal needed? The internal FRC in MX470 has 0.9% accuracy by specs and will be good for the USB. Isn't it possible to get rid of the external crystal, probably by an OPTION in order to keep compatibility with what's been done so far?

The problem is that the internal oscillator is NOT accurate enough for USB. Most of the time it will work but in a significant number of cases it will screw up the USB. I tried once to implement an automatic switch to the internal oscillator but that did not work (from memory there is a bug in the PIC32's auto failover). Finally, when designing the MM+ I figured that the MX470 was a complex enough device already (surface mount with many pins) that a crystal was not much of an added complication.

  kiiid said  would there be any possibility ever that a program may self-configure the device with all the needed OPTIONs and GUI CALIBRATE? Probably some function (maybe ISCONF(option id) is a possible choice) which will simply take a numeric parameter indicating the relevant option, and return 0 if that has not been configured, or 1 if it has.

Some people like the current system of saving the display options in flash, some don't. There are some good reasons for the way it is and the pros and cons have been debated quite a few times on this forum. For the moment I am sticking with the current system until I come across something MUCH better.

  Greg Fordyce said   Page 17, Advanced Features manual. The description for Font 4 reads "A bold version of font #4".
It should read "A bold version of font #3".

Thanks Greg and thanks to everyone for the feedback.

Geoff

Geoff Graham - http://geoffg.net
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 04:43pm 18 Oct 2015
Copy link to clipboard 
Print this post

I am having problems configuring my MM+ touch control with beta37

> Micromite Plus MMBasic Ver 4.7 Beta 37
Copyright 2011-2015 Geoff Graham

> OPTION LCDPANEL SSD1963_7, RL, 4
> OPTION TOUCH 18, 21
Error: Pi

CPU exc

CPU exc


2 problems.
1. It is not happy.
2. I am unable to do anything other than re flash the chip to recover.

The same setup is OK on beta32. (I haven't tried it on beta36 yet)
OPTION TOUCH 18, 21, 50 which I normally use and is from the manual, gives the same error.

Jim
VK7JH
MMedit
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 05:10pm 18 Oct 2015
Copy link to clipboard 
Print this post

I don't know of any bug in that area and I have tested it extensively. It might be due to the subtle change in the OPTION LCDPANEL command introduced in B36.

You are using:
OPTION LCDPANEL SSD1963_7, RL, 4

Is the number 4 at the end intended to be the font or the backlight control I/O pin?

The new syntax is:
OPTION LCDPANEL controller, orientation [,LCD-A pin]

The default font has been moved to the OPTION LCDPANEL CONSOLE command.

Geoff
Geoff Graham - http://geoffg.net
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 05:20pm 18 Oct 2015
Copy link to clipboard 
Print this post

  Geoffg said  
You are using:
OPTION LCDPANEL SSD1963_7, RL, 4

Is the number 4 at the end intended to be the font or the backlight control I/O pin?

Geoff

The 4 is for the backlight control.
The LCD works as expected, it's just when I try to configure the TOUCH that I have problems.

Jim

VK7JH
MMedit
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 05:51pm 18 Oct 2015
Copy link to clipboard 
Print this post

My problem was pin 4.
It is used for SPI2 Clock.
By trying the setup commands in a different order, I was able to get a full error message without the continual rebooting.


> OPTION TOUCH 22, 50
> OPTION LCDPANEL SSD1963_7, RL, 4
Error: Pin 4 is reserved on startup
>

Now to find out why I used pin 4 in the first case...

Jim

Edit:
You are right, the 4 would have been the font size.
It would help if the OPTION TOUCH error message had time to display fully before rebooting.

Edited by TassyJim 2015-10-20
VK7JH
MMedit
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2944
Posted: 08:35pm 18 Oct 2015
Copy link to clipboard 
Print this post

@TassyJim

So are you sorted now?
 
     Page 1 of 3    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025