Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:04 01 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 : PI PICO Picomite strange behavior

Author Message
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 724
Posted: 01:22pm 30 Oct 2022
Copy link to clipboard 
Print this post

Hi,

Picomite with Version 5.0704.

Simple LED Test with:

SetPin GP28, DOUT
Do
Pin(GP28) = 1
 Pause 100
 Pin(GP28) = 0
 Pause 500
Loop

Saved it in Editor eith F1.


1) The Program starts automatically after reboot, why (no option set)
2) If i execute FLASH ERASE ALL and reboot, the LED is still flashing, the Programm is not deletet, still available, visible in Editor.

What is wrong???

THX
Edited 2022-10-30 23:24 by atmega8
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5089
Posted: 01:30pm 30 Oct 2022
Copy link to clipboard 
Print this post

In flash are 7 program slots, as some poor mans filesystem.
These get erased.
The progam running is also in flash, but not in these slots. It can be erased by typing NEW.
The mmbasic is also in flash, but not in these slots.

Volhout
Edited 2022-10-30 23:30 by Volhout
PicomiteVGA PETSCII ROBOTS
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 01:30pm 30 Oct 2022
Copy link to clipboard 
Print this post

F1 issue is known bug in 5.07.04, fixed in latest release candidates of  5.07.05. Flash ERASE ALL does not erase the current program, just the saved flash slots - use NEW for that
 
atmega8

Guru

Joined: 19/11/2013
Location: Germany
Posts: 724
Posted: 01:49pm 30 Oct 2022
Copy link to clipboard 
Print this post

Thamk you, clear tom now.

But why this:

1) The Program starts automatically after reboot, why (no option set)


With
> option list
OPTION COLOURCODE ON
OPTION AUDIO GP18,GP3, ON PWM CHANNEL 1


After executin NEW, the editor is empty but program (blinking Led) ist still running.

also after a reset.
 
Mixtel90

Guru

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

Have you got an external LED connected to GP28 or are you assuming that the on-board LED is GP28? It isn't, and will flash on power up. I know this sounds silly, but I've made similar assumptions myself - and then kicked myself. :)
Edited 2022-10-30 23:57 by Mixtel90
Mick

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

Guru

Joined: 19/11/2013
Location: Germany
Posts: 724
Posted: 02:40pm 30 Oct 2022
Copy link to clipboard 
Print this post

New Situation:

The onboard LED is connected to GPIO25 (Raspberry PI 2020 Schematic)
I erase the Pico with the tool flash_nuke.uf2
The onboard LED is not blinking after providing power.
When i install PicoMiteV5.07.04.uf2 to the PICO, the LED starts blinking.

The Manual says in Page 4:
"When the copy has completed the Raspberry Pi Pico will restart and create a virtual serial port on your computer.computer. The LED on the Raspberry Pi Pico will blink slowly indicating that the PicoMite firmware
with MMBasic is now running."

Now in Editor:

SetPin GP25, DOUT
Do
Pin(GP25) = 1
  Pause 100
  Pin(GP25) = 0
  Pause 500
Loop

Save an RUN, the LED is blinking with my Pattern/Timing.

CTRL+C
Program terminates, LED stays ON.
Starting Editor, the LED begins blinking again as manual Page 4.
F2.... and so on...

Ok, seems to be the the standard as Peter/Geoff prigrammed MMBASIC.


Makes sense, somewhat irritating to me, for 20 Minutes  
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 02:53pm 30 Oct 2022
Copy link to clipboard 
Print this post

You can take full control of GP25 now using OPTION HEARTBEAT DISABLE (I think that's it). After that it's your pin and the heartbeat flash is out of the equation. :)
Edited 2022-10-31 00:54 by Mixtel90
Mick

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

Guru

Joined: 19/11/2013
Location: Germany
Posts: 724
Posted: 03:25pm 30 Oct 2022
Copy link to clipboard 
Print this post

I feel ashame, its all in the Manual on Page 115.

SETPIN GP25, DOUT |
HEARTBEAT
This version of SETPIN controls the on-board LED.
If it is configured as DOUT then it can be switched on and off under
program control.
If configured as HEARTBEAT then it will flash 1s on, 1s off continually
while powered. This is the default state and will be restored to this when the
user program stops running.


That shows what an incredible Job Peter an Geoff have done.

Thank yo so mu ch
Edited 2022-10-31 01:26 by atmega8
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 7937
Posted: 03:33pm 30 Oct 2022
Copy link to clipboard 
Print this post

I think your manual might be newer than mine. I really should get the latest one. lol
Mick

Zilog Inside! nascom.info for Nascom & Gemini
Preliminary MMBasic docs & my PCB designs
 
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