Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 15:45 19 May 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 : Micromite Firmware Update V5.4

     Page 1 of 2    
Author Message
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3167
Posted: 11:42pm 24 May 2017
Copy link to clipboard 
Print this post

There is a new version of the Micromite firmware available for download from http://geoffg.net/micromite.html (scroll to the bottom of the page).

For the standard 28 and 44-pin Micromite there are a number of minor changes including bug fixes and a few new commands. For the Micromite Plus there are many new features including long file name support for the SD card and the ability to draw text sideways, upside down, etc.

One serious bug related to the passing of numeric arguments to subroutines and functions has been fixed and for this reason this upgrade is recommended. All other known bugs have also been fixed (although I am sure that there are still a number of the damned things hiding somewhere).

Details are in the Change Log and the user manuals which are included in the firmware download.

The source, which is available by request from http://mmbasic.com, will be updated soon.

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

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 1995
Posted: 01:27am 25 May 2017
Copy link to clipboard 
Print this post

Thanks for this. Some nice tweaks that I can use immediately... busy weekend coming up
 
KRZ3
Newbie

Joined: 31/12/2014
Location: United States
Posts: 38
Posted: 01:48am 25 May 2017
Copy link to clipboard 
Print this post

Thanks Geoff! One question on the new CPU Sleep interrupt wake option. Would this work if you have a set interrupt on the serial port "COMn: baud, buf, int, intlevel? I would like to have a remote just stay in the sleep state until data comes in and it wakes up. I'm also wondering if this would work with the keypad command and if there is way to set both options? Either incoming data or a keypad press would wake the CPU.

Thanks! Edited by KRZ3 2017-05-26
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9083
Posted: 03:08am 25 May 2017
Copy link to clipboard 
Print this post

[Quote=Geoff]For the Micromite Plus there are many new features including long file name support for the SD card....[/Quote]

Oh WOW! This is an awesome feature to have.




Smoke makes things work. When the smoke gets out, it stops!
 
piclover
Senior Member

Joined: 14/06/2015
Location: France
Posts: 134
Posted: 07:26am 25 May 2017
Copy link to clipboard 
Print this post

Thanks a lot, Geoff !

So far, so good, v5.04.01 works fine for me.
 
sagt3k

Guru

Joined: 01/02/2015
Location: Italy
Posts: 313
Posted: 08:39am 25 May 2017
Copy link to clipboard 
Print this post

Hi Geoff
1) On v5.04.01, when try to load a files returns an error "Error: Not enough memory"

This uSD comes from the previous version and I did not format it.

2) I use a led in pull-up with pin(12) as CS(only a pin) for uSD. Now I note that the led is always activated and has a minor glow, as if there was a pwm. I assume that's because the uSD is always checked. Is this feature correct?
Thanks
sagt3k

Edited by sagt3k 2017-05-26
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1664
Posted: 10:42am 25 May 2017
Copy link to clipboard 
Print this post

Superb change list.
Particularly in respect to the file system & XMODEM commands.

Can see a lot of MM+'s now writing stuff off to log files that are easily retrievable regardless of the devices location.

One typo in the changes log,

[Code]The TIMR START command can now start temperature conversions on an unlimited
number of I/O pins simultaneously[/code]


I was close to having an routine XMODEM working in Basic; close, but far from done,

The time I spent on that exercise is a valuable lesson in appreciation of the effort & time Geoff spends in development & testing each new MMbasic feature.


Cheers

Phil
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2794
Posted: 10:49am 25 May 2017
Copy link to clipboard 
Print this post

Hi sagt3k,

Regarding your second point about the 'glowing' CS LED, I do remember it being explained by Peter that the uSD is always checked - hence the glow would be a result. It is a shame as this LED driving method (originally from kiid I believe) is a neat trick.

Your first point regarding the 'Not enough memory' is a little worrying. What device are you using this on (28pinner maybe)? Have you tried on a 'bigger' device?

Also, what appears when you type MEMORY prior to LOAD...?

WW


For everything Micromite visit micromite.org

Direct Email: whitewizzard@micromite.o
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3167
Posted: 11:09am 25 May 2017
Copy link to clipboard 
Print this post

  KRZ3 said   Thanks Geoff! One question on the new CPU Sleep interrupt wake option. Would this work if you have a set interrupt on the serial port "COMn: baud, buf, int, intlevel? I would like to have a remote just stay in the sleep state until data comes in and it wakes up. I'm also wondering if this would work with the keypad command and if there is way to set both options? Either incoming data or a keypad press would wake the CPU.

No, this will not work. The CPU has to be awake to receive serial data or run a keypad. Also the wakeup pin is only checked once a second so it cannot respond to fast events {unlike the simpler CPU SLEEP version).

Geoff Edited by Geoffg 2017-05-26
Geoff Graham - http://geoffg.net
 
sagt3k

Guru

Joined: 01/02/2015
Location: Italy
Posts: 313
Posted: 11:13am 25 May 2017
Copy link to clipboard 
Print this post

