Adding IPCF functionality to existing S32DS project.

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

Adding IPCF functionality to existing S32DS project.

1,038 Views
Niranj_369
Contributor I

Hi @Joey_z 
We’ve successfully established IPCF communication between the M7 and A53 cores on the S32G3 SoC using the M7 IPCF example provided in the updatesite.
We’ve also developed and tested our own application that currently does not include IPCF functionality. Now, we’re looking to integrate IPCF into this existing program.
We followed the steps shown in the image below, but encountered some "variable not found" errors during integration.
Could you please suggest the correct approach to integrate IPCF functionality into our existing code?
image.jpg

0 Kudos
Reply
7 Replies

998 Views
Joey_z
NXP Employee
NXP Employee

hi,Niranj_369

Thank you for contacting us.

You can try to add the ipcf Middleware as the following picture, I used the UART demo and added the ipcf module into the application. Then, click the "Update Code" button to add the ipcf code in the project.

Joey_z_1-1761530408715.png

Hope this can help you.

BR

Joey

0 Kudos
Reply

963 Views
Niranj_369
Contributor I

Thanks @Joey_z 
I've integrated IPCF into the LIN code and successfully generated the binary. However, I'm encountering the following issues:

  1. LIN functionality works as expected, but after loading the M7 firmware, the serial terminal displays garbage characters. I'm unable to access the terminal or proceed with booting the A53.
  2. IPCF functionality is not working. I've included the ping-pong logic from the IPCFG example, but it doesn't seem to respond.

Could you please suggest fixes for these issues? I've attached the linker script below for reference.
Note: I have used the correct load address and also verified the lin and IPCF examples seperately.

Niranj_369_0-1761588032096.png

 

0 Kudos
Reply

949 Views
Joey_z
NXP Employee
NXP Employee

Hi,Niranj_369

Thank you for your reply.

Do you have only the test for LIN application on multi-core?  is the Lin function normal on multi-core? The clock setting and SetMode in M core may will have the conflict with A core at boot stage.

 BR

Joey

0 Kudos
Reply

944 Views
Niranj_369
Contributor I

Thanks @Joey_z 
1. The lin application runs on one core only. We have parallely booted both the cores and tested the lin functionality successfully.
2.  I have given the IPCF pheripheral configuration below for reference.

Niranj_369_0-1761622815140.png

 

0 Kudos
Reply

938 Views
Joey_z
NXP Employee
NXP Employee

hi,Niranj_369

1.You can refer to the IPCF demo for your ipcf setting in your Lin project.

2.Do you have tested the Lin function without IPCF on M + A core boot? You can separately test the two demos on M+A first.

BR

Joey

 

 

0 Kudos
Reply

935 Views
Niranj_369
Contributor I

Thanks @Joey_z 
Do you have tested the Lin function without IPCF on M + A core boot? You can separately test the two demos on M+A first
>>>>> I have tested the IPCF example and lin code seperately with parallel boot(A+M cores) and both them are working fine.  
Note: I have used the single instance IPCF example and the corresponding IPCF drivers.

0 Kudos
Reply

922 Views
Joey_z
NXP Employee
NXP Employee

hi,Niranj_369

Could you please share the M core project with me in private ticket? I can help you to check it.

You can post private ticket using this link: https://support.nxp.com

BR

