Skip to main content
LBern.5
Associate
March 13, 2023
Question

CMSIS with Keil

  • March 13, 2023
  • 3 replies
  • 2526 views

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.

3 replies

Tesla DeLorean
Guru
March 13, 2023

Enable the sub-components in stm32f3xx_hal_conf.h

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
LBern.5
LBern.5Author
Associate
March 13, 2023

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
March 13, 2023

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

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
LBern.5
LBern.5Author
Associate
March 14, 2023

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
March 14, 2023

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 VenmoUp vote any posts that you find helpful, it shows what's working..