Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:33 10 May 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 : PicoMite V6.00.02 betas

     Page 15 of 23    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 12:54pm 11 Feb 2025
Copy link to clipboard 
Print this post

b10 USB variants updated to fix a memory bug - no version change

https://geoffg.net/Downloads/picomite/PicoMite_Beta.zip
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1526
Posted: 01:15pm 11 Feb 2025
Copy link to clipboard 
Print this post

Hi Peter,
I miss the option in the Picomites to insert small files in the editor with F7, like in CMM2. I found it very useful.
CMM2 manual p23:
  Quote  F7 Will prompt for a file name and will insert the text from that file into the editor at the current cursor position.

Have you ever considered implementing this in PicoMite? I know that there is the option to attach a file with AUTOSAVE APPEND. But that is only an inadequate replacement.
If you don't plan on doing that, I will write a small Basic tool for it.
Regards
Michael
causality ≠ correlation ≠ coincidence
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 01:27pm 11 Feb 2025
Copy link to clipboard 
Print this post

The PicoMite editor is basically the same as the original Micromite and does not lend itself to these sort of changes. The editor in the CMM2 is completely different and uses more memory than is available on the PicoMite. In other words, no, the editor will pretty much stay as-is until I get a chip that addresses proper parallel external memory like the STM32
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1526
Posted: 01:42pm 11 Feb 2025
Copy link to clipboard 
Print this post

Thanks for the quick reply!

Michael
causality ≠ correlation ≠ coincidence
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 09:54pm 11 Feb 2025
Copy link to clipboard 
Print this post

b11 posted
https://geoffg.net/Downloads/picomite/PicoMite_Beta.zip

Fixes onewire/tempr functionality  when using parasitic connection
Edited 2025-02-12 07:55 by matherp
 
mozzie
Senior Member

Joined: 15/06/2020
Location: Australia
Posts: 109
Posted: 07:11am 14 Feb 2025
Copy link to clipboard 
Print this post

Thanks Peter, I think I threw a DS1822 into my "PicoMite travel box" that travels with me and will give it a try.

I only wish multi-million dollar companies could have response times like this when something doesn't work, would certainly make my life easier  

Regards,
Lyle.
 
electricat

Senior Member

Joined: 30/11/2020
Location: Lithuania
Posts: 295
Posted: 09:25am 14 Feb 2025
Copy link to clipboard 
Print this post

From manual: MM.INFO$(SDCARD)  Returns the status of the SD Card. Valid returns are: DISABLED, NOT PRESENT, READY, and UNUSED

But, USB/HDMI/RP2350, 02b11

status$=MM.Info(SDCARD) returns ->Ready, Not present (Sentence case)

So 02b11 should give upper case (or user manual should be Sentence case)
(Better practice for user of course would be LCASE$(MM.INFO$(SDCARD)) returns to be safe in any case   )
Edited 2025-02-14 19:38 by electricat
My MMBasic 'sand box'
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2927
Posted: 04:18pm 14 Feb 2025
Copy link to clipboard 
Print this post

@Peter,

Three questions if I may - embedded below within my use-cases.


Currently working with Pimoroni Pico Plus 2 (ie RO2350B) with HDMI+USB firmware b11. This is on a OLIMEX PC board. Also have unpowered 4-way hub, RTC, I2S module, and usb-to-serial module to console in from laptop too (TeraTerm)

Hardware wise, everything is happily working as expected. Resolution is 1280.

The only thing plugged into the hub is a USB keyboard.

On power up, I see the ‘MMBasic welcome message’ on TeraTerm, but not on HDMI monitor.  
QUESTION 1:  Is the welcome message meant to be on HDMI too?

About a second later (after power up) the system reports any USB devices plugged into the hub.
Channel 1 correctly shows keyboard, but channel 3 is reporting an unknown device (with pid and vid values).
QUESTION 2: I remember seeing a post about this before, but is this expected behaviour?

If I have a program running that uses a ‘large font’ (such as a large format clock on the HDMI screen), AND if I set Option Autorun On, then on power-up, I correctly see my clock (in large font), but then about a second later, I see the USB devices listed also in large font (which totally messes up the time shown on the screen).
QUESTION 3: is there a way to suppress the ‘usb device list’ so it doesn’t show at all?


Thanks in advance for any clarification…
 
mozzie
Senior Member

Joined: 15/06/2020
Location: Australia
Posts: 109
Posted: 02:21pm 15 Feb 2025
Copy link to clipboard 
Print this post

G'day Peter,
Can happily report that DS1822 parasitic mode working here both with TEMPR and ONEWIRE functions  

Thanks again.
Regards,
Lyle.
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2927
Posted: 06:17pm 15 Feb 2025
Copy link to clipboard 
Print this post

Have a Pico Plus 2 (RP2350B) with b11  HDMI USB firmware installed. Mouse and keyboard attached to hub (and both are recognised by the Pico).

Keyboard working as it should do; but mouse doesn’t seem to be doing anything. The manual implies there is nothing else to set up for the mouse however, there is no highlighted character in the Editor as implied by the manual.

