Skip to main content
Essayator
Associate II
March 13, 2022
Question

Why is the core_cm4.h file not generated then?(stm32L476RG)

  • March 13, 2022
  • 4 replies
  • 3046 views

Hello,

I am beginner with stm32, I try to start my first project but I cannot do it, because there is the core_cm4.h file which was not generated here is the error message: Description Resource Path Location Type

fatal error: core_cm4.h: No such file or directory stm32l476xx.h /bliking-test/Drivers/CMSIS/Device/ST/STM32L4xx/Include line 165 C/C++ Problem

This topic has been closed for replies.

4 replies

KnarfB
Super User
March 13, 2022

What tools are you using to generate the code, what tool versions, what OS?

Normally, it *is* generated.

hth

KnarfB

Essayator
EssayatorAuthor
Associate II
March 13, 2022

I found the file I copied it to the folder, there my code works but I can't read data from a sensor (pmodgyro)

Sara BEN HADJ YAHYA
ST Technical Moderator
March 14, 2022

Hello @Essayator​ ,

Could you please share your ioc file or provide us with the scenario that led to this issue?

Thanks,

Sara.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
Essayator
EssayatorAuthor
Associate II
March 14, 2022

Hello @Sara BEN HADJ YAHYA​ ,

can I share my file ioc in the comment if not how to share it

Sara BEN HADJ YAHYA
ST Technical Moderator
March 14, 2022

Hello @Essayator​ ,

Yes you can attach the ioc in a comment.

Sara.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
Essayator
EssayatorAuthor
Associate II
March 14, 2022

here is my file

Sara BEN HADJ YAHYA
ST Technical Moderator
March 15, 2022

Hello @Essayator​ ,

There is no issue when I generated a project using your ioc. I even created a new project from scratch and I didn't face any error during the build.

Please copy your ioc file in a new folder and generate a new project.

I hope this helps :)

Sara.

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.