![]() |
Forum Index : Microcontroller and PC projects : MM Plus restart?
Author | Message | ||||
davematt Regular Member ![]() Joined: 27/09/2011 Location: AustraliaPosts: 55 |
Hi all, I have 2 MM Plus mites running 5.04.09 running a counting program that reliably goes for 5 mins exactly and then restarts itself. Problem is, it's not supposed to! Can post the code, but truly, it's nothing but increment a counter and print. Mites are freshly flashed, can see nothing to imply some sort of timeout. Can anyone help? TIA, Dave |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
Try the latest beta. There were a few problems with calling SUBs if that is what you are doing. There were also problems with the USB console if that is what you are using. Jim VK7JH MMedit |
||||
Grogster![]() Admin Group ![]() Joined: 31/12/2012 Location: New ZealandPosts: 9610 |
Yes, or go back to the last STABLE release: 5.04.08 Smoke makes things work. When the smoke gets out, it stops! |
||||
davematt Regular Member ![]() Joined: 27/09/2011 Location: AustraliaPosts: 55 |
![]() Hopefully this shows both code and result... Thanks Jim and Grogster. Above is using 5.04.04. I cant find 5.04.08 in the archive, is it available somewhere else? Will try the latest beta. 2 extra thoughts... This test was on a brand new chip in an adapter socket, no change. Can't see how this didn't emerge earlier, been playing with mm plus for years. Only change my end has been a switch to Win 10. Oh hell... |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
NO problems running the same code here on 5.4.10 beta 13 but I don't use the USB port VK7JH MMedit |
||||
erbp Senior Member ![]() Joined: 03/05/2016 Location: AustraliaPosts: 195 |
I have test run your code on my early style E64 module (without the 1455 USB interface). I did 2 runs - first used an external Microbridge (1455) module to interface the serial console pins to the PC USB cable, the second used the USB cable connected directly to the USB socket on the E64 module. Both cases used an external 5v PSU. Both tests ran over 7 minutes without any hint of a restart and I'm sure they would have just continued running if I hadn't stopped them! My E64 is running firmware version 5.04.08 and my PC is running Window 10 ver 1803. Cheers, Phil. |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3292 |
The problem could be the 10uF capacitor connected to the VCap pin. A faulty VCap has been known to cause intermittent restarts. Powering the MM+ from a PC or USB charger can also cause the same problem. Try using a solid lab supply or three fresh batteries in series. Geoff Graham - http://geoffg.net |
||||
davematt Regular Member ![]() Joined: 27/09/2011 Location: AustraliaPosts: 55 |
Hmmm, not sure if this classifies as solved, but problem was cheap power supply with almost no current reserve at all. Spot on 5 minutes the mite (with nothing else connected!) will draw enough current to drop the supply voltage and crash itself. Any normal quality supply will handle this, just not mine. But I would just love to know what's happening here. Anyone? |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |