cancel
Showing results for 
Search instead for 
Did you mean: 

BUG: stm32cubemx 4.7 code generation is TOO slow

vromanov
Associate II
Posted on March 30, 2015 at 17:42

Hello!

Code generation by stm32cubemx 4.7 is very, very slow. About 30 minutes.

I use windows 8.1.  Project file attached
7 REPLIES 7
Posted on March 30, 2015 at 18:32

I'm not seeing this on an XP virtual machine running under VMWare on a MacBook Pro using 4.7.0 under CubeMX 1.0 standalone.

For a reasonably complex project on a 32F407, with FatFS, CAN, ADC, DAC, RTC, SPI, SD, 8 timers, 3 UARTS, random number generator, etc.  I'm getting about 80 seconds.
Posted on March 30, 2015 at 18:50

Using your project, the time is less than 30 seconds.

vromanov
Associate II
Posted on March 30, 2015 at 19:00

This bug reproduced on 2 PC's with Windows 8.1. This bug not exists in previous versions of cubemx.

vromanov
Associate II
Posted on March 30, 2015 at 19:11

I found possible root of this problem. After every code generation .project file size increases. After first code generation size=13k, after second size=23k, etc.

Fast hotfix - remove .project file before code generation

Here you can see difference in file creation time (and file size after some regenerations).

C:\Work\aic_stm32f4\stm32f407\TrueSTUDIO\stm32f407 Configuration>dir

 Volume in drive C is Windows8_OS

 Volume Serial Number is B25F-EA56

 Directory of C:\Work\aic_stm32f4\stm32f407\TrueSTUDIO\stm32f407 Configuration

02.03.2015  10:59    <DIR>          .

02.03.2015  10:59    <DIR>          ..

30.03.2015 

18:10 

           24 085 .cproject

30.03.2015 

18:36

           288 685 .project

02.03.2015  10:59    <DIR>          .settings

30.03.2015  18:10             5 393 stm32f407 Configuration.elf.launch

30.03.2015  18:10             4 855 STM32F407ZE_FLASH.ld

               4 File(s)        323 018 bytes

               3 Dir(s)  776 892 870 656 bytes free

stm32cube-t
Senior III
Posted on April 07, 2015 at 17:20

Hello,

Can you please provide additional details: is windows 8 the 32 or 64 bit version, which version of java are you using.

Thank you

vromanov
Associate II
Posted on April 07, 2015 at 22:41

Hello!

How to reproduce:

1) Create new project

2) Select TrueStudio as IDE

3) Press Generate Code. Make backup copy .project file

4) Press Generate Code again. Compare size of .project file with backup copy

5) Repeat step 5. On every code generation file size increases.

This is lenovo t540p with preinstalled Windows 8.1 x64.

C:\Users\Vladimir\STM32Cube\Repository>java -version

java version ''1.8.0_25''

Java(TM) SE Runtime Environment (build 1.8.0_25-b18)

Java HotSpot(TM) Client VM (build 25.25-b02, mixed mode)

stm32cube-t
Senior III
Posted on July 01, 2015 at 11:48

Issue fixed with STM32CubeMX 4.8.