Hi WhiteWizzard

Concerning uSD+LED No problem, I imagined !!
I work PIC32MX470F512H
In the previous version 5.3 the uSD worked very well.
From this version I have this problem.
Here the detail:



Thanks
sagt3k
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3167
Posted: 11:20am 25 May 2017
Copy link to clipboard 
Print this post

  sagt3k said   Hi Geoff
1) On v5.04.01, when try to load a files returns an error "Error: Not enough memory

Damn, something broke in the final build. LOAD does not work.
I will investigate and report back.

Geoff Edited by Geoffg 2017-05-27
Geoff Graham - http://geoffg.net
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3167
Posted: 03:36pm 25 May 2017
Copy link to clipboard 
Print this post

OK, I found the problem and updated the Micromite Plus firmware on my website to V5.04.02 (the standard Micromite firmware is unchanged).

If you downloaded the V5.4 firmware for the Micromite Plus could you please download it again - and don't forget to clear your browser cache.

GeoffEdited by Geoffg 2017-05-27
Geoff Graham - http://geoffg.net
 
crez

Senior Member

Joined: 24/10/2012
Location: Australia
Posts: 152
Posted: 05:48pm 25 May 2017
Copy link to clipboard 
Print this post

Hi all,
I just tried the XMODEM RECEIVE command, but nothing new appeared in the FILES list.
below is a copy/paste from teraterm. What did I do wrong?

> xmodem receive "fgen.bas"
Saved 26146 bytes
> files
A:/pre2015
14175 AUTORUN.BAS
14208 MPP1.BAS
103808 SCREEN.BMP
1024 TEMP.BAS
9 TEST.DAT
25982 TESTSCRN.BMP
0 directories, 6 files
>
 
crez

Senior Member

Joined: 24/10/2012
Location: Australia
Posts: 152
Posted: 06:09pm 25 May 2017
Copy link to clipboard 
Print this post

Further to my last post, after typing EDIT, I find the file has been loaded into memory, not onto the SD card as I expected. I also tried an XMODEM SEND, and the file sent was not the one specified by the filename, but the one in memory.

David
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3167
Posted: 07:07pm 25 May 2017
Copy link to clipboard 
Print this post

Aaagghh, thanks crez. Another last minute bug, the transfer would work if you used
xmodem receive, "fgen.bas"
(with a comma after the word receive).

But that is not the way it should work so I have again updated the firmware on my website to V5.04.03. (clear your browser's cache)

I am also chasing a bug reported by Nathan so there will be at least one more update after this.

Geoff
Geoff Graham - http://geoffg.net
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1664
Posted: 10:38pm 25 May 2017
Copy link to clipboard 
Print this post

Just updated two E100's.

LEDs & Radio buttons needed resizing, no issue.

But my Test Com monitor crashes.

[Code]RUN
[179] Text MM.HRes/40, MM.VRes*11/16, "Flow Rate l/m ", LB,,, RGB(Cyan)
Error: Not enough memory
> memory
Flash:
7K ( 7%) Program (357 lines)
93K (93%) Free

RAM:
4K ( 3%) 47 Variables
98K (95%) General
1K ( 2%) Free
> Print mm.ver
5.0402
>

[/code]

Attached my code as it should run on a bare E100 & just ignore the Coms.2017-05-26_083752_Tabbed_Screen_V1.02_2.zip


Cheers.

Phil.

Edit: Didn't see 5.04.03.

Edited by Phil23 2017-05-27
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1664
Posted: 11:14pm 25 May 2017
Copy link to clipboard 
Print this post

Also noticed when I tried to edit the Pump Controller demo in the editor, that he cursor unexpectedly jumped down to the next line.

I was editing in the areas where the LED & Radio buttons are coded.

Again that was 5.04.02

Phil.
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9083
Posted: 11:20pm 25 May 2017
Copy link to clipboard 
Print this post

Runs OK for me:




Smoke makes things work. When the smoke gets out, it stops!
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9083
Posted: 11:35pm 25 May 2017
Copy link to clipboard 
Print this post

Correction - this DOES throw and error, but you really ARE out of memory:





I can cause this to happen, after touching the FULL DETAIL tab about four times one after another. Something is adding to the size of your variables whenever you call the FULL DETAIL screen.

EDIT: It happens also if you run the program and do nothing - something is gobbling up the memory. If I load one of my other programs into the same E100, it runs just fine, so I THINK this is a coding error. I will have a quick look over your code.Edited by Grogster 2017-05-27
Smoke makes things work. When the smoke gets out, it stops!
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3167
Posted: 11:38pm 25 May 2017
Copy link to clipboard 
Print this post

  Phil23 said  But my Test Com monitor crashes.

Could you try rebooting and see how it goes. There seems to be a subtle interaction between loading a program and this error.

How did you load the program?

Geoff
Geoff Graham - http://geoffg.net
 
     Page 1 of 2    
Print this page
© JAQ Software 2024