cancel
Showing results for 
Search instead for 
Did you mean: 

KEIL very slow with CubeMX

Sasha A
Associate II
Posted on January 29, 2018 at 20:33

Hello!

I am using KEIL MDK 5 and it is compiling very very slow.

CubeMX  v4.24

STM32CubeF4 v4.19.

Any ideas  ??

Thanks

Sasha

#cubemx-4.24 #keil-mdk5
14 REPLIES 14
Posted on January 30, 2018 at 16:46

Already tested with ll library, and same problem.

I am talking about more than 2 minutes compiling time for 8k code size!!

This is not reasonable at all and it wasn't like that before.  

Posted on January 30, 2018 at 17:39

Try to ask Keil support as well

Posted on January 30, 2018 at 18:42

KEIL is not the problem. Someone already asked it. see this discussion:

http://www.onarm.com/forum/62782/

 
Tilen MAJERLE
ST Employee
Posted on February 01, 2018 at 09:31

Hello,

problem on your side is due to the fact thatstm32fxxxxx.h files (files with bit descriptions, peripheral memory addresses) have been enlarged by 2 additional definitions for every bit, and can go up to 20k lines of code in F7 family:

/* These 2 are new for every bit */
#define PERIPH_REG_BIT_Pos 1
#define PERIPH_REG_BIT_Msk (1 << PERIPH_REG_BIT_Pos)
/* This one is old */
#define PERIPH_REG_BIT PERIPD_REG_BIT_Msk�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?

Keil cannot handle (apparently) big files for include. Similar problem does not affect GCC or IAR.

Best regards,

Tilen

Meyer Yu
Associate

Change Arm compiler to use V6, default is V5.

You can modify it on Project Option → Target → Code Generation.