Skip to main content
Jan Breuer
Associate II
November 14, 2017
Question

[bug] STM32CubeMX generate lot of .tmp files in source directory

  • November 14, 2017
  • 4 replies
  • 1442 views
Posted on November 14, 2017 at 09:48

After creating the project, there are lot of .tmp files in the source directory. They are always regenerated. I have selected to generate all code in main.c instead of separate file for each peripheral.

e.g. gpio.tmp

#n/** Configure pins as #n #t#t #t* Analog #n #t#t #t* Input #n #t#t #t* Output#n #t#t #t* EVENT_OUT#n #t#t #t* EXTI
*/
static void MX_GPIO_Init(void)
{
#n
#n#t/* GPIO Ports Clock Enable */
#tLL_AHB1_GRP1_EnableClock(LL_AHB1_GRP1_PERIPH_GPIOA);
#tLL_AHB1_GRP1_EnableClock(LL_AHB1_GRP1_PERIPH_GPIOB);
#n
}
#n
�?�?�?�?�?�?�?�?�?�?�?

MCU:STM32F030F4Px

PC OS: Linux

CubeMX version: 4.0

Firmware package:STM32Cube FW_F0 V1.9.0

    This topic has been closed for replies.

    4 replies

    ST Technical Moderator
    November 15, 2017
    Posted on November 15, 2017 at 15:24

    Hello,

    Please share your .ioc file. I will raise your issue internally to CubeMx team. 

    Best Regards

    Imen

    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. Thanks
    Jan Breuer
    Associate II
    November 15, 2017
    Posted on November 15, 2017 at 15:38

    Hello,

    here it is

    https://pastebin.com/raw/r8RkG40i

    BTW is there a better way to share files on ST forum?

    Jan

    ________________

    Attachments :

    ita_pwm.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyH9&d=%2Fa%2F0X0000000b5e%2FKxqQOc290HFJmzKGNv_v_XAXmp1K2oHb2.72d5R3a5Y&asPdf=false
    ST Technical Moderator
    November 15, 2017
    175516CGIL3
    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. Thanks
    Yuan Zhou
    Visitor II
    November 29, 2017
    Posted on November 29, 2017 at 02:50

    Also have this problem on Archlinux, Cubemx version 4.23.0.

    The same project on windows doesn't have this problem

    Christopher Wilson
    Visitor II
    January 8, 2018
    Posted on January 08, 2018 at 05:44

    FYI, I'm also seeing this bug on macOS 10.13.2 with CubeMX 4.23.0

    Houda GHABRI
    ST Employee
    May 3, 2018
    Posted on May 03, 2018 at 15:29

    @

    Breuer.Jan

    Hi,

    you can upgrade to the latest version of CubeMX, the problem is solved.

    regards,

    Houda