Section 6.2.2.5 "Interrupt Status Clearing":

https://github.com/beagleboard/am335x_pru_package/blob/master/am335xPruReferenceGuide.pdf

On 9/26/2014 6:47 PM, Ray Madigan wrote:
> Thank you very much.
> 
> I appreciate you taking time to help me figure this out.
> 
> Now I just have to figure out how to do what you just said.
> 
> On Friday, September 26, 2014 2:15:28 PM UTC-7, Charles Steinkuehler wrote:
>>
>> You can't clear bits in the status register, you have to clear whatever 
>> is generating the status bit directly.  That's either an input pin or 
>> (in your case) the interrupt from the local INTC. 
>>
>> So try clearing the actual interrupt bit, and the PRU code should then 
>> wait as expected for the next "handshake".  I suspect the PRU is 
>> currently running to completion because you're never clearing the 
>> interrupt that kicks things off, so waitForHost() doesn't actually do 
>> anything after the first "wait" and simply falls through from then on. 
>>
>> -- 
>> Charles Steinkuehler 
>> [email protected] <javascript:> 

-- 
Charles Steinkuehler
[email protected]

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to