Menu

Programmer to use with GCBasic

2020-10-16
2020-10-27
1 2 > >> (Page 1 of 2)
  • Bertrand BAROTH

    Bertrand BAROTH - 2020-10-16

    Are there any COMMERCIALLY AVAILABLE (ready to use) AVR-ISP Programmers compatible with any programming utility included in GCBasic ? Thanks for any anwer ...

     
    • Anobium

      Anobium - 2020-10-16

      Yes. Lots.

      Any of the programmers in AVRDUDE list, any of the programmer in the AMTEL programmer list.

      I use PICKit2, Ardunio as ISP, PICkit4, USBasp USB ISP. There are more. All these are supported via the Great Cow BASIC programmer editor.

      So, what is the question?

       
  • stan cartwright

    stan cartwright - 2020-10-16

    I would not know how to program an AVR bare chip in circuit.
    I looked it up and it's arduino solutions when it comes to wiring and using a usb to ttl converter.
    It's so easy using a uno/nano board, just plug and program but a chip without a bootloader is not trivial.
    There's probably a gcb method somewhere.
    I think I can see Bertrand's question. I think he needs a plug and play usb prorammer..
    or maybe I'm wrong.
    Or a recommendation based on user experience...like xprogrammer is easy to use etc.

     

    Last edit: stan cartwright 2020-10-16
  • Bertrand BAROTH

    Bertrand BAROTH - 2020-10-16

    A programmer to replace Kanda's ISP2 ; unfortunately I bought the STK200 in 1999 (!) with the parallel programming dongle, but it does no more work with the x64 version of W7, so I bought the ISP2 (USB) 3 years ago.
    Meanwhile I found the "USBASP", very cheap (clones ? ) at some sellers on the net and the manual is here :
    https://eecs.oregonstate.edu/education/docs/ece375/USBASP-UG.pdf
    And on page 22 I saw that it is compatible with AVRdude. Since I plan perhaps my migration to "Penguin", another question : does GCBasic for Linux provide the AVRDude functions, too ?

     

    Last edit: Bertrand BAROTH 2020-10-16
  • Anobium

    Anobium - 2020-10-16

    What are the target chips? specifics please.
    Money constraints?

     
  • Bertrand BAROTH

    Bertrand BAROTH - 2020-10-16

    PS : no money constraints, and read my former post please ; target processor : Mega 8515 or 162.

     
  • stan cartwright

    stan cartwright - 2020-10-16

    Bertrand ..search isp Mega 8515. You might need a uno as the programmer.
    gcb makes a hex file, how to flash the chip. Dunno mate.
    I got a parallel printer port programmer that is now just a pcb and parts but useless even as a dev board.
    Those universal zif connectors are cool for pics.
    I doubt useful for avr.

    Only guessing but I think a usb to ttl converter is needed and the programmer
    to drive it. But pics need the mclr line so not a clue about avr but must be info how to.

     
  • Bertrand BAROTH

    Bertrand BAROTH - 2020-10-16

    Thanks Stan, I have already ordered the USBASP on the Bay (7.10 € from France, including shipment ! ) and will first test it. Less expensive than any Arduino ! And it has the same ISP connector as my STK200. But the same question again : does GCB for Linux provide direct programming functions via AVRDude ?

     
    • Anobium

      Anobium - 2020-10-17

      Good choice and Linux uses AVRDude.

       
  • stan cartwright

    stan cartwright - 2020-10-16

    Are all gcb avr programs set up to allow for a boot loader?
    as the boot loader is small but would need some ram
    is writing a gcb prog to raw avr wasteing that prog mem and ram?
    the boot loader seems interesting.

     
  • stan cartwright

    stan cartwright - 2020-10-16

    I thought about using avr like pic but uno/nano boards so cheap and the mem loss from bootloader no problem and so easy to use why bother. they are cheap as chips.
    I only use linux on rpi but it would make a nice programmer.
    someone on the forum has gcb running on rpi...command line only but cool

     
  • Bertrand BAROTH

    Bertrand BAROTH - 2020-10-17

    Thanks for all answers ... I never used a boot loader on AVR (only on Easy VR3, but this is off topic)

     
    • stan cartwright

      stan cartwright - 2020-10-17

      I have seen a few youtube videos on programming a 328p.
      It's all too complicated so I just use the plug and play usb boards.
      a raw 328p and a xtal and regulator and make a board is too much like using a pic.

       
  • Bertrand BAROTH

    Bertrand BAROTH - 2020-10-18

    And again the same question, BEFORE I migrate (perhaps) : Has the LINUX version of GCBasic the "hex/flash" and "flash" functions like the Windows version ? I plan to use AVRDude and USBASP ...

     
    • Anobium

      Anobium - 2020-10-18

      Scripts are in the distribution for makeASM, makeHEX and flash. So, yes, they are provided.

       
  • Bertrand BAROTH

    Bertrand BAROTH - 2020-10-18

    And about Free Basic installation : I read that some "additional packages" are needed ; must I install them (all ? ) or are they provided by the GCBasic installation ?

     
    • Anobium

      Anobium - 2020-10-18

      I cannot answer. As I do not use Linux. I know what we manage from a Distribution point of view.

      But, I compile the Great Cow BASIC compiler daily. I just have the one FBC.exe version 1.07.1 I would recommned using the same version of FreeBASIC.

       
  • Bertrand BAROTH

    Bertrand BAROTH - 2020-10-18

    Problem : how can I decide to migrate (or not) to Linux if I don't know how to install the software I need ? Is there a "Linux Guru" in Your staff ?

     
    • Anobium

      Anobium - 2020-10-18

      There a guys on the forum who can answer.

       
  • Bertrand BAROTH

    Bertrand BAROTH - 2020-10-18

    Question moved to "Compiler problems".

     

    Last edit: Bertrand BAROTH 2020-10-18
  • stan cartwright

    stan cartwright - 2020-10-18

    Freebasic is easy to "build" using linux. Even I managed to do it.
    Then using freebasic to build gcb should be easy if you know linux terminal and scripts
    but that is where I gave up.
    look up gcb linux on the forum,
    migrate to linux??? from where? windows?
    linux is like when pcs used dos. It can have a pretty gui but in reality, everything is text commands in the terminal.
    Did you mean migrate to ,or just try linux ?

     
  • Bertrand BAROTH

    Bertrand BAROTH - 2020-10-26

    Now it is very probable that I will give up the idea of migration to FreeBSD, I think I would have too many issues with my other programs. Now another problem : I have a "stock" of ten 90S8515, which I wanna use. But for these processors it is not possible to read the fuses (I tested with AVRISP, too). AVRDudess "standalone" doesn't try to read them, programming is OK including verify ; but GCBasic seems to try, which results in an error message, including flash verify. I think it adds a parameter to the command line calling AVRDude. I searched on the web but could not find it. So, how can I edit the command line to avoid this issue ? Programming directly from GCBasic is a fine thing ...

     

    Last edit: Bertrand BAROTH 2020-10-26
    • Anobium

      Anobium - 2020-10-26

      I searched on the web but could not find it.

      What are you looking for? What is the error message?

       
  • Bertrand BAROTH

    Bertrand BAROTH - 2020-10-26

    The error message is :

    {
    useINI

    Great Cow BASIC Pre-processing (Copyright 2007..2020)
    C:\GCB@Syn\GreatCowBasic\include\Inspecting_Libraries.h

    Make Hex and Program
    Great Cow BASIC (0.98.07 RC22 2020-08-07 (Windows 64 bit))

    Compiling D:\Controle\Controle_compteur.gcb ...
    Done

    Assembling program ...

    Program assembled successfully!

    Downloading program ...Avrdude (USBASP max speed)

    avrdude.exe: set SCK frequency to 750000 Hz
    avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
    avrdude.exe: AVR device initialized and ready to accept instructions

    Reading | ################################################## | 100% -0.00s

    avrdude.exe: Device signature = 0x1e9301 (probably 8515)
    avrdude.exe: NOTE: "flash" memory has been specified, an erase cycle will be performed
    To disable this feature, specify the -D option.
    avrdude.exe: erasing chip
    avrdude.exe: set SCK frequency to 750000 Hz
    avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
    avrdude.exe: reading input file "D:\Controle\Controle_compteur.hex"
    avrdude.exe: input file D:\Controle\Controle_compteur.hex auto detected as Intel Hex
    avrdude.exe: writing flash (2722 bytes):

    Writing | ################################################## | 100% 16.42s

    avrdude.exe: 2722 bytes of flash written
    avrdude.exe: verifying flash memory against D:\Controle\Controle_compteur.hex:
    avrdude.exe: load data flash data from input file D:\Controle\Controle_compteur.hex:
    avrdude.exe: input file D:\Controle\Controle_compteur.hex auto detected as Intel Hex
    avrdude.exe: input file D:\Controle\Controle_compteur.hex contains 2722 bytes
    avrdude.exe: reading on-chip flash data:

    Reading | ################################################## | 100% 2.75s

    avrdude.exe: verifying ...
    avrdude.exe: 2722 bytes of flash verified
    -> (added by me)
    avrdude.exe: safemode: Sorry, reading back fuses was unreliable. I have given up and exited programming mode

    avrdude.exe done. Thank you.

    A warning has been generated:

    Warning: The chip may not have programmed properly. Programmer returned
    status (1)

    The message has been logged to the file Errors.txt.

    Validation in AS6
    }

    The lines after -> don't appear in "direct" mode in AVRDudess. I added "-s" to the parameter line (meanwhile I had found this), but it has no effect The command line parameters I uses (finally) are :
    -c usbasp -B 1.0 -p AT%chipmodel% -U flash:w:"%filename%":a -s

     

    Last edit: Bertrand BAROTH 2020-10-26
  • Anobium

    Anobium - 2020-10-26

    what are the parameters that work in AVRDUDESS?

     
1 2 > >> (Page 1 of 2)

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.