IPCF setup between R52_0_0 and R52_0_1

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IPCF setup between R52_0_0 and R52_0_1

215 Views
PrabhanjanKopp
Contributor I

Trying to set up IPCF project between 2 R52 RTU0 cores. Facing issues with core sync and MRU IRQ not being hit. I am attaching my .mex file for reference. Can you please help me resolving the issues. currently I have 2 issues:

1. Core 0 and Core 1 sync issues , race issues.

2. IRQ firing is not proper, unsure if I have used the right MRU channels. 

0 Kudos
Reply
8 Replies

94 Views
Joey_z
NXP Employee
NXP Employee

Hi,PrabhanjanKopp

I am helping you to check and reproduce the problem, and I can reply to you when there is progress!

BR

Joey

0 Kudos
Reply

172 Views
Joey_z
NXP Employee
NXP Employee

Hi,PrabhanjanKopp

Thank you for contacting us.

1.Before sending, the function ipc_shm_is_remote_ready() should be called to confirm that the remote end is ready.

2.It is necessary to refer to the S32Z2 manual to confirm the respective MRU instance and channel for core 0 and core 1 of the RTU0.

Could you tell me the version of S32DS/RTD/IPCF you are using? If possible, could you send your IPCF project to me? It is better help to check it and handle this issue.

BR

Joey

0 Kudos
Reply

161 Views
PrabhanjanKopp
Contributor I

PrabhanjanKopp_0-1789991578266.png

 

I use the S32E2 controller eval board. I suspect I am missing some configuration. It seemed to work on SMU-R52 but not here, Please have a look and get back if you see something wrong. Some transport code has been added on top of IPCF framework.

0 Kudos
Reply

72 Views
Joey_z
NXP Employee
NXP Employee

Hi,PrabhanjanKopp

I'm very sorry for the late reply.

After checking your project, both projects have undergone resource initialization, which can easily lead to resource conflicts, including the repeated initialization of interrupted resources. Please check the relevant resource settings.

Another way to test the IPCF project is to use the clipped GreenVIP program to avoid the synchronization of resource initialization.

Hope this information can help you.

BR

Joey

0 Kudos
Reply

70 Views
PrabhanjanKopp
Contributor I

Hi Joey,
can you point me to the code where this repeated initialization of interrupt resource? Can you also verify if the MRU channels I have used for the communication are actually correct? If you can give me a pseudocode to do a proper initialization of interrupt resource, it would be most helpful. 

 

Thanks,

Prabhanjan

0 Kudos
Reply

64 Views
Joey_z
NXP Employee
NXP Employee

Hi,PrabhanjanKopp

Thank you for your reply.

Sorry, we did not provide the pseudo code you mentioned. And not was an existing demo for IPCF setup between R52_0_0 and R52_0_1 provided. Please try to set the required interrupts in the Platform interrupt configuration for the two projects. The MRU channels settings did not reveal obvious issues; However, further testing is also necessary. 

Recently, I will be on vacation. If you need my continued support, I will be back on October 8th. If you are in a hurry, you can create a new ticket.  My colleagues who are currently working normally will assist you with your new ticket.

I apologize for the inconvenience caused.

BR

Joey

0 Kudos
Reply

140 Views
PrabhanjanKopp
Contributor I

Any update on this? @Joey_z 

0 Kudos
Reply

130 Views
Joey_z
NXP Employee
NXP Employee

Hi,PrabhanjanKopp

I'm currently assisting you in checking the issues. This will raise the priority of this case.

I'll get back to you once there's any progress!

BR

