This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x ICEv2 Profinet RT+MRP Example

Greetings,

I managed to get the Profinet RT+MRP sample app to work (partially). Partially because I don't have a PLC connected yet - will try that later when I have the chance. Here is the sample's main.c 

/cfs-file/__key/communityserver-discussions-components-files/791/1373.main.c

There is a OLED Display showing :

Line 1 : "PROFINET RT+MRP"

Line 2 : the mac add "168:xx:xx:xx"

and the LED D2 is blinking blue too.

Now I have a few questions regarding the PRUSS.

1) First I don't really understand the function "void taskPruss" in the main.c. My understanding is that the program was only loaded onto the A8, does that function however still call on the PRUSS to run? I remember coming across this advice that said the PRUs shouldn't be touched if it's just the sample app.....(or maybe it was the M3 - i could be wrong)


2) Which leads to 2nd Q. If I want to make use of the PRUs as well, does that mean then I can place the related functions within the main program in A8, or it would be more efficient and optimized if I loaded a 2nd program into the PRUs and link it from the A8 program ( if that's possible..)


And last two question, regarding this :

a) Does it mean I just connect the board and PC to a PLC w the 'main.c' program loaded into the A8 and the Jumper settings will work? ( all the GSD, Molex files have been integrated already via Step 7 ) Or must I load something on the PRU...

b) I read somewhere that extensive PROFINET applications will have to be self written as the sample application is just....well an example. Where could I go to read up on basic stuff that I can try out through simple modifications of the sample main.c? Say for example a simple program for evaluating a temperature sensor's readings...

Thanks and cheers,
Z