Skip to main content
Santhamurthy R
Associate III
March 31, 2017
Question

Unable to Use Flash Driver and EED together

  • March 31, 2017
  • 1 reply
  • 1777 views
Posted on March 31, 2017 at 08:54

Hello All,

I am working on SPC560B54L5 board using SPC5studio version 5.2.3.

Since the code for EED(EEPROM Emulation Driver) is not getting generated automatically in version 5.2.3, I updated the plugin for EED locally, shared in ST community

Now, if I am working only with EED component the application is working fine. But when I am trying to add both Flash and EED component together in the application, it is giving error as ''conflicting types for FlashInit()'', since the prototype of FlashInit() for both the drivers is same, please refer FlashInit() in eed_flash.h of EED component and ssd_c90fl.h of Flash component. It differs only with the formal argument.

In my application I should use both the EED and Flash components.I am attaching my test application and compilation error screenshot with this kindly check and provide your valuable suggestion for resolving the reported issue.

0690X00000606aKQAQ.png

Thanks in Advance

Regards,

R.Santhamurthy

Note: this post was migrated and contained many threaded conversations, some content may be missing.
    This topic has been closed for replies.

    1 reply

    Erwan YVIN
    ST Employee
    March 31, 2017
    Posted on March 31, 2017 at 10:03

    Hello ,

    It is not a classic case.

    Anyway , you can use the patch mode mecanism.

    for the 'conflicting types for FlashInit()' you can patch these 2 files eed_flash.h of EED component and ssd_c90fl.h of Flash component to adapt the 2 structures or use a compilation switch.

    A

     patch.xml will be created dedicated for your project and a decorator will be created for your component files.

    you will be able Clean/Generate.

             Best regards

                          Erwan

    Santhamurthy R
    Associate III
    March 31, 2017
    Posted on March 31, 2017 at 11:26

    Hi Erwan,

    Patch mode is enabled and the corresponding patches and decorators are also generated but I am facing difficulty in building the application successfully. I am attaching the error message console screenshot below for your reference.

    Kindly guide me in building the application successfully. 

    0690X00000606UHQAY.png0690X00000606aeQAA.png0690X00000606dYQAQ.png

    Thankyou

    Regards,

    R.Santhamurthy

    Erwan YVIN
    ST Employee
    April 3, 2017
    Posted on April 03, 2017 at 10:28

    Hello ,

    Please Remove flash driver components

    It is not recommended to use Flash drivers components and eeprom emulation driver.

    Unplug the components Flash drivers and keep eeprom emulation driver.

    anyway , you can use some unofficial source code with eeprom emulation driver.

    https://community.st.com/0D70X000006SbEDSA0

     

      Best regards

             Erwan