Illegal opcode on ATtiny

ChibiOS public support forum for topics related to the Atmel AVR family of micro-controllers.

Moderators: utzig, tfAteba

Posts: 28
Joined: Tue Mar 10, 2015 4:49 pm
Been thanked: 1 time

Illegal opcode on ATtiny

Postby mikenick42 » Thu Mar 11, 2021 1:53 am


I'm trying to modify the ATtiny demos to work on an ATtiny85 and keep getting:

Code: Select all

/tmp/ccqAUctt.s: Assembler messages:
/tmp/ccqAUctt.s:255: Error: illegal opcode jmp for mcu avr25
make: *** [../../ChibiOS/os/common/ports/AVR/compilers/GCC/ build/obj/chcore.o] Error 1
make: *** Waiting for unfinished jobs....

To get that far I had to set it change the entry in the Makefile from

Code: Select all

MCU = attiny167


Code: Select all

MCU = attiny85

as well as cutting out the UART related functions.

I would be tempted to say it's not worth it because the chip only has 8K of flash, but hal_st_lld has an __AVT_ATtiny85__ macro, so there's been at least some effort to make it work.

Is there some other piece that I'm missing?

Return to “AVR Support”

Who is online

Users browsing this forum: No registered users and 3 guests