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

PSoC™ Creator & Designer Forum Discussions

NXTY_Tatebayasi
Level 4
Level 4
Distributor - NEXTY (Japan)
5 solutions authored 25 replies posted 100 sign-ins

Hi, Community

How do I grant build options (-fstack-usage) using PSoC Creator?

I learned that there is a compiler option in the KBA description below to check the stack size.

Controlling SRAM Usage in PSoC® Applications - KBA93584 

 

Could you tell me how to add "-fstack-usage" command?

0 Likes
1 Solution
Gautami_12
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 50 solutions authored

Hi @NXTY_Tatebayasi ,

To add the -fstack-usage command, right-click the file in the Workspace Explorer and click “Build Settings”. Then click “compiler”, then “Command Line ”, and enter -fstack-usage via the 'Build Settings' menu in PSoC Creator.

Gautami_12_1-1676631663199.png

 

Warm Regards,
Gautami J

 

View solution in original post

3 Replies
Gautami_12
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 50 solutions authored

Hi @NXTY_Tatebayasi ,

To add the -fstack-usage command, right-click the file in the Workspace Explorer and click “Build Settings”. Then click “compiler”, then “Command Line ”, and enter -fstack-usage via the 'Build Settings' menu in PSoC Creator.

Gautami_12_1-1676631663199.png

 

Warm Regards,
Gautami J

 

NXTY_Tatebayasi
Level 4
Level 4
Distributor - NEXTY (Japan)
5 solutions authored 25 replies posted 100 sign-ins

Hi, @Gautami_12  -san

 

Thank you for telling us about it.
I built the project after setting the build options.
I got what I was looking for as a .su file was generated in the workspace folder.

 

Best Regards,

Chihiro Tatebayashi

0 Likes
Gautami_12
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 50 solutions authored

Hi @NXTY_Tatebayasi ,

Glad that your query is resolved.

Warm Regards,
Gautami J

0 Likes