PSoC4S : Editing reserved exceptions

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MiNe_85951
Level 7
Level 7
Distributor - TED (Japan)
50 likes received 500 replies posted 50 solutions authored

Dear Sirs and Madams,

 

CyIntSetSysVector (4, & CySoftwareReset);


Is it possible to assign a reset function to the exception reserved as above?

Or something it should be noted there will be?

 

Regards,

0 Likes
1 Solution
VenkataD_41
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi,

We recommend you hook a new function using CyIntSetSysVector () and call the CySoftwareReset function inside that newly hooked function instead of directly assigning the reset handler's address. Please check if this solves your purpose.

Also, if possible please explain your requirement a little more.

Thanks and regards

Ganesh

View solution in original post

0 Likes
3 Replies
VenkataD_41
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi,

We recommend you hook a new function using CyIntSetSysVector () and call the CySoftwareReset function inside that newly hooked function instead of directly assigning the reset handler's address. Please check if this solves your purpose.

Also, if possible please explain your requirement a little more.

Thanks and regards

Ganesh

0 Likes
MiNe_85951
Level 7
Level 7
Distributor - TED (Japan)
50 likes received 500 replies posted 50 solutions authored

Ganesh-san,

As I thought, it is not good to assign the reset handler address directly.

Consider how to use CyIntSetSysVector () that you taught us.

Maybe I may ask you and additional question.

Thank you,

0 Likes
MiNe_85951
Level 7
Level 7
Distributor - TED (Japan)
50 likes received 500 replies posted 50 solutions authored

Please confirm the following two points regarding the proposal.

Why do I have to hook a new function?

What's wrong with not hooking a new function?

0 Likes