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.

TMS570LS0232: TI FEE: MemMap.h includes

Part Number: TMS570LS0232
Other Parts Discussed in Thread: ASH

In the ti_fee*.c files, MemMap is included twice: 

 #define FEE_START_SEC_CONST_UNSPECIFIED

#include "MemMap.h" 

/*

....

*/

#define FEE_STOP_SEC_CONST_UNSPECIFIED

#include "MemMap.h"

However, in MemMap.h:

#define __MEM_MAP_H__

 is never undefined. The header guards will prevent MemMap.h be included again - thus the second include has no effect.

Can this be fixed/the second include removed? 

  • Hello Ash,

    I noticed that the ti_fee_main() has 3 same statements of "#include "MemMap.h". Thanks for pointing this out. You are right, the 2nd one and 3rd one has no effect, and will not affect the code performance. I will check with the developer. Thanks

    Regards,

    QJ

    #include "MemMap.h"

  • Hello Ash,

    This is done as required by Autosar spec. Changes will not be made in FEE files. For details, you can look in to "AUTOSAR_SWS_MemoryMapping.pdf".