Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:41 30 Nov 2024 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(VGA) V5.07.07 betas - bug fixes + focus on PIO

     Page 8 of 16    
Author Message
ville56
Regular Member

Joined: 08/06/2022
Location: Austria
Posts: 96
Posted: 09:40am 07 Feb 2023
Copy link to clipboard 
Print this post

just checked ... problem persists, no change in behavior. Inerestingly the workaround with 'setpin GPn,off' does not work for me. Tried some variations and other pins, no success.

Regards,
Gerald
                                                                 
73 de OE1HGA, Gerald
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9147
Posted: 09:48am 07 Feb 2023
Copy link to clipboard 
Print this post

Please describe exactly the sequence of events (after restart?, first run only? all the time?) and provide your program or any other info so I can try and replicate
 
BishopXXL
Newbie

Joined: 13/01/2019
Location: Germany
Posts: 18
Posted: 10:36am 07 Feb 2023
Copy link to clipboard 
Print this post

Hi Peter,

I'm sorry, but the LED doesn't work here either.
I measured the current at the output GP9 with a 1K2 resistor.
B14 = 0.06mA B10 = 2.6mA
I also did a clear flash. (and Restart)

SetPin GP9, DOUT
Pin(GP9) = 1
Do :Loop

Cheers, Thomas
 
ville56
Regular Member

Joined: 08/06/2022
Location: Austria
Posts: 96
Posted: 10:40am 07 Feb 2023
Copy link to clipboard 
Print this post

- the error is thrown all the time, tried the following to narrow it
 o reloaded flash image
 o reset options
 o power recycle

- the statements, condensed to a minimum, are

 setpin gp1,gp0,com1
 Open "com1:9600" As #1

 o setpin exits with mm.errno 0. But there is no way for me to check if the pins have been assigned properly.

 o Open "com1... throws an error 16, "Pin not set for com1"

Also tried other valid pin pairs for com1, same effect. Tried also to release pins with "setpin gp0/gp1, off" but this did not help either.

Regards,
Gerald
                                                                 
73 de OE1HGA, Gerald
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9147
Posted: 11:04am 07 Feb 2023
Copy link to clipboard 
Print this post

Try this one



PicoMite.zip
 
ville56
Regular Member

Joined: 08/06/2022
Location: Austria
Posts: 96
Posted: 11:26am 07 Feb 2023
Copy link to clipboard 
Print this post

OK, this build has solved the issue for me.

Many thanks Peter. I always wonder how fast you are with coming up with a bugfix. Great Job !!

Many thanks,
Gerald
                                                                 
73 de OE1HGA, Gerald
 
BishopXXL
Newbie

Joined: 13/01/2019
Location: Germany
Posts: 18
Posted: 11:55am 07 Feb 2023
Copy link to clipboard 
Print this post

Hi Peter,

yes great, now it works - thank you very much !!!

Thomas
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9147
Posted: 12:26pm 07 Feb 2023
Copy link to clipboard 
Print this post

V5.07.07b15

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

Fixes bug in SETPIN
Adds support for 128x128 ST7735S display from Waveshare
use: OPTION LCDPANEL ST7735S_W, orientation, dcpin, resetpin, cspin [,backlightpin]

e.g.

OPTION LCDPANEL ST7735S_W, LANDSCAPE,GP8,GP12,GP9,GP13
Edited 2023-02-07 22:33 by matherp
 
Pluto
Guru

Joined: 09/06/2017
Location: Finland
Posts: 359
Posted: 05:27pm 08 Feb 2023
Copy link to clipboard 
Print this post

@matherp
version b15 did not solve the problem addressed earlier by volhout.
After power up all is ok, but after running the Logic Analyzer "files" generate an error.
PicoMiteVGA MMBasic Version 5.07.07b15
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION KEYBOARD IT
OPTION CPUSPEED (KHz) 378000
OPTION DEFAULT MODE 2
OPTION DISPLAY 60, 106
OPTION DEFAULT FONT 7, 1
> memory
Program:
 18K (15%) Program (704 lines)
 82K (85%) Free

RAM:
  0K ( 0%) 0 Variables
 10K ( 7%) General
122K (93%) Free
> files
Error : Not enough memory
>  




