cancel
Showing results for 
Search instead for 
Did you mean: 

CMSIS with Keil

LBern.5
Associate II

Hi, 

I have created a project with Keil compiler (v5.17 )and I'd like to use the CMSIS driver for SPI.

When I selected CMSIS in RTE, it tells me that I need CubeMX for configuring the HAL.

I used CubeMX for generating the code, but there are many errors in the compiler.

Best regards

Luca

5 REPLIES 5

Enable the sub-components in stm32f3xx_hal_conf.h

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
LBern.5
Associate II

The enable is based on:

#ifdef _RTE_

#include "RTE_Components.h"       /* Component selection */

#endif

This is part of RTE_Components, that is generates in automatic.

Yet you get errors, want to address those, check what's in stm32f3xx_hal_conf.h

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
LBern.5
Associate II

Hi,

the problem is that the file are generated from CubeMX, if I changed this files manually, everytime change something with CubeMX I will have the same problem.

Ok, but to get ST to fix that you first need to identify what they are doing wrong.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..