Worked perfectly! Thankyou so much. No idea why clpru is pickier than pasm, 
but at least that problem is solved.
And I'd still be curious if anyone has any simple methods of using C to 
write to the pru data ram rather than assemby code.
Cheers,
JR

On Tuesday, October 6, 2015 at 9:19:15 AM UTC-7, Luiz Chamon wrote:
>
> That is one of those little things you need to be careful when writing 
> code for the clpru: that code will work fine for pasm, but clpru will 
> complain (I am talking about the assembly, no idea about inline or C, I've 
> only worked with assembly in the PRU). Basically two things:
>
> 1) you need to "dereference origin registers" (I have no better way to say 
> this, just use &): SBBO   &r3, r0, 0, 4;
> 2) you need to explicitly use LDI instead of MOV when working with 
> immediate values. In your case, LDI32: e.g., LDI32    r3, 0x00002222
>
> You can try this and see if it helps.
>
> Cheers!
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to