AnsweredAssumed Answered

Processor Expert generate too much code as expected

Question asked by Gaston Schelotto on Oct 18, 2016
Latest reply on Oct 18, 2016 by therealfreegeek

Hello,

I'm using KDS v3.2 with KDSK 1.3 and PE. After creating a new project for FRDM-KL03Z I've initialized some PE components as spiCom1, gpio1... as shown in the next screenshot. Then I've just added a while(1) in main.c and the compilation result ends up in almost 14KB for the .text section that means a half of the total flash memory (32KB of the MKL03Z32VFK4).

Can anybody help me to reduce the generated/compiled code? I find it too much for a few components initialization.

Here I attach the whole project for better understanding.

regards,

gaston

Original Attachment has been moved to: testing.zip

Outcomes