Skip to main content
aurelien23
Associate III
June 26, 2015
Question

How to change mcuconf.h values in the code generator?

  • June 26, 2015
  • 2 replies
  • 688 views
Posted on June 26, 2015 at 15:34

Hello,

I always have to manually change some values in mcuconf.h when I generate the code out of the config because I can't find how to set them in the config or anywhere else.

I'm using a 16MHz external xtal and I have to set SPC5_FMPLL0_IDF_VALUE and SPC5_FMPLL1_IDF_VALUE to 2 instead of the default 5. Same for SPC5_MCONTROL_DIVIDER_VALUE that I have to set to 15 instead of 1 to get my ICU-PWM config to work. Where can I set these value in the config to get correct values on code generation?

Thank you for all improvments since the v2.0
    This topic has been closed for replies.

    2 replies

    Erwan YVIN
    ST Technical Moderator
    June 26, 2015
    Posted on June 26, 2015 at 16:27

    hello Aurelien ,

    mcuconf.h is generated from the configuration file.

    HAL Drivers ==> Initialisation settings ==> FMPLL0 Settings 

    Best regards

                     Erwan

    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.
    aurelien23
    Associate III
    June 29, 2015
    Posted on June 29, 2015 at 08:53

    Hello,

    Oops, I never noticed it was collapsed...

    Thank you!