Welcome, Guest

Author Topic: Burn Arduino bootloader into AVR-CAN  (Read 5932 times)

riodda

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Burn Arduino bootloader into AVR-CAN
« on: May 04, 2014, 06:23:48 PM »
i've purchased an AVR-CAN do develop my can project, for that i am more confortable with arduino to program and my intention is to burn the arduino bootloader in the AVR-CAN.
i've seen that should be possible to do it, what i whant to know is if i can burn the arduino bootloader trought the serial interface or if i have to burn it trought the Jtag interface.
The second question is about the arduino can libraries that will support the AVR-CAN.
Thanks.

LubOlimex

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1984
  • Karma: +50/-3
Re: Burn Arduino bootloader into AVR-CAN
« Reply #1 on: May 07, 2014, 04:49:59 PM »
Helo Riodda,

There is a built-in bootloader in the AT90CAN128 chip but we have never used (so there is a good chance that it will not do the job). What I can give you as a pointer is to check page 321 of the user's manual of the AT90CAN128 (here http://www.atmel.com/Images/doc7679.pdf) - maybe some of the instructions on how to connect to the bootloader via the RS232 or the CAN, would provide useful.

Also there is no ICSP interface out-of-the-box - so ISP programmers will not do the job (unless you know how to access the ICSP). Only JTAG interface is available for programming and debugging. If you are purchasing a tool make sure it has JTAG interface!

If you haven't stumbled upon these please check it:

http://forum.arduino.cc/index.php/topic,8446.0.html

http://blog.lincomatic.com/?p=398

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

riodda

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Burn Arduino bootloader into AVR-CAN
« Reply #2 on: May 26, 2014, 10:54:42 PM »
Thanks i will give it a try.
I will love if you will produce an arduino compatible version out of the box !
Thanks.

riodda

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Burn Arduino bootloader into AVR-CAN
« Reply #3 on: June 09, 2014, 12:38:25 PM »
Helo Riodda,

There is a built-in bootloader in the AT90CAN128 chip but we have never used (so there is a good chance that it will not do the job). What I can give you as a pointer is to check page 321 of the user's manual of the AT90CAN128 (here http://www.atmel.com/Images/doc7679.pdf) - maybe some of the instructions on how to connect to the bootloader via the RS232 or the CAN, would provide useful.

Also there is no ICSP interface out-of-the-box - so ISP programmers will not do the job (unless you know how to access the ICSP). Only JTAG interface is available for programming and debugging. If you are purchasing a tool make sure it has JTAG interface!

If you haven't stumbled upon these please check it:

http://forum.arduino.cc/index.php/topic,8446.0.html

http://blog.lincomatic.com/?p=398

Best regards.
Lub/OLIMEX

I'm going to try to program the AVR90CAN, but i would like to know if i'm doing something right doing the following:

I connect from my USBtinyISP MOSI to EXT1-5 RESET to EXT1-7 SCK to EXT2-33 MISO EXT1-14 then i sould put a common ground between the USBtiny and the AVR but then i'm puzzled about the power do i need to power the AVR from the ICSP connecting the +5V to EXT2-6 or i can power the AVR from an external source using the EXT1-1 ?

Thanks.

riodda

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Burn Arduino bootloader into AVR-CAN
« Reply #4 on: June 14, 2014, 10:41:14 PM »
This adapter will work ?
Sorry if is wrong but is my first eagle file, JP1 will connect to EXT1 and JP2 to EXT2 and then ICSP will go in JP3.


riodda

  • Newbie
  • *
  • Posts: 8
  • Karma: +0/-0
Re: Burn Arduino bootloader into AVR-CAN
« Reply #5 on: June 18, 2014, 07:33:53 PM »
I've built an adapter with the above schematics but i have no connection with the USBTiny, what i did wrong ?
Some help will be apreciated.