Tool/software: TI C/C++ Compiler
Hello,
For our own purpose, we try to get a C program for PRU to handle the MII link of PRU from the AM3356 SoC.
By reading the documentation and after few tests, I have the following issue:
- Issue a XFR command for getting L2 Bank data need to use de __xin() function (just an info)
- R2->R9 are used to retrieve MII DATA but R2 is use by the compiler for Stack Pointer. Unless I can change the Stack Pointer register from compiler options, I guess that I must use the remapping flag ?
- Using the remapping flag of the __xin function seems to not work. Firstly, data is not retrieve in any CPU registers(R0->R29) and secondly, I didn't see in the assembly code generated by the C compiler an SBBO instruction to store the result in the provided buffer.
-> without using the remapping flag, data is correctly retrieve in R2 register
-> By using the remapping flag, No CPU registers are updated and the data stored in the provided buffer come from the stack ...
So, all of this to ask if the C compiler support the MII interface and if yes, what I missed ?
Thank you,
Guillaume