This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS: Changing IMAGE_VALID_CONF in CCFG with the syscfg file

Tool/software: Code Composer Studio

As far as I can tell the old ccfg.c file is replaced with the new .syscfg file. I can see settings which used to be set in the ccfg.c file like the Enable Bootloader settings under the device configuration setting in the .syscfg file. But I do not see an option for changing the IMAGE_VALID_CONF setting which used to be done with SET_CCFG_IMAGE_VALID_CONF_IMAGE_VALID.

So how do I set this option with the new .syscfg file?

  • Hi

    That seems to be a bug, I have filed a ticket to get this fixed. 

    In the meantime, You should be able to define SET_CCFG_IMAGE_VALID_CONF_IMAGE_VALID another place in your code. like this:

    #ifndef SET_CCFG_IMAGE_VALID_CONF_IMAGE_VALID
    #define SET_CCFG_IMAGE_VALID_CONF_IMAGE_VALID           0x00000000                  // Flash image vector table is at address 0x00000000 (default)
    // #define SET_CCFG_IMAGE_VALID_CONF_IMAGE_VALID        <valid_vector_table_addr>   // Flash image vector table is at address <valid_vector_table_addr>
    // #define SET_CCFG_IMAGE_VALID_CONF_IMAGE_VALID        <invalid_vector_table_addr> // Flash image vector table address is invalid. ROM boot loader is called.
    #endif

    Regards, 
    Vegard

  • Hi Vegard,

    It is good to know that this is a known bug.

    I did add a define SET_CCFG_IMAGE_VALID_CONF_IMAGE_VALID 0x50000 at the top of my main file, but when I debug my program I can see that the IMAGE_VALID_CONF has not been changed in Registers overview you get when debugging. Did you have to change something in the properties of your project to make it work?

    It is working right now when I use the debugger because it just jumps to the main function of my application which starts at 0x50000, but it doesn't work properly when it is supposed to reboot and I think it might be because of the wrong IMAGE_VALID_CONF.

  • Hi Vincent. 

    Sorry for the delay. If you define SET_CCFG_IMAGE_VALID_CONF_IMAGE_VALID as a global define in the project properties, it should work correctly. You can find this in properties under build -> ARM Compiler -> Predefined Symbols

    Vegard