Skip to main content
LBern.5
Associate
Mar 13, 2023 3:21 PM UTC
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
Mar 13, 2023 3:54 PM UTC

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
Mar 13, 2023 4:14 PM UTC

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
Mar 13, 2023 4:26 PM UTC

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
Mar 14, 2023 7:08 AM UTC

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
Mar 14, 2023 11:59 AM UTC

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..