Problem in project building with Nucleo STM32F303K8T6
Hello,
this is my first post here and at first I want to say SORRY FOR MY ENGLISH.
But now -cut to the chase.
Few days ago I boughy Nucleo F303K8T6 board. I wanted to make a simple project on it and I saw that there is no such board in project creation windows. So I have created my own device using STM32F303K8Tx controller with ST-Link2-1/SWD. Project loaded and than I wanted to build it. But there was an error.
“#error “Please select first the target STM32F30X device used in your application (in stm32f30x.h file)””
I saw that in this header file there isn’t my nucleo board:
”/* Old STM32F30X definition, maintained for legacy purpose */
- if defined(STM32F30X)
#define STM32F303xC
- endif /* STM32F30X */
- if !defined (STM32F303xC) && !defined (STM32F334x8) && !defined (STM32F303x8) && !defined (STM32F301x8) && !defined (STM32F302x8) && !defined (STM32F303xE)
/* #define STM32F303xC */ /*!< STM32F303CB, STM32F303CC, STM32F303RB, STM32F303RC, STM32F303VB and STM32F303VC Devices */
/* #define STM32F334x8 */ /*!< STM32F334C4, STM32F334C6, STM32F334C8, STM32F334R4, STM32F334R6 and STM32F334R8 Devices */
/* #define STM32F302x8 */ /*!< STM32F302K4, STM32F302K6, STM32F302K8, STM32F302C4, STM32F302C6, STM32F302C8,
STM32F302R4, STM32F302R6 and STM32F302R8 Devices */
/* #define STM32F303xE */ /*!< STM32F303RE, STM32F303VE, STM32F303ZE Devices */
- endif
/* Tip: To avoid modifying this file each time you need to switch between these
devices, you can define the device in your toolchain compiler preprocessor. ”
Has somebody got same problem ? And how to figure it out ????
Please help !!!
Mathew (from Poland)
EDIT 1:
I have found that the SW for stm32 DO SUPPORT Nucleo-F303K8x boards. So what is the sense of writing “Here is the list of the target supported and tested:
- Nucleo-F303K8”
if it doesn’t support that or there are some mistakes in libs ?
Can somebody explain what to do to make it work ? I can’t even build my project.