Skip to content

Instantly share code, notes, and snippets.

@roboter
Created August 20, 2024 17:01
Show Gist options
  • Save roboter/0a4feba863a680888fc371dd0bb09310 to your computer and use it in GitHub Desktop.
Save roboter/0a4feba863a680888fc371dd0bb09310 to your computer and use it in GitHub Desktop.
/* Send a char through ITM */
int _write(int file, char *ptr, int len) {
int DataIdx;
for (DataIdx = 0; DataIdx < len; DataIdx++) {
ITM_SendChar(*ptr++);
}
return len;
}
/* USER CODE END 4 */
@roboter
Copy link
Author

roboter commented Aug 23, 2024

  /* USER CODE BEGIN WHILE */
  while (1)
  {
	  printf("hello\n");
    /* USER CODE END WHILE */

@roboter
Copy link
Author

roboter commented Aug 23, 2024

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment