2017-02-06 05:30 AM
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-issues2017-02-06 08:45 AM
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
2017-02-07 01:30 AM
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
2017-02-07 06:02 AM
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
2017-02-07 06:33 AM
Hello R. Santhamuthy,
you have update IRQ Component RLA to update it (cf screenshot)
do not forget to save your configuration before generation)
Best regards
Erwan
2017-02-07 07:03 AM
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