Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 08:22 01 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 : VERSION command?

Author Message
kiiid

Guru

Joined: 11/05/2013
Location: United Kingdom
Posts: 671
Posted: 12:36am 24 Jan 2016
Copy link to clipboard 
Print this post

Is there any way to find out which version of MM+ firmware is running from within the program?

http://rittle.org

--------------
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 12:44am 24 Jan 2016
Copy link to clipboard 
Print this post

Yup, the read only variable MM.VER
Geoff Graham - http://geoffg.net
 
kiiid

Guru

Joined: 11/05/2013
Location: United Kingdom
Posts: 671
Posted: 01:09am 24 Jan 2016
Copy link to clipboard 
Print this post

  Geoffg said   Yup, the read only variable MM.VER


Ah... I have missed that one in the docs. Thanks!

http://rittle.org

--------------
 
kiiid

Guru

Joined: 11/05/2013
Location: United Kingdom
Posts: 671
Posted: 05:16am 26 Jan 2016
Copy link to clipboard 
Print this post


PRINT MM.VER says 5.01 on my board, not 5.1...
Is that normal?



http://rittle.org

--------------
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1133
Posted: 07:38am 26 Jan 2016
Copy link to clipboard 
Print this post

  kiiid said   PRINT MM.VER says 5.01 on my board, not 5.1...
Is that normal?


Yes.

From MM Manual p50
  Quote  The version number of the firmware in the form aa.bbcc where aa is themajor version number, bb is the minor version number and cc is the revision
number (normally zero but A = 01, B = 02, etc).


Regards
Michael

EDIT:
BTW.
Is there already a way to do a (soft-)reset? Something like CPU RESTART but with the startup banner.Edited by twofingers 2016-01-27
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 03:14am 27 Jan 2016
Copy link to clipboard 
Print this post

  twofingers said  Is there already a way to do a (soft-)reset? Something like CPU RESTART but with the startup banner.

No, not that I can think of. But CPU RESTART does the same thing as cycling the power (except for the banner).
Geoff Graham - http://geoffg.net
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1133
Posted: 04:19am 27 Jan 2016
Copy link to clipboard 
Print this post

@Geoff,

thanks for clarifying this!

There is also no "unofficial code" for this purpose known? Eg something like a unexpected error which leads to a reset.

Michael
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 04:56am 27 Jan 2016
Copy link to clipboard 
Print this post

No, that is trapped on startup and an error message is displayed instead of the banner.

Why is the banner so important?
Geoff Graham - http://geoffg.net
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 05:07am 27 Jan 2016
Copy link to clipboard 
Print this post

Only way i can think of is to connect a pin to MCLR and drive it low. It will cost you a pin, but it will certainly work.

Oh,wait. What about WATCHDOG 1?
Edited by MicroBlocks 2016-01-28
Microblocks. Build with logic.
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1133
Posted: 05:16am 27 Jan 2016
Copy link to clipboard 
Print this post

  Geoffg said  Why is the banner so important?

That's nothing I cannot live with. But I would prefer to see the banner after a reset. Makes the status more clearly - for me!
I'm often using more than one MM (different MMBasic versions) at the same time.

Michael
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1133
Posted: 05:23am 27 Jan 2016
Copy link to clipboard 
Print this post

  MicroBlocks said   Only way i can think of is to connect a pin to MCLR and drive it low. It will cost you a pin, but it will certainly work.

Oh,wait. What about WATCHDOG 1?
"connect a pin to MCLR and drive it low.": that's a HARDreset. I use that often.

"WATCHDOG 1" gives you
  Quote  Watchdog timeout
Processor restarted


Thanks MB.

Michael

Edit
I would prefer a "verbose mode" for the cpu restart command (CPU RESTART V). Edited by twofingers 2016-01-28
 
Print this page


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

© JAQ Software 2024