cancel
Showing results for 
Search instead for 
Did you mean: 

SPC560B54L5 EIRQ interrupt issues..

Santhamurthy R
Associate II
Posted on February 06, 2017 at 14:30

Hello All,

I am currently working on SPC560B54L5 controller. I am trying to setup a EIRQs  interrupt functionalities but facing issues while generating the code.

Procedure followed and problems faced while generating the code for EIRQ:

1. Created the project based on C/C++ using SPC5studio

2. Added SPC560B54L5 platform component

3. Added SPC5studio PIN map wizard

4. Selected the necessary IO pins in pinmap editor

5. Later added clock,LLD,board init and IRQ components to the project.

6. Finally, generated the code successfully without any errors

But the I/O definitions for the selected pins are not generated in board.h and board.c ,

If I try adding the I/O definitions manually in those header files the code executes as desired

Please help in auto generating the IO definitions during code generations, after the IO settings as explained, or guide me the right way to do IO settings if I am wrong

Thanks in Advance....

---

Regards,

R.Santhamurthy

#spc560b54l5-related-issues
This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
5 REPLIES 5
Oliver Beirne
Senior
Posted on February 06, 2017 at 17:45

Hello

I have moved your question to the 

https://community.st.com/community/automotive-mcus-community/spc5-automotive-mcus

 forum where someone should be able to assist you.

Thanks

Oli

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

Hello 

R.Santhamurthy ,

Could you confirm your version used ? 5.2.1 ?

To validate your pinmap.

1) Update your pinmap wizard

2) Save your pinmap

3) Close your pinmap

4) Save your configuration

5) after generation , you should see your I/O in board.c/board.h

    DO NOT UPDATE MANUALLY it is generated files board.c / board.h

                   Best Regards

                                           Erwan

Posted on February 07, 2017 at 14:02

Thank you very much for your prompt reply.

I am using SPC5studio version

5.2.1

I realized my mistake, I was doing the configuration in the pinmap wizard and generating the code after saving the settings, but  I didn't tried to close the pinmap  which might have cause the issue. 

Now the definitions are getting added.

I will be grateful if you guide me is there any way to auto generate the callback code definitions  in eirq_cfg.h and eirq_cfg.c for the corresponding EIRQs selected.

For example:

For eirq17, definitions like

void cb_eirq17(void) in eirq_cfg.h and

{17,TRUE,FALSE,TRUE,cb_eirq17}, in eirq_cfg.c

Posted on February 07, 2017 at 14:33

Hello R. Santhamuthy,

you have update IRQ Component RLA to update it (cf screenshot)

do not forget to save your configuration before generation)

0690X00000606GYQAY.png

  Best regards

                   Erwan

Posted on February 07, 2017 at 15:03

Thanks a lot  Mr.Erwan,your immediate response is very helpful to me, I can generate a code as per your guidance

--

Thanks & Regards

R.Santhamurthy