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

Error in Configuration Wizard parser

This is an example from www.keil.com/.../configWizard.html

//   <o TIMESTAMP_SRC>Time Stamp Source
//      <dwt=>     DWT Cycle Counter
//      <systick=> SysTick
//      <user=>    User Timer
//   Selects source for 32-bit time stamp
#define TIMESTAMP_SRC  systick

Try inserting a digit into both instances of "TIMESTAMP_SRC", for example "TIMESTAMP2_SRC" and the parser will fail with
"Syntax error in Options Block - line xxx:
Invalid numeric number."
Pregrammers very frequently use #defined values with digits and this is a severe limitation.

Parents
  • Hello Alex,

    The configuration wizard annotations are for making an easy to use Wizard view for Programmers. The Wizard saves typing, and also prevents bad values being entered (since you can control the ranges).

    The annotations were designed to build a view like this:

    www.keil.com/.../RTX_Conf_CM_Wizard_View.png

    If you want to set to systick, you should do that outside of the configuration wizard, that is to say, after this line in the config file:

    //------------- <<< end of configuration section >>> -----------------------

    #If TIMESTAMP
    #define TIMESTAMP_SRC systick
    #endif

    ///////

    Another option is to make a premade list of valid values - these could be the values of systick.

    // <o>Tick Timer interval <10=> 10 ms <20=> 20 ms <25=> 25 ms
    // <40=> 40 ms <50=> 50 ms <100=> 100 ms
    // <200=> 200 ms
    // System Tick Timer interval for software timers
    //
    Default: 100 ms
    #define TICK_INTERVAL 100

Reply
  • Hello Alex,

    The configuration wizard annotations are for making an easy to use Wizard view for Programmers. The Wizard saves typing, and also prevents bad values being entered (since you can control the ranges).

    The annotations were designed to build a view like this:

    www.keil.com/.../RTX_Conf_CM_Wizard_View.png

    If you want to set to systick, you should do that outside of the configuration wizard, that is to say, after this line in the config file:

    //------------- <<< end of configuration section >>> -----------------------

    #If TIMESTAMP
    #define TIMESTAMP_SRC systick
    #endif

    ///////

    Another option is to make a premade list of valid values - these could be the values of systick.

    // <o>Tick Timer interval <10=> 10 ms <20=> 20 ms <25=> 25 ms
    // <40=> 40 ms <50=> 50 ms <100=> 100 ms
    // <200=> 200 ms
    // System Tick Timer interval for software timers
    //
    Default: 100 ms
    #define TICK_INTERVAL 100

Children