1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Arduino newb

Discussion in 'Arduino' started by Dr_Doggy, Dec 20, 2015.

  1. Dr_Doggy

    Dr_Doggy Well-Known Member

    Joined:
    Aug 11, 2007
    Messages:
    1,715
    Likes:
    37
    Just got my first Arduino Mega 2560, it came with my 3d printer and firmware, and only 50% full! Already i want to get in to code and "improve"!
    Rite now i am using just basic compiler (i think), but want something with debug & watch features , is this possible? right now all compiler tells me is most basic summary of build error, it does not even mention line numbers...
    is there better?
     
  2. Wp100

    Wp100 Active Member

    Joined:
    Feb 3, 2009
    Messages:
    958
    Likes:
    43
    Location:
    England
    There are several such IDEs out there, but think AVR Studio 7 is probably the most popular.
    http://www.atmel.com/microsite/atmel-studio/

    Be advised that it takes a long time to install along with other sub program it needs from other sources.
    Also when starting up, it can again take a long time to start ( depending on the power of your pc); thereafter its fast and has the full features you want.

    However make it easy to run the Arduino you need to add and Use the Visual Micro plug in, which is mostly free, but to use its full debugger features you have to pay a small-ish fee . However try it all out first to ensure its the right program for you before buying the full debugger feature.
    http://www.visualmicro.com/

    Plenty of tutorials for Studio 6/7 on ytube

    000152.jpg
     
    Last edited: Dec 21, 2015
    • Like Like x 1
  3. Dr_Doggy

    Dr_Doggy Well-Known Member

    Joined:
    Aug 11, 2007
    Messages:
    1,715
    Likes:
    37
    hey 40$ is no worry for such a debugger, thanks! i can tell this is going to be sweet!

    but i have one problem, I can see the plugin attached to vs2013, and atml studio installed ok too,
    i think its working since as far as i can tell it is attaching to the device,
    but when i import code problems happen:
    1) in Visual Basic --
    Error 4 169:13: error: 'HardwareSerial' has not been declared C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\evqvbnsz.a10\Micro Platforms\default\debuggers\VM_DBG\VM_DBG.h 169

    --- Here is first call to this line:

    #if defined(VM_DEBUGGER_TYPE) && VM_DEBUGGER_TYPE == VM_DEBUGGER_TYPE_HARDWARESERIAL

    #if defined( DEFAULT_TO_TINY_DEBUG_SERIAL ) && DEFAULT_TO_TINY_DEBUG_SERIAL
    TinyDebugSerial *transport;
    void begin(TinyDebugSerial *theSerial);
    void begin(TinyDebugSerial *theSerial, long baud);
    #else
    HardwareSerial *transport;
    void begin(HardwareSerial *theSerial);
    void begin(HardwareSerial *theSerial, unsigned long baud);
    #endif
    #endif


    2) in ATML Studio -- config.h cant be found (and i think others H's are missing too), also i cant figure out how to add it in...
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. Wp100

    Wp100 Active Member

    Joined:
    Feb 3, 2009
    Messages:
    958
    Likes:
    43
    Location:
    England

    Sorry, only a beginner with Studio/VM/C++, have not a clue as to your problem.

    Hopefully others will be able to help...
     
  6. Dr_Doggy

    Dr_Doggy Well-Known Member

    Joined:
    Aug 11, 2007
    Messages:
    1,715
    Likes:
    37
    Hey no worry! I just appricate this discovery!

    i got the glitch figured out, but now have some more, im sure ill figure it out!
    thnx again!
     
  7. Dr_Doggy

    Dr_Doggy Well-Known Member

    Joined:
    Aug 11, 2007
    Messages:
    1,715
    Likes:
    37
    HEY! still cant get this going! I got the visual Micro in VB and the atmega2560 hooked up on usb
    using adruino software I am able to build with the avrISP mkII, but when i try on VB, I get error:
    avrdude: usbdev_open(): did not find any USB device "usb"

    I selected the right ports and board, is there more settings i am missing, or maybe special hardware is required?

    what could i be missing !!??
    thanks!
     
  8. Dr_Doggy

    Dr_Doggy Well-Known Member

    Joined:
    Aug 11, 2007
    Messages:
    1,715
    Likes:
    37
    gotit!

    all i was missing was that i had to uncheck "always use programmer for upload" !!!!!

    not as smooth as vb debugging but good enough !!!
     

Share This Page