Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 06:54 02 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 : MMbasic & picomite

Author Message
foxleyboy
Newbie

Joined: 09/06/2019
Location: United Kingdom
Posts: 28
Posted: 08:02pm 07 Nov 2022
Copy link to clipboard 
Print this post

I presumably have some kind of setting incorrect but when I load even a simple piece of code the MCC comes back with 'Error : SYSTEM I2C not configured'
I am not useing any I2C operations/ports etc, nor have I. So how do I clear this?
Program however seems to run ok!!
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 08:13pm 07 Nov 2022
Copy link to clipboard 
Print this post

Sorry, not enough info.
Use OPTION LIST and tell us what it says.
Which version of MMBasic are you using?
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 08:16pm 07 Nov 2022
Copy link to clipboard 
Print this post

I assume you are using MMEdit and you have setRTC option selected in MMCC.

Do you really mean settime?

Jim
VK7JH
MMedit
 
foxleyboy
Newbie

Joined: 09/06/2019
Location: United Kingdom
Posts: 28
Posted: 12:20pm 08 Nov 2022
Copy link to clipboard 
Print this post

Yes using MMEdit latest version 5. The info on MMCC reads
'target port\COM6:38400 s\picomite settime\ \ setRTC\ nonew\ discon

Roy
 
foxleyboy
Newbie

Joined: 09/06/2019
Location: United Kingdom
Posts: 28
Posted: 05:42pm 08 Nov 2022
Copy link to clipboard 
Print this post

Another worrying thing. It does not always Autorun when the UBS connector is plugged in!
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 07:20pm 08 Nov 2022
Copy link to clipboard 
Print this post

You have told MMCC to set the picomite time, set the RTC time, don't issue NEW before loading your program and then disconnect MMCC from the pico port when finished loading.

If you don't have a RTC connected, remove the setRTC\ option
remove the superfluous \
The discon parameter is missing the trailing \. If you do want to disconnect MMCC after loading the program, add the missing \ or remove discon to save confusion.

If it doesn't AUTORUN when you apply power, do you have OPTION AUTORUN set?
That has nothing to do with MMEdit.

Jim
VK7JH
MMedit
 
foxleyboy
Newbie

Joined: 09/06/2019
Location: United Kingdom
Posts: 28
Posted: 11:34am 09 Nov 2022
Copy link to clipboard 
Print this post

Hi Jim
Excellent! I have corrected the RTC setting etc as you suggested and the Error message 'SYSTEM I2C not configured' has now gone.
I have OPTION AUTORUN ON at the top of the program together with OPTION EXPLICIT and OPTION DEFAULT NONE which come up preloaded on each new file, which I seem to recall is mentioned somewhere in the documentation. However it seems very hit and miss as to whether it Autoruns or not. I havn't worked out yet what the deciding factors are.
Roy
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 12:02pm 09 Nov 2022
Copy link to clipboard 
Print this post

OPTION AUTORUN xx, using the built-in editor anyway, is issued at the command prompt. It's not used within a program.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
foxleyboy
Newbie

Joined: 09/06/2019
Location: United Kingdom
Posts: 28
Posted: 09:53am 10 Nov 2022
Copy link to clipboard 
Print this post

Hi Mick

I have only ever used it at the begining of a program when using the MicroMite in all my previous programs and it has worked everytime. I note that in the Getting Started Manual it says
'This command can be entered at the command prompt OR used in the program and will be remembered even after a power loss and restart.'
So with the picomite does it only work when entered at the command prompt?
Or have I mis-understood something here?
Roy
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 12:01pm 10 Nov 2022
Copy link to clipboard 
Print this post

Good question. :)  I've never used it in a program so you may well be correct. It definitely works from the command line and appears in OPTIONS LIST.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5091
Posted: 01:11pm 10 Nov 2022
Copy link to clipboard 
Print this post

I have no idea about the getting started manual that says

'This command can be entered at the command prompt OR used in the program and will be remembered even after a power loss and restart.'

In the user manual this phrase is not mentioned.

Many options will cause a restart of the system.
In that light be carefull what options can be used in a program.
The volatile options MUST be used in a program (since it is reset after power cycle).
Care must be taken with all permanent options...

Regards,

Volhout
Edited 2022-11-10 23:17 by Volhout
PicomiteVGA PETSCII ROBOTS
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 01:52pm 10 Nov 2022
Copy link to clipboard 
Print this post

I'm not certain that all of the Getting Started manual is still relevant to the PicoMite. Certainly, AUTORUN has now changed as it can now be used to run a program in any of the flash slots, not just the current program. Getting Started contains a lot of useful stuff, but you should always check with the version specific manual.
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10315
Posted: 02:03pm 10 Nov 2022
Copy link to clipboard 
Print this post

Facts

Autorun is a permanent option so setting it writes to the flash memory to save the option. However, setting Autorun does not trigger a reset so it can be used in a program.  Once set it is redundant keep resetting it so it is most sensible to set it once from the command line if required but benign in a program. This is the same in all chip versions of MMbasic

Options are reset with the command OPTION RESET or by installing a new release where the option structure changes and I force a reset or by running a program which causes a system trap (e.g. pokeing something stupid).

As with all these threads, using MMEdit can confuse beginners so it is much better to use teraterm until you are sure what you are doing. That reduces the scope for artefacts confusing things like the OPs' issue with RTC/I2C
 
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