Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 16:40 28 Mar 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 11 of 23    
Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4200
Posted: 09:18am 03 Feb 2025
Copy link to clipboard 
Print this post

  matherp said  I'll revert to a full clear if that is the consensus


I'd certainly appreciate that.

Thanks,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9805
Posted: 09:44am 03 Feb 2025
Copy link to clipboard 
Print this post

V6.00.02b7 now available

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

Fixes bug in RP2350VGA mode 3
Fixes bug in LIST SYSTEM I2C when GP1 is assigned to a special use
Changing mode to itself now does a full clear
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4200
Posted: 09:59am 03 Feb 2025
Copy link to clipboard 
Print this post

Thank you Peter, I'll be having another look at the gamepad issues as soon as I find some free time.

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9805
Posted: 10:38am 03 Feb 2025
Copy link to clipboard 
Print this post

  Quote  I'll be having another look at the gamepad issues as soon as I find some free time.


The bit I'm stuck with is how the device descriptor maps onto the bits in your sdl coding. In the case of my gamepad the 8 buttons are in byte 5 bits 4,5,6,7 and byte 6 bits 0,1,4,5
The d-pad is pseudo analog in bytes 0 and 1.
If you look at the AI print on the other thread - you can interpret the analog dpad and it points to byte 5 and 6 for the buttons but I can't see how to understand which bits are which. Perhaps that is in the sdl info? Have you got a readout for PID E401, VID 081F? you can let me see?
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 503
Posted: 10:56am 03 Feb 2025
Copy link to clipboard 
Print this post

Found another bug of your latest version (with fixed mode3 - confirmed):

Play mp3 works fine, but wav does not. It plays but it is awful broken distortet...

Not overclocked (!) everything default VGA (ps/2) version with audio via PWM @ GP6,GP7

Edit: forgot to mention it is running on the Pico2...

Greetings
Daniel
Edited 2025-02-03 21:00 by Amnesie
 
twofingers
Guru

Joined: 02/06/2014
Location: Germany
Posts: 1456
Posted: 12:08pm 03 Feb 2025
Copy link to clipboard 
Print this post

> option list
PicoMiteHDMI MMBasic USB RP2350A Edition V6.00.01
OPTION SERIAL CONSOLE COM2,GP8,GP9
OPTION SYSTEM I2C GP20,GP21
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION KEYBOARD GR
OPTION CPUSPEED (KHz) 315000
OPTION SDCARD GP22, GP26, GP27, GP28
OPTION AUDIO GP10,GP11', ON PWM CHANNEL 5
OPTION RTC AUTO ENABLE
OPTION MODBUFF ENABLE  192
OPTION F9 FLASH RUN 2
OPTION PLATFORM HDMIUSB

