Author Topic: STMCubeMX HAL: User Code includes in generated code  (Read 1765 times)

0 Members and 1 Guest are viewing this topic.

Offline Pack34Topic starter

  • Frequent Contributor
  • **
  • Posts: 754
STMCubeMX HAL: User Code includes in generated code
« on: September 28, 2016, 03:18:57 pm »
I'm using System Workbench for STM32 and working with an STM32F7 with the HAL libraries. The CMSIS libraries do not support the F7 line.

To generate the initial code, I've been using the STMCube software.

The main issue is that I can write additional code files and associate them fine, however, when I add include statements targeting my code from any of the generated code, I get compiler errors that the file cannot be found. However, it's there and all additional code under the User folder compiles fine.

All of the generated code is placed under the Project\Src folder.

What I'm guessing is happening, is that the compiler just isn't looking into the correct folders. Is there some setting I'm missing in the IDE so I can do this? As it stands, I cannot add a header file to the main.c file...
 

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 10091
  • Country: us
Re: STMCubeMX HAL: User Code includes in generated code
« Reply #1 on: September 28, 2016, 03:47:14 pm »
Google has you covered!

Yes, you have to add a path to the include files
http://www.openstm32.org/forumthread1738
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->