![]() |
Forum Index : Microcontroller and PC projects : PI PICO Picomite strange behavior
Author | Message | ||||
atmega8![]() Guru ![]() Joined: 19/11/2013 Location: GermanyPosts: 724 |
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: NetherlandsPosts: 5089 |
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 KingdomPosts: 10310 |
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: GermanyPosts: 724 |
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 KingdomPosts: 7937 |
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: GermanyPosts: 724 |
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 KingdomPosts: 7937 |
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: GermanyPosts: 724 |
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 ![]() Edited 2022-10-31 01:26 by atmega8 |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 7937 |
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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |