This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STM32f1 option bytes

is there a means of including an option byte set (here: hardware watchdog) in a Keil build for the STM32f1xx?

Erik

Parents
  • thanks 1,000,000
    I can edit the necessary into the projects .s file but am worried that some "autobuild" (at some time) will remove the additions.
    looking at the .s file in the project there is, in the header, the following
    ;/* <<< Use Configuration Wizard in Context Menu >>> */
    I have looked all over and can not find a "Context Menu" does it exits, and, if so, where?

    Erik

Reply
  • thanks 1,000,000
    I can edit the necessary into the projects .s file but am worried that some "autobuild" (at some time) will remove the additions.
    looking at the .s file in the project there is, in the header, the following
    ;/* <<< Use Configuration Wizard in Context Menu >>> */
    I have looked all over and can not find a "Context Menu" does it exits, and, if so, where?

    Erik

Children
  • The file with option bytes has the annotations for uVision Configuration Wizard which shows a dialog style representation of the settings (with edit capabilities).

    When you open the mentioned file in uVision it will present a tab called “Configuration Wizard”. Click on it.

    More information about Configuration Wizard: http://www.keil.com/uvision/ide_edt_cfgwizard.asp

  • a) I do believe there is no "autoupdate" of the .s file
    b) the Wizard is not very smart - no mention of the the device option bits.
    c) will try when the "communal build process" makes it feasible.

    thanks again,

    Erik

  • I include this in the .s

    DATA0           EQU     0xFF
    DATA1           EQU     0xFF
    nDATA0          EQU     DATA0:EOR:0xFF
    nDATA1          EQU     DATA1:EOR:0xFF
    
                    AREA    |.ARM.__AT_0x1FFFF800|, CODE, READONLY
    
                    DCB     DATA0, nDATA0, DATA1, nDATA1
    


    I then do a build and a flash download, among the messages I get this

    "......axf" - 0 Error(s), 0 Warning(s).
    
    Load "......AXF"
    No Algorithm found for: 1FFFF800H - 1FFFF803H
    

    Then I click "enter debug" and a grey box appear

    Error: Could not load file ......AXF
    

    something is screwy
    a) it reports "Load "......AXF"" while loading and report same file "can not load" on debug entry
    b) the Configuration Wizard only show stack and heap

    paths and filename is identical, replaced by .... for nondisclosure reasons

    what is wrong?
    OR
    is there a way to make the Configuration Wizard show more than stack and heap?

    Erik

  • simply including the .s file from "blinky': same abort

  • to build the "blinky' and it worked until I clicked "include in target build" for the STM32f10xOPT.s then same result

    the Keil example does not work unleess you exclude the 'intersting' part.

    my guess is that it is related to "No Algorithm found for: 1FFFF800H - 1FFFF80FH"
    How do you include the "algorithm", adding the section as "IROM2" does not do the trick.

    anybody had any success with this or "including an algorithm" and, if so, how?

    Erik

  • You need to include the correct Flash algorithm and then it should work.

    Go to Options for target – Utilities Tab – Settings for Flash programming and add the algorithm "STM32F10x Flash Options".