#avr Logs

Feb 11 2020

#avr Calendar

05:31 AM [1]MrMobius is now known as MrMobius
08:07 AM merethan_w: When I examine compiler input generated by Atmel Studio it includes "C:\\Program Files (x86)\\Atmel\\Studio\\7.0\\packs\\atmel\\XMEGAA_DFP\\1.1.68\\include". When I use the same set of include paths in my CMake definitions, I get compile errors like ASF/xmega/utils/compiler.h:49:12: fatal error: avr/io.h: No such file or directory. avr/io.h is in ¨C:\\Program Files (x86)\\Atmel\\Studio\\7.0\\toolchain\\avr8\\avr8-gnu-toolchain\
08:07 AM merethan_w: \avr\\include". Adding this path to my compiler input using my CMake script produces a lot of errors due to double definitions such as uint8_t.
08:08 AM merethan_w: Which files should I consider part of my ¨toolchain¨, when setting up one using CMake?
08:26 AM rue_bed: I just use a regular makefile, gcc-avr, and a normal editor
08:49 AM vmt: cmake is just so sad
08:49 AM vmt: soon there's a new fad which generates cmake files
08:50 AM vmt: and after that something which generates files for said system
09:02 AM nuxil: lol
09:07 AM nuxil: merethan_w, youre on windows. remember to install the MinGW tools or alike to get make. its not on your pc by default.
09:07 AM nuxil: i dont know if atmel studio has it though
09:09 AM merethan_w: I have MSYS2
09:09 AM merethan_w: That part of the setup works as it should. It is compilation that fails.
09:10 AM merethan_w: Even though I copied all paths from the makefiles generated by Atmel Studio, my compilation fails for reasons I do not currently understand.
09:12 AM nuxil: once upon a time, i installed atmel stuidio. opend it. closed it and uninstalled it.. that my experiance with atmel studio :p
09:13 AM nuxil: here is a makefile i use for my arduino uno "atmega 328" when im on windows. feel free to use and edit it as you like.
09:13 AM nuxil: http://paste.debian.net/1130173/
09:14 AM nuxil: it uses the gcc and avrdude included in the shitty arduino ide.
09:15 AM nuxil: i have not added a section for the fuses tho. i usaly set them manualy
09:16 AM nuxil: if needed
09:17 AM nuxil: time to food. pizza
09:17 AM Fuchikoma: I only ever use Atmel Studio for assembly programming, so I never touch makefiles :/
09:22 AM * nuxil push & pops Fuchikoma
09:22 AM * vmt has the best domain
09:22 AM * Fuchikoma 's stack grows
12:25 PM ruel is now known as lvlinux
11:57 PM day__ is now known as day