Joey

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2414748%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIPCF%20setup%20between%20R52_0_0%20and%20R52_0_1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2414748%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ETrying%20to%20set%20up%20IPCF%20project%20between%202%20R52%20RTU0%20cores.%20Facing%20issues%20with%20core%20sync%20and%20MRU%20IRQ%20not%20being%20hit.%20I%20am%20attaching%20my%20.mex%20file%20for%20reference.%20Can%20you%20please%20help%20me%20resolving%20the%20issues.%20currently%20I%20have%202%20issues%3A%3C%2FP%3E%3CP%3E1.%20Core%200%20and%20Core%201%20sync%20issues%20%2C%20race%20issues.%3C%2FP%3E%3CP%3E2.%20IRQ%20firing%20is%20not%20proper%2C%20unsure%20if%20I%20have%20used%20the%20right%20MRU%20channels.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2414826%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IPCF%20setup%20between%20R52_0_0%20and%20R52_0_1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2414826%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CSPAN%3EPrabhanjanKopp%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20contacting%20us.%3C%2FP%3E%0A%3CP%3E1.Before%20sending%2C%20the%20function%20ipc_shm_is_remote_ready()%20should%20be%20called%20to%20confirm%20that%20the%20remote%20end%20is%20ready.%3C%2FP%3E%0A%3CP%3E2.It%20is%20necessary%20to%20refer%20to%20the%20S32Z2%20manual%20to%20confirm%20the%20respective%20MRU%20instance%20and%20channel%20for%20core%200%20and%20core%201%20of%20the%20RTU0.%3C%2FP%3E%0A%3CP%3ECould%20you%20tell%20me%20the%20version%20of%20S32DS%2FRTD%2FIPCF%20you%20are%20using%3F%20If%20possible%2C%20could%20you%20send%20your%20IPCF%20project%20to%20me%3F%20It%20is%20better%20help%20to%20check%20it%20and%20handle%20this%20issue.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EJoey%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2414986%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IPCF%20setup%20between%20R52_0_0%20and%20R52_0_1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2414986%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22PrabhanjanKopp_0-1789991578266.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PrabhanjanKopp_0-1789991578266.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PrabhanjanKopp_0-1789991578266.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PrabhanjanKopp_0-1789991578266.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PrabhanjanKopp_0-1789991578266.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PrabhanjanKopp_0-1789991578266.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PrabhanjanKopp_0-1789991578266.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PrabhanjanKopp_0-1789991578266.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22PrabhanjanKopp_0-1789991578266.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F396608iCEF4E950C86B4DC1%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22PrabhanjanKopp_0-1789991578266.png%22%20alt%3D%22PrabhanjanKopp_0-1789991578266.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EPrabhanjanKopp_0-1789991578266.png%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EPrabhanjanKopp_0-1789991578266.png%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EPrabhanjanKopp_0-1789991578266.png%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EPrabhanjanKopp_0-1789991578266.png%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EI%20use%20the%20S32E2%20controller%20eval%20board.%20I%20suspect%20I%20am%20missing%20some%20configuration.%20It%20seemed%20to%20work%20on%20SMU-R52%20but%20not%20here%2C%20Please%20have%20a%20look%20and%20get%20back%20if%20you%20see%20something%20wrong.%20Some%20transport%20code%20has%20been%20added%20on%20top%20of%20IPCF%20framework.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2415098%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IPCF%20setup%20between%20R52_0_0%20and%20R52_0_1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2415098%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EAny%20update%20on%20this%3F%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F236188%22%20target%3D%22_blank%22%3E%40Joey_z%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2415197%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IPCF%20setup%20between%20R52_0_0%20and%20R52_0_1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2415197%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CA%20id%3D%22link_6%22%20class%3D%22lia-link-navigation%20lia-page-link%20lia-user-name-link%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F264825%22%20aria-label%3D%22View%20Profile%20of%20PrabhanjanKopp%22%20target%3D%22_blank%22%3E%3CSPAN%20class%3D%22%22%3EPrabhanjanKopp%3C%2FSPAN%3E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EI%20have%20preliminarily%20inspected%20your%20project%20and%20noticed%20that%20there%20is%20a%20conflict%20in%20the%20address%20allocation%20of%20your%20two%20projects.%20The%20.intc_vector%20is%20at%20the%20same%20address%2C%20and%20running%20two%20cores%20simultaneously%20would%20cause%20a%20conflict.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EJoey%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2415121%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IPCF%20setup%20between%20R52_0_0%20and%20R52_0_1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2415121%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CSPAN%3EPrabhanjanKopp%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EI'm%20currently%20assisting%20you%20in%20checking%20the%20issues.%20This%20will%20raise%20the%20priority%20of%20this%20case.%3C%2FP%3E%0A%3CP%3EI'll%20get%20back%20to%20you%20once%20there's%20any%20progress!%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EJoey%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2415715%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IPCF%20setup%20between%20R52_0_0%20and%20R52_0_1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2415715%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CSPAN%3EPrabhanjanKopp%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EI%20am%20helping%20you%20to%20check%20and%20reproduce%20the%20problem%2C%20and%20I%20can%20reply%20to%20you%20when%20there%20is%20progress!%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EJoey%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2416150%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IPCF%20setup%20between%20R52_0_0%20and%20R52_0_1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2416150%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Joey%2C%3CBR%20%2F%3Ecan%20you%20point%20me%20to%20the%20code%20where%20this%20repeated%20initialization%20of%20interrupt%20resource%3F%20Can%20you%20also%20verify%20if%20the%20MRU%20channels%20I%20have%20used%20for%20the%20communication%20are%20actually%20correct%3F%20If%20you%20can%20give%20me%20a%20pseudocode%20to%20do%20a%20proper%20initialization%20of%20interrupt%20resource%2C%20it%20would%20be%20most%20helpful.%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EPrabhanjan%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2416005%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IPCF%20setup%20between%20R52_0_0%20and%20R52_0_1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2416005%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CSPAN%3EPrabhanjanKopp%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EI'm%20very%20sorry%20for%20the%20late%20reply.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EAfter%20checking%20your%20project%2C%20both%20projects%20have%20undergone%20resource%20initialization%2C%20which%20can%20easily%20lead%20to%20resource%20conflicts%2C%20including%20the%20repeated%20initialization%20of%20interrupted%20resources.%20Please%20check%20the%20relevant%20resource%20settings.%3C%2FP%3E%0A%3CP%3EAnother%20way%20to%20test%20the%20IPCF%20project%20is%20to%20use%20the%20clipped%20GreenVIP%20program%20to%20avoid%20the%20synchronization%20of%20resource%20initialization.%3C%2FP%3E%0A%3CP%3EHope%20this%20information%20can%20help%20you.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EJoey%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2416185%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IPCF%20setup%20between%20R52_0_0%20and%20R52_0_1%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2416185%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CSPAN%3EPrabhanjanKopp%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20your%20reply.%3C%2FP%3E%0A%3CP%3ESorry%2C%20we%20did%20not%20provide%20the%20pseudo%20code%20you%20mentioned.%20And%20not%20was%20an%20existing%20demo%20for%20IPCF%20setup%20between%20R52_0_0%20and%20R52_0_1%20provided.%20Please%20try%20to%20set%20the%20required%20interrupts%20in%20the%20Platform%20interrupt%20configuration%20for%20the%20two%20projects.%20The%20MRU%20channels%20settings%20did%20not%20reveal%20obvious%20issues%3B%20However%2C%20further%20testing%20is%20also%20necessary.%26nbsp%3B%3C%2FP%3E%0A%3CP%3ERecently%2C%20I%20will%20be%20on%20vacation.%20If%20you%20need%20my%20continued%20support%2C%20I%20will%20be%20back%20on%20October%208th.%20If%20you%20are%20in%20a%20hurry%2C%20you%20can%20create%20a%20new%20ticket.%3CSPAN%3E%26nbsp%3B%20My%20colleagues%20who%20are%20currently%20working%20normally%20will%20assist%20you%20with%20your%20new%20ticket.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EI%20apologize%20for%20the%20inconvenience%20caused.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EJoey%3C%2FP%3E%3C%2FLINGO-BODY%3E