PSOC6,在使用freertos时,从中断向任务中发送信息时出错

公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

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

cross mob
zhji_4666456
Level 1
Level 1
First question asked First reply posted Welcome!

你好!

      TP触摸中断后,在中断中读取数据,然后通过队列把坐标数据发送给对应任务,当我把TP中断脚接到中断component时,rtosApiResult = xQueueSendFromISR(tpCommandQ, &tpCommand,0);这个函数是可以正常运行的,但是这种中断component只支持上升沿中断,不支持下降沿中断(无论我设置成上升沿还是下降沿甚至BOTH EDGE,但是始终只有上升沿中断);为了解决这个问题,就将中断component删掉,用Global Signal来代替,代替后,下降沿中断有了,但是出现新的问题,那就是所有带ISR的fressrtos的函数都用不了,更改前后的两个中断的优先级是一样的,唯一变化的是中断号。出错代码请见图片。请帮忙解答一下,是否所有Global Signal中断都不能用于freertos中?如果是,请告知其他的解决办法,谢谢freertos.png

0 点赞
1 解答
ShipingW_81
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 replies posted

其他中断都用不了具体是什么情况,中断触发后ISR跳不进去?还没有听说Global Signal在freertos里用不了的问题。

下面这个code example就在freertos中同时使用了Global Signal等多种中断,之间并无影响 -https://www.cypress.com/documentation/code-examples/ce218137-psoc-6-mcu-ble-connectivity-ble-proximi...

在原帖中查看解决方案

0 点赞
2 回复数
ShipingW_81
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 replies posted

其他中断都用不了具体是什么情况,中断触发后ISR跳不进去?还没有听说Global Signal在freertos里用不了的问题。

下面这个code example就在freertos中同时使用了Global Signal等多种中断,之间并无影响 -https://www.cypress.com/documentation/code-examples/ce218137-psoc-6-mcu-ble-connectivity-ble-proximi...

0 点赞

谢谢,重新参考例子修改代码后,可以正常工作了

0 点赞