I'm building a project with the following make file and it will not create the usbdrvasm.o file. The other S file is created fine. If I drop this file in the folder from an already compiled folder the project compiles but I need to modify it.

.. and is the actual filename (in the file system) really usbdrvasm.S? (Not sure how Studio will react if its actually usbdrvasm.s).

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here.

No guarantees, but if we don't report problems they won't get much of a chance to be fixed! Details/discussions at link given just above.

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

Never a great idea to call asm sources .s rather than .S as many "clean" rules do an "rm -f *.s" (but not a "rm -f *.S"). Also .S means "preproces then Asm" and .s means just "straight to asm". So if it #include's or #define's or anything like that you want it to be a .S not a .s

It is the only mention of "usbdrvasm" in the entire thing. So the project seems to be reliant on this .o file being pre-built. IOW usdrvasm.S does not appear to be an input to the build. If you can "see" it in the Solution/Project then I suspect the build action is not set to "assemble/compile".

And just to re-cap, to generate this log I delete the usbdrvasm.0 file. My understanding is that the make will tell the compiler to make my o file from my usbdrvasm.S. Otherwise I'm not sure how it could have been made in the first place.

maybe there is an error in my S file?

ill post it to be sure but to my knowledge it never changed, though I don;t stare at asm all day so I would not spot the error.

First thing noticed: The clean target does not clean out the /usbdrv/usbdrvasm.o file .

Could you check in your file-system if it exists?

The clean target does clean out /usbdrv/usbdrc.o (the one emanating from the /usbdrv/usbdrv.c file) which is in the same directory as the assembler file, so something seems special with the assembler file in particular.

clawson wrote:

I suspect the build action is not set to "assemble/compile".

Did you double-check this?

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here.

No guarantees, but if we don't report problems they won't get much of a chance to be fixed! Details/discussions at link given just above.

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

You can't use any random C header file with the assembler. You have to modify the header file to exclude the C stuff when fed into the assembler.

Bingo, I added a global variable in usbavr.h, that is causing the issue. Thx.

"Could you check in your file-system if it exists?" Yeah JohanEkdahl, that is what I noticed that spawned this issue. I wanted to make a change in this file but saw that the clean does not remove it. So I removed it manually and built... now I get these errors (no changes yet made).