Announcements

Help us improve the Power & Sensing Selection Guide. Share feedback

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

cross mob
NXTY_Tatebayasi
Level 6
Level 6
Distributor - NEXTY (Japan)
100 replies posted 100 likes received 50 likes received

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
50 likes received 100 solutions authored 250 replies posted

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
50 likes received 100 solutions authored 250 replies posted

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 6
Level 6
Distributor - NEXTY (Japan)
100 replies posted 100 likes received 50 likes received

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
50 likes received 100 solutions authored 250 replies posted

Hi @NXTY_Tatebayasi ,

Glad that your query is resolved.

Warm Regards,
Gautami J

0 Likes