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?