I've been unsuccessful looking for a reference describing how to build the Marlin 3D printer firmware in Atmel Studio. It seems to be very deeply Arduino-based, and the makefile seems to be Linux-oriented. I'm running Studio v. 7 and have a JTAGICE MKII to program a controller board... but I have no idea how to take this mess of source code, some from the github https://github.com/MarlinFirmware/Marlin and some apparently from various Arduino sources and build a working firmware. Can anyone suggest a starting point?
In the meantime I've created a solution in Atmel Studio and am adding .h and .cpp files one at a time, but it's tough slogging. The Marlin source code doesn't even have a main()! So I'm open to any advice. I just want to build it and flash a controller board for some testing.