When exploring the example projects, I've noticed that the regular Blinky project has 3 targets.
I think I understand what Flash and RAM stand for (it's all a bit confusing), but I haven't seen "OPT" before; what is it? What could it be used for?
I've seen multiple address spaces described for STM32F407 (that I'm using). How does it relate to them?
I think that the assembly file is additionally linked with the OPT target. The parts that interested me were:
;// <e> Flash Option Bytes
FLASH_OPT EQU 1
and
FLASH_OPTCR EQU 0x0FFFAAEC
;// </e>
IF FLASH_OPT <> 0
AREA |.ARM.__AT_0x1FFFC000|, CODE, READONLY
DCD FLASH_OPTCR
ENDIF
END
I admit I understand close to nothing from them, though.
Best Answer
Oh, I found that in the description (should've looked there at once):