I am using TMS570LS1114. Our application uses the flash emulated eeprom and works fine when using sys_link.cmd generated from Halcogen. When using an app_link.cmd (see below) to move things to 0x20000 for bootloader loading purposes, my code does not work. For libraries I'm using rts7R4_T_be_v3D16_eabi.lib and F021_API_CortexR4_BE_V3D16.lib version 02.01.01. In stepping thru TI_Fee_Init(), when trying to execute
if((Fapi_initializeFlashBanks((uint32)TI_FEE_OPERATING_FREQUENCY))==Fapi_Status_Success)
I get this error in red letters:
Can't find a source file at "C:Sid\work\GIT\catmcuauto-flashapi-f021-int\API\makefile/../Source/FlashStateMachine.InitializeFlashBanks.c"
????
Below is the contents of app_link.cmd:
/*----------------------------------------------------------------------------*/
/* Linker Settings */
--retain="*(.intvecs)"
-heap 0x800
/*----------------------------------------------------------------------------*/
/* Memory Map */
MEMORY
{
VECTORS (X) : origin=0x00020000 length=0x00000020
FLASH0 (RX) : origin=0x00020020 length=0x0011FFE0
STACKS (RW) : origin=0x08000000 length=0x00001500
RAM (RW) : origin=0x08001500 length=0x0001eb00
}
/*----------------------------------------------------------------------------*/
/* Section Configuration */
SECTIONS
{
.intvecs : {} palign=8 > VECTORS
.text : {} palign=8 > FLASH0
.const : {} palign=8 > FLASH0
.cinit : {} palign=8 > FLASH0
.pinit : {} palign=8 > FLASH0
.bss : {} > RAM
.data : {} > RAM
.sysmem : {} > RAM
FEE_TEXT_SECTION : {} > FLASH0
FEE_CONST_SECTION : {} > FLASH0
FEE_DATA_SECTION : {} > RAM
}