while(1) {
void * dest=(void *)0x20000000; //an example of accessing AHB SRAM
memcpy(dest, (void *)buffer, sizeof(buffer)); //comment out this line, then USB works, if adding this line, USB does not print anything.
count++;
buffer[0]=count;
count = debug_printf("Hello world!!\n\r");
} |