When I want to make an assembly language code for ATmega328P in Atmel Studio 7.0.
These was prompted from "Output", how to fix it ?
Is it just this project, or can you get any example project to build ?
This was the first time I use Atmel Studio.
With any new thing, it's always best to start with a known-working working example.
There's a load of introductory videos on the Atmel Studio page ...
a known-working working example.
I seem to be suffering from EMTS (Early Morning Tautology Syndrome).
The error that is showing has nothing to do with the code you are writing. The error is possibly saying there's something wrong with your AS7 installation.
It's a shame really as "ASF" has nothing to do with the assembler so why AS7 would be going anywhere near ASF when all you want to do is build a bit of Asm is a complete mystery!
Anyway below I attach a working AS7 project with something like your code from #1 in it - see if this works if you simply load/build/debug it.
Your code woks.
© 2022 Microchip Technology Inc.