![]() |
Forum Index : Microcontroller and PC projects : MMbasic & picomite
Author | Message | ||||
foxleyboy Newbie ![]() Joined: 09/06/2019 Location: United KingdomPosts: 28 |
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 KingdomPosts: 7937 |
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: AustraliaPosts: 6283 |
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 KingdomPosts: 28 |
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 KingdomPosts: 28 |
Another worrying thing. It does not always Autorun when the UBS connector is plugged in! |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
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 KingdomPosts: 28 |
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 KingdomPosts: 7937 |
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 KingdomPosts: 28 |
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 KingdomPosts: 7937 |
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: NetherlandsPosts: 5091 |
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 KingdomPosts: 7937 |
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 KingdomPosts: 10315 |
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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |