cancel
Showing results for 
Search instead for 
Did you mean: 

Where is main.h and where should i put macro code for a project CubeMx gives?

Taehyeong Gu
Associate II
Posted on April 14, 2017 at 15:08

Hi. guys.

it's simple question to someone, which is not me.

Where can i find main.h from a project the CubeMX provide?

below only header files i can find are.

0690X00000606mAQAQ.png

I have been curious when i was going to find and utilize USART_TwoBoards_Compolling example.

and there are these codes in its main.h

0690X00000606mtQAA.png

So i wanted to copy this code and i couldnt find proper place(main.h) to paste it.

anyway my question is where i can find main.h or other header file which contains  ''/* Exported macro------------*/ ''

of course i explore in mxconstatns.h but i thought the header file isnt for maco code.

thanks in advance.

4 REPLIES 4
Nesrine M_O
Lead II
Posted on April 14, 2017 at 16:52

Hi

kutang

,

Under the Inc folder in your generated project location you may find your main.h file

0690X00000606lRQAQ.png

-Nesrine-

Posted on April 17, 2017 at 13:19

Sorry but i couldnt find main.h in the Inc folder

0690X00000606n8QAA.png0690X00000606nDQAQ.png

Should i configure something for main.h to be created?

Thanks in advance.

Posted on April 17, 2017 at 17:29

Hi

Gu.Taehyeong

,

Could you please share your .ioc file for check?

-Nesrine-

Posted on April 18, 2017 at 04:53

https://www.dropbox.com/s/vcajf37fqxgi6nn/TEST.ioc?dl=0

 

Here you can download my .oic

Thank you.

------

Sorry, i made a link with wrong ioc file.

I have updated it. now you can download and check it.