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.

FEE for RM48HDK

Other Parts Discussed in Thread: HALCOGEN

Hi,

I'm trying to use the FEE on the RM48HDK. As suggested in previous posts I've used the HalCoGen driver generated for TMS570HDK.
 These are the steps:

 - import all fee-related file in the RM48 project
 - install F021flash-api from TI
 - Add C:\ti\Hercules\F021 Flash API\02.00.01\include in include path
 - Add C:\ti\Hercules\F021 Flash API\02.00.01 in library path
 - Add F021_API_CortexR4_LE.lib in linked libraries
 - Add F021_API_CortexR4_LE_V3D16.lib in linked libraries
 - add:
    FEE_TEXT_SECTION : {} > FLASH0 | FLASH1
    FEE_CONST_SECTION : {} > FLASH0 | FLASH1
    FEE_DATA_SECTION : {} > RAM
   iin sys_link.cmd SECTIONS

At this point the project compiles floawless. When I add some FEE code in the sys_main (the code is coming from a previous post example):

#include "ti_fee.h"

void fee_wait()
{
    uint8 dummy;
    uint16 Status;
    do{
        TI_Fee_MainFunction();
 
        // delay
        dummy=255;
        while(dummy--);
 
        Status=TI_Fee_GetStatus(0);
    }while(Status!=IDLE);
}
 
void main(void)
{
/* USER CODE BEGIN (3) */
 
    sciInit();
 
    // initialize FEE
    TI_Fee_Init();
    fee_wait();

/* USER CODE END */
}

Here I've got some errors due to some typedf redefinitions. That's because ti_fee.h includes "Platforms_type.h" in conflict with "hal_stdtypes.h". Both files comes from system include (C:/ti/..) so I'd like to not modify them. I cannot simply comment out the the

#include "sys_common.h"
#include "system.h"


because are required from other code in my project.

What to do?

  • I am forwarding your questions to FEE s/w team... 

  • Hi Matteo,

    There were couple of legacy customers using Std_Types.h ( which does not have protection for the types) from CCS compiler, in order to support them FEE driver still uses these header files. In all other tool support( ARM, IAR, GHS etc) only hal_stdtypes is used.

    The workaround is to include ti_fee.h before hal_stdtypes is included ( sys_common.h) like below.

    /* USER CODE BEGIN (0) */
    #include "ti_fee.h"
    #define _BOOLEAN_DECLARED
    /* USER CODE END */

    /* Include Files */
    #include "sys_common.h"
    /* USER CODE BEGIN (1) */