Bug report for Loc() on drive b: (SD-Card) (RP2350A Edition V6.00.01)
Sub testloc
Open "tt.nsa" For input As #1
Print Loc(#1)
Line Input #1,A$
Print A$,Len(A$)
Print Loc(#1)
close #1
End Sub


> a:
> run
1
DIR: nsa         8
11
> b:
> run
1
DIR: nsa         8
219

The same code produces different results for different drives.
If this has already been fixed, please just forget about it.

tt.zip

BTW: Line Input (and Loc()) works not with "open "xxx" for random"?

Regards
Michael
causality ≠ correlation ≠ coincidence
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9805
Posted: 02:10pm 03 Feb 2025
Copy link to clipboard 
Print this post

  Quote  Bug report for Loc() on drive b


Side effect of buffering reads - Will fix

  Quote  Play mp3 works fine, but wav does not. It plays but it is awful broken distortet...


Typo introduced when implementing I2S - will fix
 
JanVolk
Senior Member

Joined: 28/01/2023
Location: Netherlands
Posts: 196
Posted: 05:06pm 03 Feb 2025
Copy link to clipboard 
Print this post

Peter,

I found another problem.
The firmware of the WebMite RP2350A no longer works after version:

Firmware updated
WebMite MMBasic RP2350A Edition V6.00.02b5
Copyright 2011-2025 Geoff Graham
Copyright 2016-2025 Peter Mather

The standard versions do work in the Raspberry Pi Pico 2 W.
This flashed in a Raspberry Pi Pico 2 W.

PicoMite MMBasic RP2350A Edition V6.00.02b7
Copyright 2011-2025 Geoff Graham
Copyright 2016-2025 Peter Mather

Greetings,

Jan
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9805
Posted: 05:20pm 03 Feb 2025
Copy link to clipboard 
Print this post

  Quote  The firmware of the WebMite RP2350A no longer works after version:


The image has got bigger than I allowed - will fix
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 503
Posted: 05:33pm 03 Feb 2025
Copy link to clipboard 
Print this post

Wow Peter, I can't imagine how much hard work this is to maintain all these versions. Thank you so much for all this effort! :)

Greetings
Daniel
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9805
Posted: 05:40pm 03 Feb 2025
Copy link to clipboard 
Print this post

There is only one codeset with a bunch of conditional compilation so building the versions isn't an issue. What I can't do when in beta is test all the versions each time so I rely on feedback to iron out the bugs. Most like the ones reported today are completely trivial so its not a big deal.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9805
Posted: 06:19pm 03 Feb 2025
Copy link to clipboard 
Print this post

V6.00.02b8 now available

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

Fixes bugs reported above
 
JanVolk
Senior Member

Joined: 28/01/2023
Location: Netherlands
Posts: 196
Posted: 10:34pm 03 Feb 2025
Copy link to clipboard 
Print this post

WebMite MMBasic RP2350A Edition V6.00.02b8
Copyright 2011-2025 Geoff Graham
Copyright 2016-2025 Peter Mather

> option list
WebMite MMBasic RP2350A Edition V6.00.02b8
OPTION SYSTEM SPI GP10,GP11,GP12
OPTION SYSTEM I2C GP4,GP5
OPTION FLASH SIZE 4194304
OPTION COLOURCODE ON
OPTION CPUSPEED  200000 'KHz
OPTION DISPLAY 48, 99
OPTION SDCARD GP15
OPTION AUDIO I2S GP1,GP13', ON PWM CHANNEL 11
OPTION RTC AUTO ENABLE
> list pins
GP0      1      OFF
GP1      2      Boot Reserved : I2S BCLK
GP2      4      Boot Reserved : I2S LRCK
GP3      5      OFF
GP4      6      Boot Reserved : SYSTEM I2C SDA
GP5      7      Boot Reserved : SYSTEM I2C SCL
GP6      9      OFF
GP7      10     OFF
GP8      11     OFF
GP9      12     OFF
GP10     14     Boot Reserved : SPI SYSTEM CLK
GP11     15     Boot Reserved : SPI SYSTEM MOSI
GP12     16     Boot Reserved : SPI SYSTEM MISO
GP13     17     Boot Reserved : I2S DATA
GP14     19     OFF
GP15     20     Boot Reserved : SD CS
GP16     21     OFF
GP17     22     OFF
GP18     24     OFF
GP19     25     OFF
GP20     26     OFF
GP21     27     OFF
GP22     29     OFF
GP23     41     Boot Reserved : CYW43
GP24     42     Boot Reserved : CYW43
GP25     43     Boot Reserved : CYW43
GP26     31     OFF
GP27     32     OFF
GP28     34     OFF
GP29     44     Boot Reserved : CYW43
> list system i2c
HEX  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: 20 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- 57 -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>

Thanks Peter.

List system I2C now also works and also my 4x20 display and RTC clock.
The audio works and with an Amplifier or Headphones or a Multi-point Bluetooth Transmitter I have excellent sound.
We still miss Play Stream support for the PCM5102A I2S with 3 pins, otherwise we would also have affordable Web Radio. It does work with a VS1053 which I have yet to try. But very satisfied with a module I still had and it costs 3 Euro in China.
I don't understand 'ON PWM CHANNEL 11 in the OPTION list?


Greetings,

Jan
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9805
Posted: 10:39pm 03 Feb 2025
Copy link to clipboard 
Print this post

Play stream can never work with I2S. It relies on the VS1053 doing the real-time mp3 decoding without any defining header. I2S uses a PWM channel as a timer. Since the RP2350A can't use PWM 11 for any of its pins it is a good choice.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9805
Posted: 06:10pm 04 Feb 2025
Copy link to clipboard 
Print this post

V6.00.02b8 updated - no version change

Fixes bug in PIO assembly of "OUT PC,n" command
Allows ";" as a comment separator for PIO commands

New PIO functionality for RP2350A and RP2350B
Adds MOV PINDIRS,src as valid instruction
Adds support for 'prev' and 'next' for the IRQ command

New PIO functionality for RP2350B
PIO SET BASE pionum, n 'sets the base of logical PIO pins to 0 or 16 to allow pins GP30-47 to be used for PIO
Edited 2025-02-05 04:10 by matherp
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4722
Posted: 07:09pm 04 Feb 2025
Copy link to clipboard 
Print this post

Hi Peter,

MOV PINDIRS,x does not work yet.

> list
PIO assemble 1
.program test
.line 0
Mov pindirs,3
Out pc,5
.end program list

>run
[5] Mov pindirs,3
Error : Syntax


Volhout
PicomiteVGA PETSCII ROBOTS
 
matherp
Guru

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

Only RP2350
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 4722
Posted: 08:28pm 04 Feb 2025
Copy link to clipboard 
Print this post

OK,

That was a reserved destination in MOV in 2040 (probably planned for pindirs, but buggy).
Thanks, I learned something new...

Volhout
PicomiteVGA PETSCII ROBOTS
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9805
Posted: 10:45pm 04 Feb 2025
Copy link to clipboard 
Print this post

Also the valid sources are: pinS, x, y, null, status, isr, OSR you can't use a number. That would be a SET command

NB: Away for the next few days so no updates
Edited 2025-02-05 18:59 by matherp
 
cosmic frog
Senior Member

Joined: 09/02/2012
Location: United Kingdom
Posts: 299
Posted: 02:00pm 05 Feb 2025
Copy link to clipboard 
Print this post

Hi Peter,

Just testing out the MP3 function on the RP2350Zero. In the manual it says - PLAY MP3 file$ [,interrupt] "..If file$ is a directory the Pico will play all of the files in that directory in turn."

If I try PLAY MP3 "dirname" it says "ERROR:Could not find the file".

If I then try PLAY MP3 "B:/dirname" it lists the directory and gives the error "ERROR:Display not configured".

PLAY NEXT says "ERROR:Nothing to play" or if a track is playing it says "Last track is playing", yet the manual says "..[PLAY NEXT] Stops playback of the currnt audio file and starts the next one in the directory.

> option list
PicoMite MMBasic RP2350A Edition V6.00.02b8
OPTION SYSTEM SPI GP10,GP11,GP12
OPTION FLASH SIZE 4194304
OPTION CPUSPEED  200000 'KHz
OPTION SDCARD GP13
OPTION AUDIO GP6,GP7', ON PWM CHANNEL 3

Thanks.

Dave.
 
     Page 11 of 23    
Print this page
© JAQ Software 2025