Skip to main content
Brahim Ouinten
Visitor II
February 17, 2017
Question

#pragma to configure the option bytes

  • February 17, 2017
  • 1 reply
  • 541 views
Posted on February 17, 2017 at 13:36

Please,

Is there any #pragma to configure the option bytes in the source code.

Thanks.

    This topic has been closed for replies.

    1 reply

    Tesla DeLorean
    Guru
    February 17, 2017
    Posted on February 17, 2017 at 17:20

    #pragma are compiler/tool-chain specific, and they don't what to get that chip/processor specific

    Can you push the option bytes into a linker section, and direct content there with an attribute?

    The most practical method is to have your own code check the option bytes for desired settings, and then configure those setting when the defaults are detected.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..