Is there anything I need to set to enable the mouse??
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 07:15pm 15 Feb 2025
Copy link to clipboard 
Print this post

Definitely works. What mode and resolution - it only works in mode 1 as previously explained
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2927
Posted: 07:29pm 15 Feb 2025
Copy link to clipboard 
Print this post

Thanks Peter for confirming this.

However, you have previously mentioned that the editor switches to mode 1 regardless of current mode (although I have seen different font sizes in editor dependant upon mode changes at the command prompt).

I do have the command prompt auto set to mode 3 at power up (OPTION DEFAULT MODE 3) but obviously it can be changed at command prompt too. Typing MODE 1 at command prompt, then EDIT to start the editor makes no difference.

DEVICE USB x and y return positive -integer values but they don’t change.

Don’t doubt it works, just need to know if there were a recent firmware change that needs (for example) an option set.

Will try other mice too just in case…..


 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 08:11pm 15 Feb 2025
Copy link to clipboard 
Print this post

If you have the default mode 3 then the mouse won't work in the editor. Mode only switches with MM.HRES < 512. As previously stated leave defaults as-is and everything works, anything else and you are on your own
Edited 2025-02-16 06:12 by matherp
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2927
Posted: 08:40pm 15 Feb 2025
Copy link to clipboard 
Print this post

I am confused by some contradictions and now need clarification.

What does OPTION DEFAULT MODE do/set?
My understanding is that on power-up it will switch to this mode (with the exact pixel resolution dependent on OPTION RESOLUTION). My understanding is that this mode can be changed by using MODE x at command prompt.

What does MODE do at the command prompt?
My understanding is that this will switch to mode x until changed either at the command prompt or changed from the program (and upon exit of a program, the mode will remain as last set by the program)

What mode does the EDITor use?
You have previously mentioned it switches to mode 1 but if this is the case, why mention above that my default mode being set to 3 will mean I won’t see the mouse highlighter?

I need to ensure that I understand the above fully as  currently I am performing thorough testing which is required prior to several magazine articles I am writing in the very near future.
It is vital I get a stable hardware setup, understand any limitations (hardware and software), and am aware of any ‘gotchas’
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2927
Posted: 08:55pm 15 Feb 2025
Copy link to clipboard 
Print this post

Think I need to ask slightly differently:

With having set OPTION RESOLUTION 1280, is there anything I need to do/change/set to get to see the mouse-highlight in the editor?
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4854
Posted: 09:56am 17 Feb 2025
Copy link to clipboard 
Print this post

@Peter,

Martin.H is working on a Donkey Kong game for PicoMite(2040 VGA).
His code is working on 5.09.00rc5 and 6.00.01. The error message is "Not Enough Heap Memory".

I would like to debug what is causing it.
Is there anything you can advise we could do ?
What direction to work.

The game uses sprites, blit, play mod files and flac files (not at the same time). Uses framebuffer L (and N). There are not that many variables that I would worry them eating heap. The only thing I noticed is that he uses 1 sprite that is often re-programmed (same dimensions (48x36), differen data).

Thank you for your advise,

Volhout

P.S. in his original game the error message is with a PLAY FLAC "filename" after a PLAY STOP, but when commenting parts of the game out, the error happens at a SPRITE SHOW. So it is a generic heap problem I guess.
Edited 2025-02-17 22:16 by Volhout
PicomiteVGA PETSCII ROBOTS
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4854
Posted: 05:58pm 17 Feb 2025
Copy link to clipboard 
Print this post

@Peter,

About 6.00.02b11 for RP2040 VGA/PS2
I have narrowed the "Not enough Heap memory" down to

SPRITE SHOW n,x,y,layer,options

With options=0 all works okay,
with options=1 the heap error shows.

The sprite is 48x36 (not square), this is horizontal mirroring.

Anything you can do about it ? Martin says it worked in 6.00.01.

Thank you,

Volhout
PicomiteVGA PETSCII ROBOTS
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 06:14pm 17 Feb 2025
Copy link to clipboard 
Print this post

Is it failing to free memory or have you just run out? Use memory command to check for a leak
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4854
Posted: 07:01pm 17 Feb 2025
Copy link to clipboard 
Print this post

RUN
Program:
 23K (24%) Program (828 lines)
  2K ( 1%) 1 Embedded C Routine
 71K (75%) Free

Saved Variables:
 16K (100%) Free

RAM:
 13K (10%) 31 Variables
 82K (65%) General
 29K (25%) Free
[423] FRAMEBUFFER write l:Sprite show 1,x,y+yo,l,mir
Error : Not enough Heap memory



To be honest I was surprised it uses 82k generic memory (but it is playing FLAC at that moment, and has a framebuffer L).

Volhout
Edited 2025-02-18 05:03 by Volhout
PicomiteVGA PETSCII ROBOTS
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10066
Posted: 09:15pm 17 Feb 2025
Copy link to clipboard 
Print this post

You have to use memory repeatedly in the program to see if there is a memory leak when repeatedly calling sprite show. It's also best not to have compound lines to allow the memory garbage collection to work better
 
     Page 15 of 23    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025