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.

CHECK_CRC and ENFORCE_CRC options missing from bl_config.h.tmpl

In TivaWare_C_Series-2.1.2.111\boot_loader, CHECK_CRC and ENFORCE_CRC define options do not seem to be in the bl_config.h.tmpl file.

This is not a big deal because these defines can be added manually, but it is not as clean as if they were present with the rest of the define options in the file.

  • Hi Tom,

    The Boot Loader User Guide clearly states that these can be added if the user wants to include these features in the code but must make accommodations in the vector table setup by adding the special 8 word header. Since these are conditional compile options, they are not included in the actual template and would need to be defined. This can be done in either a header file such as bl_config.h.tmpl (note the tmpl extension indicates it is a template and needs to be moved to the application source directory per the user guide), the linker command file, or the compile options.

    Certainly we could have included it as a commented #define in the header file, but this wouldn't necessarily be clean either as it isn't recommended to include commented code in production releases as it is a maintenance issue and ripe for creating a bug. As such, we chose to exclude it in the code and document it in the user guide.

    During development there are always choices how to do things and we made this choice in this case. It's simple enough to change it if you would like given the bl_config.h.tmpl is meant to be customized to the application needs.