A couple of 'Hello World' examples in C, one using a serial port, one using the USB port.
Another example in assembler. Structured macros are provided to use higher level constructs (if then else, while loops, etc.) within assembler.
The examples don't use the ASF libraries, as I use CodeBlock projects.
There seems to have a problem with the structured macro expansion. The list file shows correct expansion but when running a program, it doesn't work. When replacing the structured macros with normal instructions, the program runs fine.
By comparing the hex files, the jump labels generated by the structured macros are not adjusted correctly by the assembler and jump to the wrong places.