AnsweredAssumed Answered

USART_Printf project using std periph lib and STM32F401RE board

Question asked by Chan on Dec 3, 2015
Latest reply on Dec 3, 2015 by Clive One
Hi all,
trying to use STM32F401RE board, uart printf, I tried using HAL driver, can see uart signals from the MCU but couldn't see it on my PC teraterm window. I think I'm missing something in uVision setting. Hope to figure out the problem soon.
Now I'm trying the same with std periph library and found there's a project template and example project USART_Printf in STM32F4xx_DSP_StdPeriph_Lib_V1.6.0. So I copied the template first and overwrote the source files from USART_Printf project. I fixed the include path, target device. (original was for some other STM32F4xx chips)
When I press build all, I see some red marks on some .s files like below.
redbar.JPG
I'm sure the file paths are correct and I cannot find any error mark displayed when I open those files. what could be the problems?
Another one is, when building, I see this error :
..\main.h(46): error:  #35: #error directive: "Please select first the Evaluation board used in your application (in Project Options)"
But when I see main.h, 
#if defined (USE_STM324xG_EVAL)
  #include "stm324xg_eval.h"

#elif defined (USE_STM324x7I_EVAL) 
  #include "stm324x7i_eval.h"

#elif defined (USE_STM324x9I_EVAL) 
  #include "stm324x9i_eval.h"

#else
 #error "Please select first the Evaluation board used in your application (in Project Options)"
#endif
I don't have a file for my STM32F401RE board such as stm324xe_eval.h. What can I do? I'm a novice in STM32 and just want to test printf without going deep into the codes..
Thanks!
Chan

Outcomes