Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 07:43 25 Aug 2026 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 : Unix on the Pico Computer 3

     Page 7 of 8    
Author Message
Bleep

Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 842
Posted: 09:58pm 19 Aug 2026
Copy link to clipboard 
Print this post

Hi Peter,
I noticed that you said you have finished what is already there for the feature set, do you think you will be implementing the Math C_... set. ie.
MATH C_ADD array1(), array2(), array3()
MATH C_SUB array1(), array2(), array3()
MATH C_MUL array1(), array2(), array3()
MATH C_DIV array1(), array2(), array3()
MATH C_AND array1(), array2(), array3()
MATH C_OR array1(), array2(), array3()
MATH C_XOR array1(), array2(), array3()
which I think are quite useful. I've tested the Math slice, that's working fine. Thanks.
Kevin.
Edited 2026-08-20 08:03 by Bleep
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 713
Posted: 10:28am 20 Aug 2026
Copy link to clipboard 
Print this post

Would it be possible to add wildcards to the FAT LS routine?

For Example, I'd like to be able to search for all files that start with the character 4 in the physics directory like this:
fat ls physics/4*


Right now, all I get is file not found. I do get all files in the physics directory with
fat ls physics

Edited 2026-08-20 20:31 by toml_12953
 
karlelch

Guru

Joined: 30/10/2014
Location: Germany
Posts: 353
Posted: 08:04am 21 Aug 2026
Copy link to clipboard 
Print this post

  Quote  If you don't have a RTC and GP27 isn't wired use the PC2 sdcard wiring. If you connect a RTC and GP27 to the 32K output then the firmware will know it is running on a PC3 and you must use its sdcard wiring. You can uses SPI for the SDcard unless you connect and RTC, This was a mistake of mine on the PC2 but MMBasic, MicroPython and now Fuzix work round it using a bitbanged sdcard driver. I don't think this is particularly any slower.
In both the PC2 and PC3 you really should have a RTC as this is used for timestamping files etc.

I added now a RTC and changed the SD card wiring to PC3 - now it works really reliably. My impression was that with the bitbanged SD card access (in PC2 mode), the jumper cable solution was not reliable - but I am also using shorter wires now. In any case, it now recognises the SD card everytime.

One question: It always asks for the bootdev - can this be set to hdb2 by default?

HDMI display: 640x480 console, graphics modes 0-5 and 7
devtty: uart as default tty
kernel build: Aug 15 2026 19:23:01
clk_sys 375MHz; PSRAM 8192KiB at 0x11000000
FUZIX version 0.5
Copyright (c) 1988-2002 by H.F.Bower, D.Braun, S.Nitschke, H.Peraza
Copyright (c) 1997-2001 by Arcady Schekochikhin, Adriano C. R. da Cunha
Copyright (c) 2013-2015 Will Sowerbutts <will@sowerbutts.com>
Copyright (c) 2014-2025 Alan Cox <alan@etchedpixels.co.uk>
Devboot
Pico Computer 3, release 0.15 (on FUZIX 0.5)
Copyright (c) 2026 Peter Mather
520KiB total RAM, 336KiB available to processes (64 processes max)
Enabling interrupts ... ok.
NAND flash, 15360kB physical 10274kB logical at 0x14100000: hda:
board: PICO COMPUTER 3
SD drive 0: hdb: hdb1 hdb2 hdb3
sound: BBC 4-channel synth on I2S (PCM5102)
USB host: keyboard on the hub, layout UK
bootdev:


Here is a picture of the working minimal setup:




Thanks and best
Thomas
 
Mixtel90

Guru

Joined: 05/10/2019
Location: United Kingdom
Posts: 9080
Posted: 08:16am 21 Aug 2026
Copy link to clipboard 
Print this post

The PGA2350 is a bit less than breadboard friendly, isn't it?  :)
Mick

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

Guru

Joined: 30/10/2014
Location: Germany
Posts: 353
Posted: 08:24am 21 Aug 2026
Copy link to clipboard 
Print this post

... I just saw that networking is now supported ... I can't keep up.
Now I have to add another breakout board to my contraption  
 
karlelch

Guru

Joined: 30/10/2014
Location: Germany
Posts: 353
Posted: 08:25am 21 Aug 2026
Copy link to clipboard 
Print this post

  Mixtel90 said  The PGA2350 is a bit less than breadboard friendly, isn't it?  :)

Yes ....
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11779
Posted: 04:11pm 21 Aug 2026
Copy link to clipboard 
Print this post

V0.19 is now available
https://github.com/UKTailwind/FUZIX/releases/tag/pc3-v0.19
This has networking support for the PC3 and various internal changes. In addition it has requested items: Boots direct to the login prompt, c_NNN math commands added. FAT commands accept wildcards

For breadboard use with the PGA2350 I installed the row of pins with things like USB pointing down and the rest pointing up. That way you can plug it into the breadboard for stability but have access to all the pins
Edited 2026-08-22 02:14 by matherp
 
Bleep

Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 842
Posted: 05:44pm 21 Aug 2026
Copy link to clipboard 
Print this post

Thanks Peter, I've tried a couple of the Math C_... functions and they seem to be working great, thank you. :-)
If you are interested you can now slightly speed up bubble, by using Slice
comment out this line
' If Not(g Mod 10) Then n(j)=m(g\10,j)'copy from colour map
and add the Slice just below the commented line
'Memory unpack Peek(varaddr m(0,g)),nn,100,32 'unpack pixel colours
Array Slice m(),g\10,,n()

There is something strange happening with the frame time readout in the top left corner, it almost looks like it's being printed twice at different sizes?
Regards Kevin.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11779
Posted: 05:52pm 21 Aug 2026
Copy link to clipboard 
Print this post

  Quote  There is something strange happening with the frame time readout in the top left corner, it almost looks like it's being printed twice at different sizes?

