What compiler are you using? TI's PRU-C-compiler does not support inline-assembler, so the whole thingy will nto work for you.
Am Dienstag, 8. September 2015 12:52:02 UTC+2 schrieb BBBx: > > Hello, > > i'm trying to write a delay function with the asm in my clpru program. > I add the following text: > > void loop5(void) > { > __asm__ __volatile__ > ( > " LDI32 r10, 5000 \n" > " DELAY: SUB r10, r10, 1 \n" > " QBNE DELAY, r10, 0 \n" > ); > } > > but I get an error: > > "/tmp/06461GwSmDv", ERROR! at line 1225: [E0003] Invalid instruction > DELAY: > > > What does it mean? Should I add any definition of the label DELAY? > -- 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 beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.