Chodzi ci o tą funkcję z CMSIS
Zaloguj się, aby zobaczyć kod
?
This function transmits a character via the ITM channel 0.
It just returns when no debugger is connected that has booked the output.
It is blocking when a debugger is connected, but the previous character send is not transmitted.
\param [in] ch Character to transmit
\return Character to transmit
A potem w syscalls.c
Zaloguj się, aby zobaczyć kod
I potem standardowo printf, ale nigdy tego nie próbowałem.
Dodano po 1 [godziny] 49 [minuty]: Nie o to ci chodziło
Doczytałem i zrobiłem tak jak jest to opisane w readme.txt linaro
opcje dla linkera
LD_FLAGS += --specs=rdimon.specs -Wl,--start-group -lgcc -lc -lc -lm -lrdimon -Wl,--end-group
usunąłem plik syscals.c i wszystko ładnie się skompilowało
Odpaliłem OpenOCD z opcjami openocd -f scripts/board/stm32f4discovery.cfg -c "init; arm semihos"
OpenOCD odpisał "semihosting is enabled".
ale printf nie działa

a to chyba o to chodzi ?