Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 6 Forum Discussions

JCD
Level 3
50 sign-ins 25 sign-ins 10 replies posted
Level 3

Excuse me.

There is a problem that has been bothering me for a long time.

 

I would like to know how to set the code optimization level in Modus Tool.

 

Thank you .

0 Likes
1 Solution
RodolfoGL
Employee
250 sign-ins 5 comments on KBA First comment on KBA
Employee

You might want to look at this post. There is an additional step to do in the makefile.

https://community.infineon.com/t5/ModusToolbox-General/Optimization-Level-in-Modus-Toolbox/m-p/28955...

Set "CONFIG=Custom"

View solution in original post

0 Likes
2 Replies
Krupashankar
Moderator
Moderator 250 replies posted 100 solutions authored 5 likes given
Moderator

Hi @JCD,

Please find your makefile and edit CFLAGS define:

CFLAGS=-Os

Krupashankar_0-1642158756108.png

Different optimization levels for compiler :  https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html

You could also refer to Modul tool box user guide.

 

 
Thanks,
Krupashankar
0 Likes
RodolfoGL
Employee
250 sign-ins 5 comments on KBA First comment on KBA
Employee

You might want to look at this post. There is an additional step to do in the makefile.

https://community.infineon.com/t5/ModusToolbox-General/Optimization-Level-in-Modus-Toolbox/m-p/28955...

Set "CONFIG=Custom"

0 Likes