Skip to main content
Visitor II
October 13, 2017
Question

how to write option byte in compile time

  • October 13, 2017
  • 1 reply
  • 531 views
Posted on October 13, 2017 at 16:23

how to write option byte in compile time.

Like when i compiling my code,at that time of compiling, i have to write values in option byte or set read out protection.

    This topic has been closed for replies.

    1 reply

    Visitor II
    October 25, 2017
    Posted on October 25, 2017 at 08:05

    In C the answer is simple: you don't. You'll have to do that in the tool chain that compiles the code, and then transfers it to the µC. Setting option bytes clearly is a task for the second part, the transfer.

    Note that in Forth the compiler runs on the µC. There the answer would be different. Running a compiler on the target opens the door to very interesting solutions for adaptive systems.