Please list the exact program you are testing with
 
Bleep

Guru

Joined: 09/01/2022
Location: United Kingdom
Posts: 842
Posted: 06:16pm 21 Aug 2026
Copy link to clipboard 
Print this post

Hi Peter, bubble does it.
 
karlelch

Guru

Joined: 30/10/2014
Location: Germany
Posts: 353
Posted: 11:01am 22 Aug 2026
Copy link to clipboard 
Print this post

  Quote  For breadboard use with the PGA2350 I installed the row of pins with things like USB pointing down and the rest pointing up. That way you can plug it into the breadboard for stability but have access to all the pins

Good idea.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11779
Posted: 03:02pm 22 Aug 2026
Copy link to clipboard 
Print this post

V0.20 is now available
https://github.com/UKTailwind/FUZIX/releases/tag/pc3-v0.20

This implements the MMbasic compiler hooks into the web functionality so that now standard MMbasic WebMite functionality is available. To prove this I have tested Geoff's watering controller

This means in Fuzix the MMbasic compiler has now been tested with:
PicoFrog
Petscii Robots
Solar_Eclipse
Bubble Universe and other graphics demos
Reticulation controller
Various benchmarks
and dozens of test programs for specific functionality

We are therefore now in the state that, other than very specific functionality, anything that runs on interpreted MMbasic should run on the compiler subject to nothing more than trivial modifications
 
karlelch

Guru

Joined: 30/10/2014
Location: Germany
Posts: 353
Posted: 07:16am 23 Aug 2026
Copy link to clipboard 
Print this post

Thanks for v0.20!
One questions: Is there a way to access "/dev/tty2" from MMBasic?

Thanks
Thomas
 
karlelch

Guru

Joined: 30/10/2014
Location: Germany
Posts: 353
Posted: 07:27am 23 Aug 2026
Copy link to clipboard 
Print this post

  karlelch said  Thanks for v0.20!
One questions: Is there a way to access "/dev/tty2" from MMBasic?

Never mind - found it.

Open "/dev/tty2" For Output As #5
Print #5, "Hello from MMBasic"
Close #5
End
 
karlelch

Guru

Joined: 30/10/2014
Location: Germany
Posts: 353
Posted: 12:44pm 23 Aug 2026
Copy link to clipboard 
Print this post

Hi Peter

Transferring files from and to FUZIX is currently awkward - is there a different solution other than serial to be expected? A partition on the SD card that’s is readable and writable from FUSIX?

Thanks
Thomas
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11779
Posted: 01:02pm 23 Aug 2026
Copy link to clipboard 
Print this post

  Quote  A partition on the SD card that’s is readable and writable from FUSIX?


RTFM
FAT command
 
toml_12953
Guru

Joined: 13/02/2015
Location: United States
Posts: 713
Posted: 01:12pm 23 Aug 2026
Copy link to clipboard 
Print this post

  matherp said  
  Quote  A partition on the SD card that’s is readable and writable from FUSIX?


RTFM
FAT command


Well, that's half of what he wanted anyway. Any plans to make the FAT partition writable as well?
Edited 2026-08-23 23:13 by toml_12953
 
karlelch

Guru

Joined: 30/10/2014
Location: Germany
Posts: 353
Posted: 01:15pm 23 Aug 2026
Copy link to clipboard 
Print this post

  toml_12953 said  
  matherp said  
  Quote  A partition on the SD card that’s is readable and writable from FUSIX?


RTFM
FAT command


Well, that's half of what he wanted anyway. Any plans to make the FAT partition writable as well?

Yes, in both directions - as on the PC
 
karlelch

Guru

Joined: 30/10/2014
Location: Germany
Posts: 353
Posted: 02:42pm 23 Aug 2026
Copy link to clipboard 
Print this post

Fun with processes:
test.bas:
Dim Integer i
Print "text.bas: Starting ..."
For i=0 to 9
 Open "/tmp/signal.txt" For Output As #5
 Print #5, i mod 2
 Close #5
 Print "test.bas: Updated signal"
 Pause 2000
Next
Print "test.bas: Done"
End


rec.bas:
Dim Integer j, i = -1
Dim String s$
Print "rec.bas: Starting ..."
Do
 Open "/tmp/signal.txt" For Input As #4
 Line Input #4, s$
 'Print "rec.bas: `";s$;"`"
 Close #4
 j = Val(Mid$(s$, 2, 1))
 if j <> i Then
   i = j
   Print "rec.bas: New state (";i;")"
 EndIf
 Pause 100
Loop While 1


Output:
# ./rec.bc &
rec.bas: Starting ...
rec.bas: New state ( 1)
180
# ./test.bc &
text.bas: Starting ...
test.bas: Updated signal
rec.bas: New state ( 0)
181
# test.bas: Updated signal
rec.bas: New state ( 1)
test.bas: Updated signal
rec.bas: New state ( 0)
test.bas: Updated signal
rec.bas: New state ( 1)
test.bas: Updated signal
rec.bas: New state ( 0)
test.bas: Updated signal
rec.bas: New state ( 1)
test.bas: Updated signal
rec.bas: New state ( 0)
test.bas: Updated signal
rec.bas: New state ( 1)
test.bas: Updated signal
rec.bas: New state ( 0)
test.bas: Updated signal
rec.bas: New state ( 1)
test.bas: Done
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11779
Posted: 05:00pm 23 Aug 2026
Copy link to clipboard 
Print this post

V0.21 is now available
https://github.com/UKTailwind/FUZIX/releases/tag/pc3-v0.21

See release notes for changes
 
     Page 7 of 8    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2026