microblocks controlling Raspberry Pi IO bluetooth and wifi

Issue #333 new
Tim Harding created an issue

I am not a programmer, but would very much like to be able to control the GPIO Pins on a Raspberry Pi using MicroBlocks. I have followed various instructions relating to this, and each time it fails to work? So I retrace my steps to see what I have missed, or got in the wrong order. But as I do not understand exactly what I am reading, I do not know what I am doing wrong?

Is there an Image available for a Raspberry Pi that has already been setup and configured for MicroBlocks that I can download, and if so where might I find it? Or is there a Step By Step Guide available detailing what I should do in what order?

I had a reply from Github who suggested that you might be able to help;

“Hi @Mitsuperboy please open an issue here: https://bitbucket.org/john_maloney/smallvm/issues?status=new&status=open

This was just a clone to work on a fork to run locally on a BBB...“

Any help would be very much appreciated.

Kind regards

Tim

https://github.com/beagleboard/smallvm

Comments (13)

  1. Bernat Romagosa

    Actually, we’ve just found out that our RaspberryPi VMs haven’t been building correctly since a couple of versions back.

    We will look into this. At the very least I will compile the VM manually and replace the faulty one in the server. I’ll report back here

  2. Bernat Romagosa

    Hi, Tim. Our automatic build setup for the RaspberryPi VM seems to be failing. I manually compiled the VM and replaced the faulty one in the server, so now the links that Dariusz shared above should work fine for you.

    Please let me know if they don’t. In the meantime, we’ll keep investigating why does the automatic build fail…

  3. Bernat Romagosa

    Actually, scratch that. The VM I uploaded doesn’t work either… let me investigate further and get back to you.

  4. Bernat Romagosa

    Success! I’m updating the instructions on the Wiki page to accommodate for the new RaspberryPi OS. If you’re running a 64 bit version, though, I’m sorry to let you know the VM won’t work on it (yet), although the IDE will.

  5. Dariusz Dorożalski

    I’m updating the instructions on the Wiki page

    If you gain momentum, maybe the link to VM can be updated ....:)

  6. Tim Harding reporter

    Thank you for your help, but unfortunately I am still unable to get things to work here?

    I have confirmed that the Pi that I am trying to use is a 32bit.

    the vm.linuux

    I have tried using vm_linux_rpi but get the same errors as when trying to use vm.linux.rpi

    But the newer link on your Wiki page just gives a 404 Error?

    Is the file I have an executable or not?

    Please see photos from my Pi

    Kind regards

    Tim

  7. Dariusz Dorożalski

    Did you transfer vm_linux_rpi and ublocks from "Downloads\" to default home folder "~" and run the command there?

  8. Tim Harding reporter

    I have now tried to transfer vm_linux_rpi and ublocks from "Downloads\" to the Home Folder but it fails to transfer

    ublocks-raspberryPi: Error opening file “/home/ublocks-raspberryPi”: Permission denied
    vm.linux.rpi: Error opening file “/home/vm.linux.rpi”: Permission denied

    So I tried putting it into the next folder down which is my User Home folder and it transfered OK, but still does not run.

    So I also tried renaming vm_linux_rpi to vm.linux.rpi but it still had the same errors?

    dir
    Bookshelf  Documents  Music Public   Videos WiringPi
    Desktop    Downloads  Pictures Templates  vm_linux_rpi

    chmod 755 vm.linux.rpi
    ./vm.linux.rpi
    chmod: cannot access 'vm.linux.rpi': No such file or directory
    bash: ./vm.linux.rpi: No such file or directory

    chmod 755 vm_linux_rpi
    ./vm_linux_rpi
    bash: ./vm_linux_rpi: cannot execute binary file: Exec format error

    Obviously I am not understanding what I should be doing? Could you explain it in simpler terms for me to do it?

    Or is there a .deb or batch file that I can run to make it install into the right folder and then install it?

    Kind regards

    Tim

  9. Dariusz Dorożalski
    chmod 755 vm_linux_rpi
    ./vm_linux_rpi
    bash: ./vm_linux_rpi: cannot execute binary file: Exec format error
    

    Exec format error - it seems that this program is NOT suitable to your OS (or the file on the system is corrupted)

    It's the latest version updated by Bernat 2023-01-09?

  10. Tim Harding reporter

    I am using a Debian 10 Image on my Pi3b as downloaded straight from the Raspberry Pi imager.

    What image should I be using?

  11. Dariusz Dorożalski

    For me it seems like a more general failure than a version mismatch. Did you try to run (this file has a different shell icon)

    ublocks-raspberyPi 
    

    You can check if its an 32bit ELF with

    file ./vm_linux_rpi
    

    I can't get my son's PI400 to do the test for a while...

  12. Log in to comment