Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Electroinc n0b question. programming a avr board...

  • 09-03-2010 9:29pm
    #1
    Closed Accounts Posts: 7,134 ✭✭✭


    Hi Guys,

    I got this can bus dev kit with an atmel mpu.

    I need some jtag programmer or ISP to actually send hex files to the mpu..

    I thought this could be sent across from the serial cable itself and done on avr studio?

    Just need to double check...!


Comments

  • Registered Users, Registered Users 2 Posts: 5,421 ✭✭✭DublinDilbert


    Hi Guys,

    I got this can bus dev kit with an atmel mpu.

    I need some jtag programmer or ISP to actually send hex files to the mpu..

    I thought this could be sent across from the serial cable itself and done on avr studio?

    Just need to double check...!

    I'd be surprised if the Dev kit didn't come with some way of getting the code onto it. A lot of dev kits will have a serial boot loader on the chip that will allow code to be downloaded over serial/can/usb interface.

    But if you have a blank CPU there's generally 2 ways to get code onto it:-
    JTAG ICE USB programmer / debuuger
    AVR ISP Serial Programmer


  • Registered Users, Registered Users 2 Posts: 108 ✭✭gotBass


    What kit is it?

    I got the STK 526 a while back
    The programming is via USB as the AVR has bootloader in place.


  • Closed Accounts Posts: 7,134 ✭✭✭x in the city


    Its this

    http://uk.farnell.com/atmel/atdvk90can1/development-kit-avr-at90can128/dp/1455089

    can anyone confirm that I need an external programmer>? or can I do it via the serial (well actually a usb as I got an adapter)


    thanks lads.


  • Registered Users, Registered Users 2 Posts: 153 ✭✭delux


    You can only do it over serial if the chip already has a bootloader programmed into it, does it? I doubt it would.
    Otherwise you do need an external programmer. Why? because there is a special procedure required to enter programming mode and clock in the data. It avoids accidental writes to the device when it's released. There should be a document called a programming specification for the device which explains this.


  • Closed Accounts Posts: 7,134 ✭✭✭x in the city


    The manual just mentions the AVRIsP programmer, or the JTAG or STK kit, none of which I got....!

    I dont know about a bootloader..?


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 5,421 ✭✭✭DublinDilbert


    The manual just mentions the AVRIsP programmer, or the JTAG or STK kit, none of which I got....!

    I dont know about a bootloader..?

    Sounds like you need a programmer... The AVRisp one is quite cheap about 30 euro or so, but you need a hardware serial port (not a usb converter). The STK500 is a very old demo board from them that can program devices. The Jtag ICE is about one hundred euro...


  • Closed Accounts Posts: 7,134 ✭✭✭x in the city


    I got a serial > usb...

    this wont work? It was quite expensive and I thought it would work, is there a way to see that this recognises the can board ?

    or do you mean that it wont work with a AVRIsp? (which is on its way)


  • Registered Users, Registered Users 2 Posts: 5,421 ✭✭✭DublinDilbert


    I got a serial > usb...

    this wont work? It was quite expensive and I thought it would work, is there a way to see that this recognises the can board ?

    or do you mean that it wont work with a AVRIsp? (which is on its way)

    the Serial > USB might work, but might not. The best thing is to try it.

    Why not just get one of these:-
    http://cgi.ebay.ie/NEW-Mini-ATMEL-AVR-ATMEGA-STK500-USB-Programmer-ISP_W0QQitemZ220571211596QQcmdZViewItemQQptZUK_BOI_Electrical_Components_Supplies_ET?hash=item335b11974c


  • Closed Accounts Posts: 7,134 ✭✭✭x in the city


    Thats on its way.....!


Advertisement