Pages: [1]   Go Down
Author Topic: Making a Bootloader for the AT90CAN32  (Read 1254 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Has anyone used the AT90CAN32 with the Arduino bootloader?

    I have used the AT90CAN128 for several years now, and would like to use the AT90CAN32 now.  I have tried to make a new bootloader using the AT90CAN128 and changing the specifics form AT90CAN128 to AT90CAN32 in the "Makefile" and the Atmega_168_BOOT.c file and get an error.

avr-gcc -g -Wall -O2 -mmcu=at90can32 -DF_CPU=16000000L  '-DMAX_TIME_COUNT=F_CPU>
>4' '-DNUM_LED_FLASHES=2'   -c -o AT90CAN_BOOT.o AT90CAN_BOOT.c
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccRV4OHF.s: Assembler messages:
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp/ccRV4OHF.s:998: Error: illegal opcode elpm for mcu at90can32
make: *** [AT90CAN_BOOT.o] Error 1

Hope someone can help.

Thanks

--Tim
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 197
Posts: 12739
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Is the ELPM instruction listed in the at90can32 datasheet?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, the ELPM instructions are listed.  I am able to use the makefile now and get the bootloader in the chip. 

Thanks

--Tim
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 197
Posts: 12739
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


What did you have to change?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I want to use the AT90CAN32 with Arduino, too.
Nothing special. Just playing with som CAN frames.
Do you see a chance to share the bootloader ?
Logged

Wisconsin
Offline Offline
Edison Member
*
Karma: 4
Posts: 1001
I LOVE THIS STUFF!!!!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm with pioca here
Logged

Accelerate to 88 miles per hour.

ਪੰਜਾਬ
Offline Offline
Edison Member
*
Karma: 12
Posts: 1573
Another year! Alone! :(
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes please same here , can you share the Bootloader?
Logged

"Real Men can Accomplish  Anything"
-  Website  
- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੂਂ !

Pages: [1]   Go Up
Jump to: