Skip to main content
Mujeeb Shaik
Associate II
January 18, 2017
Question

I2C driver is not listing when trying to generate code for SPC560C40L1 ,any one tried,please provide the inputs

  • January 18, 2017
  • 2 replies
  • 1230 views
Posted on January 18, 2017 at 10:55

Hi All,

I am new to SPC environment,

I2C driver is not listing when trying to generate code for SPC560C40L1 ,any one tried,please provide the inputs,

and help how to enable the IO interrupt using the SPC studio code generator ,I am going to use SPC560C40L1

any help appropriated...

---

Thanks & Regards,

Mujeeb 

    This topic has been closed for replies.

    2 replies

    Erwan YVIN
    ST Employee
    January 18, 2017
    Posted on January 18, 2017 at 15:43

    Hello Mujeeb ,

    I2C driver SW is implemented in SPC5Studio.

    I2C driver HW is not implemented yet in SPC5Studio.

    The HW component is on the roadmap in the first quarter 2017 on 56/57 Family.

    If you want to begin to play with I2C HW.

    1) Enable I2C the associated GPIO by Pinmap Wizard

    2) Take the driver from NXP-Freescale, 

    https://community.nxp.com/docs/DOC-330972

     

        This driver should work by putting these 2 files in source folder and customize it for SPC5Studio (Include files (registry files)).

        it is not difficult to integrate them in SPC5Studio.

          Best regards

             Erwan

    Mujeeb Shaik
    Associate II
    February 3, 2017
    Posted on February 03, 2017 at 08:35

    Hi Erwan,

    Thanks for your quick reply,

    I will try that and let you know if any difficulties,

    I want to configure GPIO as interrupt(EIRQ),Can you please guide me how to configure using

    SPCStudio5(Version : 5.2.1).

    As of now i have tried  editing the test application and modified ,it is working for me but i am not able to generate 

    code for EIRQ configuration using  

    SPCStudio5(Version : 5.2.1).

    Thanks in advance...

    ---

    Thanks & Regards,

    Mujeeb Shaik.

    Erwan YVIN
    ST Employee
    February 7, 2017
    Posted on February 07, 2017 at 14:55

    Hello Mujeeb 

    If you want to begin to play with EIRQ (RLA)

    1) Enable EIRQ the associated GPIO by Pinmap Wizard (Save the Pinmap, Close the Pinmap and Save the Pinmap)

    2) Use the IRQ component RLA

     0690X00000606AiQAI.png

       You can import some tests applications from the application wizard.

             Best regards

                                              Erwan

    Erwan YVIN
    ST Employee
    February 10, 2017
    Posted on February 10, 2017 at 10:48

    Hello Mujeeb ,

    Do not hesitate to create a new post for a new question

    After adding the ouput formatter in the component

    there is an useful chm document.

    you have to plug your Output formatter to the corresponding Linflex

    0690X00000606HlQAI.png

          Best Regards

       Erwan