cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 6 MCU

RoFr_4201436
New Contributor II

Hello there,

I want to create a interrupt botton in my project, using FreeRTOS, but the botton is not working. Someone can help me?

0 Likes
1 Solution
Rakshith
Moderator
Moderator

Hi @RoFr_4201436

Can you please include FreeRTOS.h and task.h? I added the includes and then modified few tasks to just blink the LED and it seems to work for me.

Also, one of the tasks does not have a forever loop. Is that intended? 

Thanks and Regards,
Rakshith M B

View solution in original post

0 Likes
3 Replies
Rakshith
Moderator
Moderator

Hi @RoFr_4201436

Can you please include FreeRTOS.h and task.h? I added the includes and then modified few tasks to just blink the LED and it seems to work for me.

Also, one of the tasks does not have a forever loop. Is that intended? 

Thanks and Regards,
Rakshith M B

View solution in original post

0 Likes
RoFr_4201436
New Contributor II

Also, one of the tasks does not have a forever loop. Is that intended? 

NO. I was just testing.

 

Can you send me the project that you changed? Because the botton task is not working for me, only the task of the led. I don't know how to put a botton interrupt in the psoc 6 project, and I need to do this with freeRTOS.

 

I included the libraries FreeRTOS.h and task.h, but this not solved my problem.

0 Likes
Rakshith
Moderator
Moderator

Hi @RoFr_4201436

From your other thread - Question about the uC/COS, I believe you were able to get the interrupt to work. The interrupt was not enabled.  

Please let me know if you still have issues getting the interrupt to work.

Thanks and Regards,
Rakshith M B
0 Likes
Top labels