On 2/19/2016 12:34 PM, [email protected] wrote: > > Hi, > > I'm using the AM335X Starter Kit from TI with an AM3359 SoC and I use the > TI Processor SDK Linux version 02.00.01.07. I managed to get remoteproc > driver working, then I removed the Display module and used the flatflex > connector to breakout some GPIOs of PRU1 to hook up some LEDs. I wrote a > blink-led firmware in CCS v6 as described in the PRU HandsOn Lab and > successfully bootet the PRU1 to let my LEDs blink. > > Now I need to write a very fast code so I have to write it in Assembly > language. I would like to use the AM335x PRU-ICSS Reference Guide to write > my code and use the PASM compiler. > > Is it possible to write pure assembler code like with the PASM and make the > code work for the newer remoteproc? Or can I write assembly code in > CodeComposer Studio with the TI compiler? I couldn't figure out yet how I > can do that. Is there a Tutorial somewhere? > > I read that TI does not support PRU so good so this is why I ask here.
The ARM side should be written in C, unless you have a _really_ good reason not to. For the PRU, you can code in C or ASM as desired. If you do write assembly, you will probably want to use the C calling conventions so you can call your assembly PRU code from C or perhaps a C shim for remoteproc. Ultimately, it doesn't really matter what you code in as long as you generate and process the remoteproc messages and/or interrupts your application needs. NOTE: The C calling conventions are in the TI compiler documentation (spruhv7a), section 6.3 "Register Conventions" and 6.4 "Function Structure and Calling Conventions", and there's a section on mixing assembly and C: 6.6 "Interfacing C and C++ with Assembly Language". http://www.ti.com/general/docs/litabsmultiplefilelist.tsp?literatureNumber=spruhv7a -- Charles Steinkuehler [email protected] -- 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.
