Illegal opcode on ATtiny

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

Moderators: utzig, tfAteba

mikenick42
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

Hi,

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/rules.mk:174: 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


to

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?

User avatar
tfAteba
Posts: 530
Joined: Fri Oct 16, 2015 11:03 pm
Location: Chartres, France
Has thanked: 82 times
Been thanked: 47 times

Re: Illegal opcode on ATtiny

Postby tfAteba » Mon Jun 14, 2021 1:28 pm

Hello mokenick42,

Can you give me your setting? (ChibiOS version, board, changes made, a patch will be perfect)
so that I can reproduice your error?

Some time ago, I make ChibiOS to work on ATiny85, so it is possible, but it is hard to tell you what is you problem with the given information.
regards,

Theo.

User avatar
tfAteba
Posts: 530
Joined: Fri Oct 16, 2015 11:03 pm
Location: Chartres, France
Has thanked: 82 times
Been thanked: 47 times

Re: Illegal opcode on ATtiny

Postby tfAteba » Mon Jun 14, 2021 1:31 pm

I just found the link to my git hub where I made attiny85 ChibiOS port:
https://github.com/tfateba/chibios-on-attiny85

You can then take a look to this port to do what you need :)
regards,

Theo.


Return to “AVR Support”

Who is online

Users browsing this forum: No registered users and 1 guest