Please, Is there #pragma to configure option bytes for STM32L011F4, if not, how to add option bytes configuration to compilation.
Thanks.
I don't think so - it's not really a thing for the compiler.
If you want your code to configure them, then you will have to consult the ST documentation to find if that's possible and, it if it is, how to do it.
If you want your programming to configure them, then you will have to consult the tool documentation to find how
I guess you're coming from Microchip PIC method of setting configuration.
The ARM tool is significantly more professional than that one, and as such does things correctly. So no #pragma for it.
From the debugger options select a Flash Algorithm for the Options Bytes of your device.
Add an IROM2 section describing the memory the Options Bytes reside in, or use a scatter file.
Add an attribute to the uint16_t array of data destine for the Option Bytes to direct the linker to place them in the IROM2 section.
Good evening.
Thank you all for your answers. As for the response from Westonsupermare Pier, I do not know how to do it, can you send me a document that explains how.
Thank you in advance.
Sorry not looking to spend time writing documentation or creating videos for parts I'm not currently using. Review the suggested course of action in the context of the product documentation
http://www.keil.com/support/man/docs/uv4/uv4_fl_usingflashmenu.htm
Ok, thanks Westonsupermare Pier.
Thank you very much, I managed to do it.
Here is the solution in this link :
www.4shared.com/.../Option_bytes.html
Thank you for nice and clear explanation! Worth to publish it on some place with global visibility.
Georg