MQX 4.0 Task performing SPI exchange (tx/rx) gets hung waiting for a semaphore

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MQX 4.0 Task performing SPI exchange (tx/rx) gets hung waiting for a semaphore

627 Views
w2vy
Contributor V

We have a task that periodically performs a SPI tx/rx using the ioctl and it generally works fine, but after running for 14+ days it gets hung blocked by a semaphore

When we look at the semaphore the semaphore value is -2147483648 (0x80000000)

That seems just plain wrong, is that a special value that means something?

There is only one task that uses the SPI port (spi2)

We're using a K60

tom

Tags (2)
0 Kudos
2 Replies

362 Views
Luis_Garabo
NXP TechSupport
NXP TechSupport

Hi Tom,

It in deed looks like a return code. However it is not a known return code. You can find them in the mqx.h file. There are most of the return codes for MQX. Another approach that we can follow is to enable the kernel log and take a look to it just at the moment the error occurs. This should give more idea of what is going on.

It could also be a memory glitch or memory overflow. Have you seen a way to reproduce it easier?


Have a great day,
Garabo

0 Kudos

362 Views
w2vy
Contributor V

This sounds very similar to this post https://community.freescale.com/message/407549#407549 made by tsvetanmudrov

0 Kudos