Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > Interrupt handler undeclared error when built the source code

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



Interrupt handler undeclared error when built the source code
Moderator:
ANCY

Post Reply
Follow this topic



Interrupt handler undeclared error when built the source code

Swee Huei posted on 18 Apr 2012 1:23 AM PST
Top Contributor
33 Forum Posts

Dear all,

I am using the chip CY8C5568AXI-060 and the PSoC 5 development kit CY8CKIT-050.

I am currently building 2 timer in a single project.

However, when I built the attached source code, I got an error that the interrupt handler is undefined.

Can anyone please advise?

Thanks




Re: Interrupt handler undeclared error when built the source code

srim posted on 18 Apr 2012 01:50 AM PST
Cypress Employee
121 Forum Posts

 The CY_ISR keyword must be used to write your interrupt_routines. You used CY_ISR_1 and CY_ISR_2 which is incorrect. You have used Interrupt_Handler in botht routines of the two interrupts. Rename it to say Interrupt_handler_1 and interrupt_handler_2.

Thanks,

srim



Re: Interrupt handler undeclared error when built the source code

Bob Marlowe posted on 18 Apr 2012 03:13 AM PST
Top Contributor
1768 Forum Posts

Hi,

I took the freedom to correct and re-arrange some errors / lines in your project. The CY_ISR is a macro and its parameter is the name of the interrupt-handler, so you switched them both giving you the errors.

There are still 2 warnings, one of them is mine, coming from a comment.

The second is a warning about violating setup-times on clock/enable. First: this should be considerd to be fatal (misfunction sometimes) Second: the target is not clock or enable, it is your (synchronus) reset coming from an input - pin. I changed one of your channels accordingly, so that you may compare them both better. It might turn out that you need to lengthen/shorten your reset-signal with a FF to get better results.

 

Bob



Re: Interrupt handler undeclared error when built the source code

Swee Huei posted on 18 Apr 2012 06:20 PM PST
Top Contributor
33 Forum Posts

Dear all,

Thanks for all the reply.

Hi Mr Bob Marlowe,

I cannot quite understand your reply below.

"The second is a warning about violating setup-times on clock/enable. First: this should be considerd to be fatal (misfunction sometimes) Second: the target is not clock or enable, it is your (synchronus) reset coming from an input - pin. I changed one of your channels accordingly, so that you may compare them both better. It might turn out that you need to lengthen/shorten your reset-signal with a FF to get better results."

Do you mean that the reset input pin must be synchronise to the clock? If yes, why must the reset be synchronise to the clock? Is it because if it is not synchronise, the reset will not be able to work?

Sorry for the question, as I have just started on PSoC development about 1 month ago and is hoping to use it in my application.

Regards






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20