Go Down

Topic: Making a Bootloader for the AT90CAN32 (Read 1 time) previous topic - next topic

nratonpass

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

Coding Badly


Is the ELPM instruction listed in the at90can32 datasheet?

nratonpass

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

Thanks

--Tim

Coding Badly


pioca

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 ?

funkyguy4000

Accelerate to 88 miles per hour.

NI$HANT

Yes please same here , can you share the Bootloader?
"Real Men can Accomplish  Anything"

- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੁਂ!

Go Up