Skip to main content
LBern.5
Associate
Question

CMSIS with Keil

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

This topic has been closed for replies.

5 replies

Tesla DeLorean
Guru

Enable the sub-components in stm32f3xx_hal_conf.h

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

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.

Tesla DeLorean
Guru

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
LBern.5
LBern.5Author
Associate

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.

Tesla DeLorean
Guru

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..