Other Parts Discussed in Thread: HALCOGEN
HI
Iam currently writing a program of bootloader in GHS for TMS570ls3137,Iam trying to use the F021 API which has Library file (F021_API_CortexR4_BE.lib). The example bootloader which is written for code composer studio uses this Library(F021_API_CortexR4_BE.lib),This file has objects compiled using EABI (Embedded application binary interface) runtime support library.
Since Code composer studio uses rtsv7R4_T_be_v3D16_eabi.lib runtime support library ,The flash api does not produce any errors in code composer studio while execution and also during compilation.
The problem is that the Green Hills Compiler uses ABI(ARM application binary interface).So when i compile using the provided F021 flash API .it shows an error of multiple definition and even if i solve this error .The GHS compiler does not take any objects from the F021 API(F021_API_CortexR4_BE.lib).
I found this by looking at the .map file and the GHS compiler also gave a warning that this lib is not added during compilation.
is there any way to erase and write the flash other than using F021 API, Because Halcogen does not create any API for Flash (there is a link on Halcogen on Flash option which says to get the API through download option ).This download also gives the same F021 API which is used in code composer studio.
If any one know how to write bootloader in GHS please provide some help.