Menu

RPI GCB

2021-12-13
2021-12-27
  • stan cartwright

    stan cartwright - 2021-12-13

    Hi. Lots of time free so dug out using rpi for gcb. First linux is like using win cmd so not a clue but I got freebasic
    to "build" and it works so built gcb and got the gcb@syn folder and seems all there. I did this myself then found
    http://gcbasic.sourceforge.net/help/_overview_raspberrypi.html ...wish I'd found it first.
    I'm using a rpi 400 and Twister OS which has Arduino IDE installed but not tried it but arvdude must be installed but can't find it. What's it called?
    Any way when I first used the OS, Geany opened up when I clicked a freebasic file and loaded it and when I pressed compile it did automatically and F key ran it albeit in a terminal.
    So now I got to get Geany to use Gcb and the compiler to work... with Avrdude, if it's installed.
    Sorry I can't turn italics off.
    I posted years ago about using a rpi for gcb and someone answered "why bother?". True, it's not easy, like using windows but it's a challenge.
    Twister OS on rpi 400 over clocked to 2.2GHz and usb ssd boot is interesting... loads of stuff pre installed but you can use windows without a terminal cmd... linux you have to.
    Any way of setting up geany to use gcb like what folders do need creating to store anything generated.
    I have searched for using Geany , it's not clear.

     
  • Boris Breuer

    Boris Breuer - 2021-12-22

    Hi Stan,

    cool you want to try Great Cow Basic on linux. For a first start you could lookup the issues 127, 128 of the Full Circle Magazine. There I have written a guide how to setup Great Cow BASIC on linux and how to use Geany as the IDE. You may find a copy here: https://github.com/Anobium/Great-Cow-BASIC-Demonstration-Sources/tree/master/Publication_Solutions/Full_Circle

     
    • stan cartwright

      stan cartwright - 2021-12-22

      Thank you for the link. Full Circle Magazine appears in my email occasionally.
      If I sort the paths to gcb in Geany it probably would work. I will use a Uno or nano 328 with usb lead to test.
      It is just a challenge to use gcb in linux. I am well happy with gcb using Windows.
      I have supported pickit+ but don't use it as I use avr but wondered if the linux pickit+ is another licence.
      Apparently there is a real win 10 for Arm RaspberryPi but there must be a catch. Too good to be true.
      If I get more fluent with using the terminal commands, I think I'll get a RPi zero. Only a few £.

       
    • stan cartwright

      stan cartwright - 2021-12-22

      The magazine gcb stuff for linux is very interesting. Thanks.

       
    • stan cartwright

      stan cartwright - 2021-12-22

      This is what is needed. Rpi TwisterOs has arduino installed. It would be nice if it worked like windows.

       
    • stan cartwright

      stan cartwright - 2021-12-22

      Some how Geany is gone so reinstalled it. What would this be for a uno or nano 328 please?
      avrdude -p t13 -c avrisp -P
      /dev/ttyACM0 -b 19200 -U
      flash:w:”%e”.hex

       
  • stan cartwright

    stan cartwright - 2021-12-23

    I reinstalled the os to ssd and thought reinstalling Freebasic would be easy... not.
    https://scruss.com/blog/2015/03/25/running-freebasic-on-raspberry-pi/
    I get lot's of errors. Tried and retried but given up.
    I had it all working, now fb won't make and lots of missing files reported.
    Very hard on a raspberry-pi. Linux is not fun.

     
  • stan cartwright

    stan cartwright - 2021-12-25

    Happy days, I got to get a sd card to boot and it's the one with freebasic and gcb@syn for linux.
    I copied it to a ssd and that boots. This was xmas present early as I can not get freebasic for arm to install anymore.. so this sd card was cool... and it was a nice install of twisteros.
    I made copies. Would they be of any use to anyone?
    Windows gcb is easier.

     
  • Boris Breuer

    Boris Breuer - 2021-12-25

    Hi Stan, was a bit afk for obvious reasons ;)

    the freebasic-issue seems to be gone. if i am wrong, please give some more information (e.g. error messages from terminal or the like). then i will have a look, if i can help.

    the avrdude line should be avrdude -p m328p -c arduino -P
    /dev/ttyACM0 -b 19200 -U
    flash:w:”%e”.hex but you should check if ttyACM0 is the proper device for the usb2serial-port. Maybe the baudrate is 57600 or 115200 with your device. lookup the arduino boards.txt to gather the appropriate baudrate...

    the command lsusb shows all devices on usb. then you can lookup the devicename with ls /dev | grep tty which should give the proper devicename.

    hope this helps and get in touch if you need further assistance.

    have a nice time for the rest of the x-mas days.

     
    • stan cartwright

      stan cartwright - 2021-12-25

      @Boris- Nice one. I am a Linux beginner and only use it because rpi runs it.
      It would be easier on X86 pc not rpi arm. I got ubuntu cd for free from Holland in 1995, probably using win 98. Stayed with dos and windows.
      Seems many fbc when searching so don't know what's going on.
      Any way fb works and I have built the gcb@syn so having backed up this drive I will try to NOT mess up geany! If I change geany for gcb, will it still work for fb?
      Why can't gcb for linux just be apt-get install?

       

      Last edit: stan cartwright 2021-12-25
  • stan cartwright

    stan cartwright - 2021-12-27

    As a linux beginner I don't want to change geany as it runs fb "out of the box".
    How to swap parameters for fb and gcb? And switch back.
    I would rather freebasic working in rpi. GCB linux was just a challenge and that it is.
    I am sorting other linux/rpi stuff like mic usb input, as no mic socket.
    I found I can get mic from usb and using VLC can get a webcam with audio to work.
    I'll stick to windows GCB. Linux is hard.
    If you could program a pi zero and interface it to a pic/avr and display maybe useful.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.