Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 15:37 04 Jul 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 : MM "Unrecognised option" option explicit

Author Message
vk7krj
Newbie

Joined: 15/01/2015
Location: Australia
Posts: 12
Posted: 09:33pm 14 Jan 2015
Copy link to clipboard 
Print this post

Hi, I am building a small timer using a MicroMite, it's slowly getting there- but I have hit a brick wall with Option Explicit and Option Default Integer. The first 3 lines are

option explicit
option default integer
OPTION AUTORUN ON

The autorun works fine, but the other two give me the "Unrecognised option" error.

I also get this error:-

SetPin 1,intl,speech_over,pullup 'Stop button
Error: Invalid syntax

In desperation I even copied & pasted an example of the SetPin line from a (someone elses) working program- it still gave me the same error.

Any help would be greatly appreciated.

Ken, vk7krj


Ken, vk7krj
www.vk7krj.com
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4033
Posted: 09:44pm 14 Jan 2015
Copy link to clipboard 
Print this post

Sounds like an old firmware version.

What version is it?

John
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9586
Posted: 09:48pm 14 Jan 2015
Copy link to clipboard 
Print this post

I would agree with John - sounds like an old firmware version. I remember reading that the option explicit and the pullup on the input pins, were reasonably recent additions to the firmware, so if you have an old firmware, or especially if you are using the MK.I MicroMite based on the PIC32MX150 chip....
Smoke makes things work. When the smoke gets out, it stops!
 
vk7krj
Newbie

Joined: 15/01/2015
Location: Australia
Posts: 12
Posted: 01:31am 15 Jan 2015
Copy link to clipboard 
Print this post

Thanks for the quick replies guys- you were spot-on, it is an early version I bought in June last year. I guess I am going to have to learn to drive my new pickit3 programmer & upgrade the firmware.

Ken, vk7krj.
Ken, vk7krj
www.vk7krj.com
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9586
Posted: 01:46am 15 Jan 2015
Copy link to clipboard 
Print this post

It's easier then you think - I was scared of the PK3 thing for a start - seemed so complicated.

Download and install MPLAB X. Part of that huge programmer package, is the IPE, which is the basic programmer application, which for the most part, is nice and easy to drive and get code into your PIC32.

Let us know if you have any problems - plenty of helpful folk here.

BTW - welcome to the forums.

EDIT: PLEASE NOTE - if you have one of the 1st generation MicroMite's based on the 150 chip(PIC32MX150F128B), then you will find that there are only bug-fix updates for this first chip, as it has now been replaced by the 2nd generation MicroMite based on the 170 chip(PIC32MX170F256B). The practical upshot of all that guff, is that if you ARE using a 150 series chip for your MicroMite, you will not be able to upgrade the firmware to the latest version that supports the new commands you want - you must be using a 170 series chip for that. I hope that makes some kind of sense.Edited by Grogster 2015-01-16
Smoke makes things work. When the smoke gets out, it stops!
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2932
Posted: 01:56am 15 Jan 2015
Copy link to clipboard 
Print this post

Welcome Ken,

Please be aware of which PIC chip you have.
In simple terms you will either have a MX150 or an MX170.

If you have an MX170 (less likely if you purchased your MicroMite in June last year) then you can upgrade to MMBasic v4.6 and gain the benefit of all the software features that have been developed.

However, if you have an MX150 then you can only upgrade to v4.5E. This may not have some of the features you are trying to use so please confirm with the appropriate User Manual (geoffg.net )

The above is given to you as helpful information to potentially save you some head-scratching!!

As Grogster says, let us know if you need any more guidance . . .

WW
 
Lou

Senior Member

Joined: 01/02/2014
Location: United States
Posts: 229
Posted: 08:35am 15 Jan 2015
Copy link to clipboard 
Print this post

Welcome back Wiz,

I hope your vacation was GREAT !!

Lou
Microcontrollers - the other white meat
 
vk7krj
Newbie

Joined: 15/01/2015
Location: Australia
Posts: 12
Posted: 04:37pm 15 Jan 2015
Copy link to clipboard 
Print this post

Again, thanks to all for the help, I would have been really struggling without it.

I have now downloaded & installed the current version of MPlab & used the IPE to update my micromite (after first bricking it- must remember- read FIRST, push buttons SECOND!).

And yes, it is an early one (150) so the project is now on hold until my Mk11 arrives.

Ken.
Ken, vk7krj
www.vk7krj.com
 
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