This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to set optimisation level in SES 5.34a (Nordic version)

Hi,

As in the subject, I cannot find where to change the optimisation level.  I am working with the Zephyr bluetooth sample project - peripheral_hr.

I have found a previous post on this topic (Case ID 213802) that says to right click on the project->Options-Code Generation->Optimisation Level.

In my setup, the only project where the Options menu item is not greyed out is this one:

and the displayed window does not have a Code Generation and Optimisation selection.

So how do I set the optimisation?

Regards,

AC

Parents Reply
  • Hi Amanda,

    Many thanks for your reply. Apologies for the slow response but I had to step away for a few days.

    I have tried your suggestion but, unfortunately, there is no change in behaviour.  I updated prj.conf as you suggested:

    CONFIG_NO_OPTIMIZATIONS=y
    CONFIG_MAIN_STACK_SIZE=4096
    CONFIG_BT_RX_STACK_SIZE=4096
    

    Then I quit SES, deleted the build folder to force a project rebuild then re-built the project for debug and ran it on the DK.  As you can see from the screenshot, I'm still getting a hard fault after a few seconds of running.

    There isn't much useful on the stack trace:

    Kind regards,

    AC

Children
Related