F29H85X-SDK: SysConfig PWM initialization takes a huge amount of flash

Part Number: F29H85X-SDK
Other Parts Discussed in Thread: F29H850TU, SYSCONFIG

Hello, I'm deveolping a project using F29H850TU (Device)256ZEX (Package)F29H850TU8 (Variant), Code Composer Studio 20.3.0.14, F29 SDK 1.1.0.

When I setup PWM peripherals using SysConfig, to configure 6 PWM peripherals, the generated code requires 210KB of flash memory (see attached screenshot).

Is this normal, or am I missing something ? it seems to be oversized. If I configure only one PWM peripheral the flash used is about 70KB (which seems to me too much as well).

Thanks and best regards

Fabio

   

  • Hi Fabio,

    Could you share what your compiler optimization level is? Can you try O3 and see if that helps with the flash size? 

    SysConfig generates code, but in my opinion it doesn't generate the most efficient code. If you have the same ePWM configurations across all 6 PWMs, it may be better to copy what you need from the generated code, and write your own routine leveraging for loops for initialization purposes.

    I will relay this feedback to the software team to see if we can do something about this.

    Can you also maybe share your .syscfg that is configuring the single ePWM causing 70KB of flash? 

    Best regards,

    Ryan Ma