/Pluto
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9147
Posted: 09:59am 09 Feb 2023
Copy link to clipboard 
Print this post

Just run LA_21 on b15 ctrl-C out and edit no issue. Need more info
 
Pluto
Guru

Joined: 09/06/2017
Location: Finland
Posts: 359
Posted: 10:48am 09 Feb 2023
Copy link to clipboard 
Print this post

Thanks @matherp!
I didn't know that I had to first do "EDIT" before "Files". (Must have missed/misunderstood some earlier instructions.)
This seems to be a special case?

Normally "Files" works w/o going through "EDIT" after a program is run and stopped.

/Pluto
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4262
Posted: 01:52pm 09 Feb 2023
Copy link to clipboard 
Print this post

@Pluto,

If you CTRL-C out of a program, all variables are kept. This allows you to debug by printing a variable. You know it's value when the program was stopped.

The variables storage is cleaned by restarting the program, or edit'ing. Then all RAM is free to store the SD card information (which can be large in case of an SD card).

That is why EDIT helps.
CPU RESTART also clears the system (and does even more).

Volhout
PicomiteVGA PETSCII ROBOTS
 
Pluto
Guru

Joined: 09/06/2017
Location: Finland
Posts: 359
Posted: 03:09pm 09 Feb 2023
Copy link to clipboard 
Print this post

Thanks Volhout!
If I understand this correct, it could be the ringbuffer in LA that eats too much memory for the "Files" to work as usual.
Please note that this issue is not a problem for me; just wanted to understand if there is a bug behind it. (...I am probably the bug myself )
/Pluto
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9147
Posted: 06:59pm 10 Feb 2023
Copy link to clipboard 
Print this post

V5.07.07b16

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


Added capability for inverted uart signals - use 'inv' in the OPEN command (same as MM2)
Improved memory allocation for PIO MAKE RING BUFFER
At the command prompt ONLY you can now use A: or B: to switch disk as well as DRIVE "A:" and DRIVE "B:"
FILES command now deletes variable to avoid "Out of Memory" error
New command: AUTOSAVE APPEND ' appends the incoming serial data stream to the existing program. Perfect for adding library routines to new code
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4262
Posted: 09:12pm 10 Feb 2023
Copy link to clipboard 
Print this post

   
PicomiteVGA PETSCII ROBOTS
 
Pluto
Guru

Joined: 09/06/2017
Location: Finland
Posts: 359
Posted: 11:41am 11 Feb 2023
Copy link to clipboard 
Print this post

Thanks Matherp!
/Pluto
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9147
Posted: 06:35pm 11 Feb 2023
Copy link to clipboard 
Print this post

V5.07.07b17

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

Since we now have two disks available I though I'd better improve the ability to work with files in bulk


Wildcards for copy and kill
As in the files command * matches multiple characters and ? matches a single character.

COPY fname$ to dirname$ ' the bulk copy is triggered if fname$ contains one or more  '*' or a '?' characters
dirname$ must be a valid directory name and should NOT end in a slash character

KILL fname$ [,all] ' the bulk erase is triggered if fname$ contains one or more '*' or a '?' character
If the optional 'all' parameter is used then you will be prompted for a single confirmation
If 'all' is not specified you will be prompted on a file-by-file basis



 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9147
Posted: 11:10am 12 Feb 2023
Copy link to clipboard 
Print this post

Please note I've replaced the files in the download as at 11:08UTC Sunday 12th.

This is to fix a memory leak in file handling. You are unlikely to notice this unless your program repeatedly opens and closes files numerous times
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4047
Posted: 12:38pm 12 Feb 2023
Copy link to clipboard 
Print this post

Hi Peter,

I've just downloaded and flashed the above onto my (official Raspberry green) Pico and it doesn't come back alive and start flashing the LED. I've flashed the release, 5.07.06 back onto it and it's fine.

Best wishes,

Tom
Edited 2023-02-12 22:50 by thwill
Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Pluto
Guru

Joined: 09/06/2017
Location: Finland
Posts: 359
Posted: 12:49pm 12 Feb 2023
Copy link to clipboard 
Print this post

I am running LA_21 with the latest firmware on a black pico. All OK including flashing blue led.
 
     Page 8 of 16    
Print this page
© JAQ Software 2024