platformio / platform-atmelavr

Atmel AVR: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/atmelavr
Apache License 2.0
140 stars 105 forks source link

PlatformIO passes the wrong -mmcu flag for the assembler (ATmega328PB) #317

Closed PeterMaes closed 1 year ago

PeterMaes commented 1 year ago

It seems PlatformIO can't compile assembler files for ATmega328PB

https://community.platformio.org/t/avr-assembler-code-for-atmega328pb

valeros commented 1 year ago

Hi @PeterMaes, what extension did you use for assembly files? I'd recommend trying .S.

PeterMaes commented 1 year ago

I am using .s , but I have also tried .asm as extension

valeros commented 1 year ago

Try .S in the upper case.

PeterMaes commented 1 year ago

OK, that seems to be the sollution to have a succesfull compilation of the assembler code. Maybe something to improve or a better way in error description would help.

Issue resolved ! Thx for the support !