Joey

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2192960%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EAdding%20IPCF%20functionality%20to%20existing%20S32DS%20project.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2192960%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%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%3CBR%20%2F%3EWe%E2%80%99ve%20successfully%20established%20IPCF%20communication%20between%20the%20M7%20and%20A53%20cores%20on%20the%20S32G3%20SoC%20using%20the%20M7%20IPCF%20example%20provided%20in%20the%20updatesite.%3CBR%20%2F%3EWe%E2%80%99ve%20also%20developed%20and%20tested%20our%20own%20application%20that%20currently%20does%20not%20include%20IPCF%20functionality.%20Now%2C%20we%E2%80%99re%20looking%20to%20integrate%20IPCF%20into%20this%20existing%20program.%3CBR%20%2F%3EWe%20followed%20the%20steps%20shown%20in%20the%20image%20below%2C%20but%20encountered%20some%20%22variable%20not%20found%22%20errors%20during%20integration.%3CBR%20%2F%3ECould%20you%20please%20suggest%20the%20correct%20approach%20to%20integrate%20IPCF%20functionality%20into%20our%20existing%20code%3F%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.jpg%22%20style%3D%22width%3A%20800px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.jpg%22%20style%3D%22width%3A%20800px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F362567i849C02EC711B9E09%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image.jpg%22%20alt%3D%22image.jpg%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2194028%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Adding%20IPCF%20functionality%20to%20existing%20S32DS%20project.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2194028%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%2C%3CSPAN%3ENiranj_369%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ECould%20you%20please%20share%20the%20M%20core%20project%20with%20me%20in%20private%20ticket%3F%20I%20can%20help%20you%20to%20check%20it.%3C%2FP%3E%0A%3CP%3EYou%20can%20post%20private%20ticket%20using%20this%20link%3A%20%3CA%20href%3D%22https%3A%2F%2Fsupport.nxp.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.nxp.com%3C%2FA%3E%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-2193959%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Adding%20IPCF%20functionality%20to%20existing%20S32DS%20project.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2193959%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3EThanks%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%3CBR%20%2F%3EDo%20you%20have%20tested%20the%20Lin%20function%20without%20IPCF%20on%20M%20%2B%20A%20core%20boot%3F%20You%20can%20separately%20test%20the%20two%20demos%20on%20M%2BA%20first%3CBR%20%2F%3E%3C%2FSPAN%3E%26gt%3B%26gt%3B%26gt%3B%26gt%3B%26gt%3B%20I%20have%20tested%20the%20IPCF%20example%20and%20lin%20code%20seperately%20with%20parallel%20boot(A%2BM%20cores)%20and%20both%20them%20are%20working%20fine.%26nbsp%3B%26nbsp%3B%3CBR%20%2F%3ENote%3A%20I%20have%20used%20the%20single%20instance%20IPCF%20example%20and%20the%20corresponding%20IPCF%20drivers.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2193950%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Adding%20IPCF%20functionality%20to%20existing%20S32DS%20project.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2193950%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%2C%3CSPAN%3ENiranj_369%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E1.You%20can%20refer%20to%20the%20IPCF%20demo%20for%20your%20ipcf%20setting%20in%20your%20Lin%20project.%3C%2FP%3E%0A%3CP%3E2.Do%20you%20have%20tested%20the%20Lin%20function%20without%20IPCF%20on%20M%20%2B%20A%20core%20boot%3F%20You%20can%20separately%20test%20the%20two%20demos%20on%20M%2BA%20first.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EJoey%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2193927%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Adding%20IPCF%20functionality%20to%20existing%20S32DS%20project.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2193927%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThanks%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%3CBR%20%2F%3E1.%20The%20lin%20application%20runs%20on%20one%20core%20only.%20We%20have%20parallely%20booted%20both%20the%20cores%20and%20tested%20the%20lin%20functionality%20successfully.%3CBR%20%2F%3E2.%26nbsp%3B%20I%20have%20given%20the%20IPCF%20pheripheral%20configuration%20below%20for%20reference.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Niranj_369_0-1761622815140.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Niranj_369_0-1761622815140.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F362809i565FAF9B5AA36DA5%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Niranj_369_0-1761622815140.png%22%20alt%3D%22Niranj_369_0-1761622815140.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2193834%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Adding%20IPCF%20functionality%20to%20existing%20S32DS%20project.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2193834%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CSPAN%3ENiranj_369%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EThank%20you%20for%20your%20reply.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EDo%20you%20have%20only%20the%20test%20for%20LIN%20application%20on%20multi-core%3F%26nbsp%3B%20is%20the%20Lin%20function%20normal%20on%20multi-core%3F%20The%20clock%20setting%20and%20SetMode%20in%20M%20core%20may%20will%20have%20the%20conflict%20with%20A%20core%20at%20boot%20stage.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3E%26nbsp%3BBR%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EJoey%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2193676%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Adding%20IPCF%20functionality%20to%20existing%20S32DS%20project.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2193676%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3C!--%20StartFragment%20%20--%3E%3C%2FP%3E%3CP%3EThanks%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%3CBR%20%2F%3EI've%20integrated%20IPCF%20into%20the%20LIN%20code%20and%20successfully%20generated%20the%20binary.%20However%2C%20I'm%20encountering%20the%20following%20issues%3A%3C%2FP%3E%3COL%3E%3CLI%3ELIN%20functionality%20works%20as%20expected%2C%20but%20after%20loading%20the%20M7%20firmware%2C%20the%20serial%20terminal%20displays%20garbage%20characters.%20I'm%20unable%20to%20access%20the%20terminal%20or%20proceed%20with%20booting%20the%20A53.%3C%2FLI%3E%3CLI%3EIPCF%20functionality%20is%20not%20working.%20I've%20included%20the%20ping-pong%20logic%20from%20the%20IPCFG%20example%2C%20but%20it%20doesn't%20seem%20to%20respond.%3C%2FLI%3E%3C%2FOL%3E%3CP%3ECould%20you%20please%20suggest%20fixes%20for%20these%20issues%3F%20I've%20attached%20the%20linker%20script%20below%20for%20reference.%3CBR%20%2F%3ENote%3A%20I%20have%20used%20the%20correct%20load%20address%20and%20also%20verified%20the%20lin%20and%20IPCF%20examples%20seperately.%3C%2FP%3E%3CP%3E%3C!--%20EndFragment%20%20--%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Niranj_369_0-1761588032096.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Niranj_369_0-1761588032096.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F362746iDD577E34673FD970%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Niranj_369_0-1761588032096.png%22%20alt%3D%22Niranj_369_0-1761588032096.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2193054%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Adding%20IPCF%20functionality%20to%20existing%20S32DS%20project.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2193054%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%2C%3CSPAN%3ENiranj_369%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThank%20you%20for%20contacting%20us.%3C%2FP%3E%0A%3CP%3EYou%20can%20try%20to%20add%20the%20ipcf%20Middleware%20as%20the%20following%20picture%2C%20I%20used%20the%20UART%20demo%20and%20added%20the%20ipcf%20module%20into%20the%20application.%20Then%2C%20click%20the%20%22Update%20Code%22%20button%20to%20add%20the%20ipcf%20code%20in%20the%20project.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Joey_z_1-1761530408715.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Joey_z_1-1761530408715.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F362582i9051DE31817CA8EF%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Joey_z_1-1761530408715.png%22%20alt%3D%22Joey_z_1-1761530408715.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EHope%20this%20can%20help%20you.%3C%2FP%3E%0A%3CP%3EBR%3C%2FP%3E%0A%3CP%3EJoey%3C%2FP%3E%3C%2FLINGO-BODY%3E