This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

What is used from #pragma import(__use_no_semihosting_swi) #include "stm32f4xx.h" #include <stdio.h> struct __FILE { int handle; /* Add whatever you need here */ }; FILE __stdout; FILE __stdin; int fputc(int ch, FILE *f) { return (ITM_S

What is used for

#pragma import(__use_no_semihosting_swi)
#include "stm32f4xx.h"
#include <stdio.h>

struct __FILE { int handle; /* Add whatever you need here */ };
FILE __stdout;
FILE __stdin;

int fputc(int ch, FILE *f) {
return (ITM_SendChar(ch));
}

espeacealy this

struct __FILE { int handle; /* Add whatever you need here */ };
FILE __stdout;
FILE __stdin;

int fputc(int ch, FILE *f) {
return (ITM_SendChar(ch));
}

0