Hello,
I just created a project with Start.Atmel and I would like to print some text on the USB serial port of my SAMD21 Xplained Pro board.
The generated code called system_init() which calls
USART_0_init();
USART_1_init();
USART_2_init();
I just added a simple printf, but it doesn't work. I did include a STDIO_REDIRECT in my design, so I would have expected it to be working out of the box or to have some indications on how to do it.
#include "atmel_start.h"
#include "atmel_start_pins.h"
#include "stdio_start.h"int main(void)
{
system_init();printf("hello, world.\n");
/* Replace with your application code */
while(1) { }}
I also checked some examples like the 8khz oscillator demo which do print things on the screen, but I couldn't mix it with my start.atmel code.
Could someone point me to some code on how to do this?