|
Forum Index : Microcontroller and PC projects : Picromite V5.05.05
| Author | Message | ||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10538 |
I decided to give the Picromite code one last try and have built a version that "runs" on Pi-ZeroW, Pi3, and Pi4 using the latest Pi-OS version In all cases I have used the latest Raspberry Pi Imager to create the SD card on my PC. I then used rasp-config to enable SSH Then I used apt-get to both update and upgrade the image Finally I used apt-get to install pigpio The Pi-zero was running Pi-OS Lite, the others the full desktop image The new MMbasic build runs up successfully on all versions and I have run simple programs but haven't tested the I/O in any rigorous way It is interesting to note that with the overhead of Linux even the Pi4 is slower than the CMM2 The build is up-to-date with Geoff's latest MMbasic releases As always you need to enable execution of mmbasic (chmod + x mmbasic) and run it with sudo (sudo ./mmbasic) mmbasic.zip |
||||
| Nimue Guru Joined: 06/08/2020 Location: United KingdomPosts: 425 |
@matherp - forgive what might be a trivial question.... does this mean that potentially I can run MMBASIC on that new fangled Pi400 Keyboard mashup thing?? Nim Entropy is not what it used to be |
||||
| lizby Guru Joined: 17/05/2016 Location: United StatesPosts: 3446 |
Downloaded, installed, and (minimally) tested on a pi-0-w. Thanks very much. PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
| lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1702 |
Peter thank you for that but I'm getting [LIBRARY] Sub testsub Error : Duplicate name with any program that goes to a subroutine EDIT: It did this one ok cls do for a = 1 to 10 decode pause 100 next a loop SUB decode print "test print" END SUB Edited 2020-12-14 23:21 by lew247 |
||||
| lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1702 |
This one it errors on > run "zz" [LIBRARY] Sub DECODE Error : Duplicate name Option EXPLICIT Dim ss$,sec1$,aa$,a1$,a2$,a43$,a50$,b$,c%, sec, tag$, i% Dim a$(60) On error skip UDP close UDP server 4997 Do On error skip UDP receive aa$,b$,c% If c%>0 Then DECODE Loop UDP close Sub DECODE tag$=Mid$(aa$,1,2) Select Case tag$ Case "#1": For i%=1 To 25: a$(i%)=Field$(aa$,i%+1): Next i% ' LISTFIELDS Case "#2": For i%=1 To 25: a$(i%+25)=Field$(aa$,i%+1): Next i% For i%=1 To 50: Print i%;" ";a$(i%): Next i% End Select print a$(1) print a$(50) End Sub btw Thank you so much for coming back to Pi-Cromite If we get one working version I don't care if I never have to update the PI OS, as long as MM works :) Edited 2020-12-14 23:24 by lew247 |
||||
| ceptimus Senior Member Joined: 05/07/2019 Location: United KingdomPosts: 130 |
Maybe someone should produce some image files from a pre-configured SD card of the smallest capacity that will hold the system (8 GB ?) and then we can just use Balena Etcher or similar to create ready-to-go Picromite SD cards for our Pis - and we won't need to worry about future updates to the O.S. requiring new install files. Of course, when the O.S. is upgraded and someone tests that Picromite still works (or modifies it to work) then fresh image files could be created. If anyone does this, I suggest using a wired Ethernet connection for the Pi you're creating the images from - that way, there will be no WiFi access point or password information encoded in the image files, and the pi password could be left at its default value. People can always use raspi-config or similar to set up WiFi and passwords later. A possible problem might be that the Raspbian licence or Micromite licence doesn't allow such a method of distribution? Assuming it can be done without breaking the licence conditions, we would still need to consider where to host the image files, and how much server bandwidth they might take. |
||||
| Rado Regular Member Joined: 27/11/2020 Location: CroatiaPosts: 59 |
I would strongly discourage using operating system that is "frozen in time", unless it is in no way connected to the Internet. The risk of someone exploiting some security flaw that has been found but not patched is increasing with time that OS (or parts of it) has noot ben updated. This would be fine if you have a standalone machine that does not talk to other things on Internet, or is confined to an otherwise isolated network. On the other hand, I don't see the reason why updating the OS or any of its components would break MMBASIC, for as long as there are no big changes in kernel or system libraries (does not happen that frequently)?? |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 10538 |
Sorry - failed The latest Pi-OS seems to have completely broken MMbasic's memory management which is why lew247 is seeing the issues. I'm afraid MMbasic on the Pi is back to being dead - this time finally and forever |
||||
| lew247 Guru Joined: 23/12/2015 Location: United KingdomPosts: 1702 |
aww thanks for trying Peter Edited 2020-12-15 01:24 by lew247 |
||||
| chris Regular Member Joined: 24/08/2020 Location: United KingdomPosts: 56 |
I'm sure you've checked it out, but what are the downsides of the Circle baremetal library for Pi? https://github.com/rsta2/circle Edited 2020-12-15 07:00 by chris |
||||
| JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 4106 |
It's C++ ? John |
||||
| Plasmamac Guru Joined: 31/01/2019 Location: GermanyPosts: 594 |
It is interesting to note that with the overhead of Linux even the Pi4 is slower than the CMM2! Wow i cant believe this.. Plasma |
||||
| JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 4106 |
Which test(s) show that? John |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |