Welcome, Guest

Author Topic: AVR Dragon and AVR-H128-CAN  (Read 2677 times)

Eugene

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
AVR Dragon and AVR-H128-CAN
« on: August 21, 2013, 04:55:51 PM »
We recently purchased AVR-H128-CAN so I'd like to use it together with AVR Dragon debug board. Please advise:

Am I correct in understanding that connecting via JTAG is as simple as connecting Dragon's 10-pin JTAG header to AVR-H128-CAN 10-pin JTAG header via 10-wire cable?

How do I communicate via ISP interface? Dragon has 6-pin ISP header while AVR-H128-CAN has 10-pin.

Thank you,

Eugene

LubOlimex

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1664
  • Karma: +42/-2
Re: AVR Dragon and AVR-H128-CAN
« Reply #1 on: September 04, 2013, 10:23:54 AM »
Hey Eugene,

For the JTAG part of the question - yes just connect them.

To use the 6-pin ISP of the Dragon with the 10-pin ISP of the board you need to make an adapter connector 10-pin to 6-pin OR use jumper wires. You might want to check these guides (they are for 10 pin debugger interface to 6 pin board but the layouts are mighty useful):

http://www.instructables.com/id/Programming-adapter-from-10-pin-to-6-pin-for-AVRs/
http://www.batsocks.co.uk/readme/isp_headers.htm

For the reasons that both 10 pin and 6 pin layouts are used some of our AVR programmers have both connectors. For instance: https://www.olimex.com/Products/AVR/Programmers/AVR-ISP500/.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

Eugene

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: AVR Dragon and AVR-H128-CAN
« Reply #2 on: September 12, 2013, 06:48:49 PM »
Thank you, it worked.

Please recommend a schematic for generic CAN access. Preferably to include MCP2551 transceiver.

Please advise what code was loaded into the chip originally by manufacturer. I could see something written between addresses 0x0000 and 0x680.

Thanks again,

Eugene

LubOlimex

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1664
  • Karma: +42/-2
Re: AVR Dragon and AVR-H128-CAN
« Reply #3 on: September 23, 2013, 05:03:22 PM »
Hello Eugene,

A good idea is to check a board with the same processor - AVR-CAN
https://www.olimex.com/Products/AVR/Development/AVR-CAN/. It even uses MCP2551. There are demo codes also available.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex