Light Weight Semaphore

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

Light Weight Semaphore

392 Views
snehahegde
Contributor I

Hi,

 

I am using the TWRK70F120M and the IAR compiler in my project and I am trying to save the screen calibration values into Flash. I have got two tasks , one of which is the PegTask in which the calibration screen values are initialised and the Main Task in which I am trying to write and read those values into Flash. In order to share the data between the two tasks, I am trying to use the light weight semaphore. But  once I read it from Flash, control gets into the MQX interrupt handler.

PFA the code for PegTouch Task. Also, I have attached the code where I am writing and reading the calibration values to and From Flash. Please let me know how this can be resolved.

 

Thanks and Regards,

Sneha Hegde

 

Original Attachment has been moved to: PegTask.txt.zip

Original Attachment has been moved to: FlashTask.txt.zip

0 Kudos
1 Reply

209 Views
soledad
NXP Employee
NXP Employee

Hello Sneha,

Could you please let me know which MQX version are you using???

Regards

Soledad

0 Kudos