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.

EEPROM emulation F2806

Other Parts Discussed in Thread: CONTROLSUITE

Hello, I am trying to implement the code, for the EEPROM emulation.

So far I can say, have linked all the necessary files, headers etc.

During debugging, I am getting over 100 Errors, all of them related to memory.

 

Severity and Description    Path    Resource    Location    Creation Time    Id
ADC memory range has already been specified        FlashingLeds    line 0    1308282406428    384
ADC memory range overlaps existing memory range ADC        FlashingLeds    line 0    1308282406428    385
ADC_MIRROR memory range has already been specified        FlashingLeds    line 0    1308282406402    316
ADC_MIRROR memory range overlaps existing memory range ADC_MIRROR        FlashingLeds    line 0    1308282406402    317
BEGIN memory range has already been specified        FlashingLeds    line 0    1308282406434    411
CPU_TIMER0 memory range has already been specified        FlashingLeds    line 0    1308282406402    318
CPU_TIMER0 memory range overlaps existing memory range CPU_TIMER0        FlashingLeds    line 0    1308282406402    319
CPU_TIMER1 memory range has already been specified        FlashingLeds    line 0    1308282406403    320
CPU_TIMER1 memory range overlaps existing memory range CPU_TIMER1        FlashingLeds    line 0    1308282406403    321
CPU_TIMER2 memory range has already been specified        FlashingLeds    line 0    1308282406403    322
CPU_TIMER2 memory range overlaps existing memory range CPU_TIMER2        FlashingLeds    line 0    1308282406403    323
CSM memory range has already been specified        FlashingLeds    line 0    1308282406401    314
CSM memory range overlaps existing memory range CSM        FlashingLeds    line 0    1308282406402    315
CSM_PWL memory range has already been specified        FlashingLeds    line 0    1308282406430    396
.

.

.

.

 

IDoes anyone has any advise ?

 

thx

  • It looks like you have two linker files both doing the same thing.  Just remove one of them.

    Tim

  • Hi Tim, I will try to remove it and see if it will work.

     

    hx

  • Hello, I have modified few things, but getting still some errors.

     

    Severity and Description    Path    Resource    Location    Creation Time    Id
    errors encountered during linking; "C:/Users/XPEH/Desktop/CCS/code_eeprom_test_1_11.06.18_3/TI_F28xxx_SysSW/Fla shingLeds/280x_FLASH/FlashingLeds.out" not built        FlashingLeds    line 0    1308449264783    38
    unresolved symbol _Flash2806_Erase, first referenced in C:/Users/XPEH/Desktop/CCS/code_eeprom_test_1_11.06.18_3/TI_F28xxx_SysSW/FlashingLeds/280x_FLASH/F280xx_EEPROM.obj        FlashingLeds    line 0    1308449264782    36
    unresolved symbol _Flash2806_Program, first referenced in C:/Users/XPEH/Desktop/CCS/code_eeprom_test_1_11.06.18_3/TI_F28xxx_SysSW/FlashingLeds/280x_FLASH/F280xx_EEPROM.obj        FlashingLeds    line 0    1308449264783    37

     

    so far I understand, "unresolved symbol" means, there is some link missing to some certain header. I am using the code provided by TI for the emulation. I have linked EEPROM.C as a folder to my project. And copied EEPROM.h, API_Config.h, API_Library.h to my include folder, but still not sure what is missing. Do I have to add some additional files ???

     

    FlashingLeds - is my main programm.

     

    Bye

     

     

  • What about the API-library itself? Looks like you forgot to link the lib to your project.

  • Hi Frank, thx for xour response.

     

    Ok I have copied, EEPROM.h, EEPROM_COnfig.h, EEPROM_Library.h, to my includes. EEPROM.c to my main folder where the my main program is. I have also linked the folder with the libs, Flash2806_API_V302.lib is also available. when I am trying to debug the code with this configuration,

     

    [c]

        MemCopy(&RamfuncsLoadStart, &RamfuncsLoadEnd, &RamfuncsRunStart);

        InitFlash();    // Call the flash wrapper init function

    [/c]

    works fine, no errors, but when I am trying to compile tis lines, the the error mentioned above occurs,

     

    [c]

        MemCopy(&RamfuncsLoadStart, &RamfuncsLoadEnd, &RamfuncsRunStart);

        InitFlash();    // Call the flash wrapper init function

    MemCopy(&Flash28_API_LoadStart, &Flash28_API_LoadEnd, &Flash28_API_RunStart);

    [/c]

     

    I am getting problems with the second MemCopy line, do not know why!

     

     

  • You still have a linker command file issue. The missing symbols are defined and allocated in "Example_Flash28069_API.cmd"

    I would recommend that you follow exactly the sequence, which is described in detail in the Controlsuite FLAH-API examples, e.g. C:\TI\controlSUITE\libs\utilities\flash_api\2806x\v100\doc. Also the project example in this folder can be a good starting point.

     

     

  • Hi Frank, thanks for your help.  Your hint regarding the .cmd file was right. I was missing

                           LOAD_START(_Flash28_API_LoadStart),
                           LOAD_END(_Flash28_API_LoadEnd),
                           RUN_START(_Flash28_API_RunStart),

     

    in my code.

    Aufwiedersehen!