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. This line will not do anything harm to system. vcom_write("Hello world!!\n\r"); } |