Need help incorporating the Flash2806 lib
I'm placing the Flash2806x_API_wFPU_Library in RAM using the following linker command file
SECTIONS
{
Flash28_API:
{
-lFlash2806x_API_wFPU_Library.lib(.econst)
-lFlash2806x_API_wFPU_Library.lib(.text)
} LOAD = APP_PROG,
RUN = RAM_PROG,
LOAD_START(_Flash28_API_LoadStart),
LOAD_END (_Flash28_API_LoadEnd),
RUN_START (_Flash28_API_RunStart),
PAGE = 0
}
In my program I call the Flash_APIVersionHex()
Uint16 version = Flash_APIVersionHex();
I see that the function is called
767DD4E0 LCR Flash2806x_APIVersionHex
but there is no LRETR at the end of the Flash286x_APIVersionHex. Instead the program continues into the next function and crashed my program
If I exclude the linker command above I see the same call as above and the LRETR is there.