LPSPI_DRV_MasterStartTransfer()

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

LPSPI_DRV_MasterStartTransfer()

Jump to solution
1,987 Views
DevinHolz
Contributor I

Disclaimer: I am fairly new to S32DS

I was given a repository of code from a project that hasn't been touched in a long time. Upon opening the project, I was greeted with this error. When hovering my mouse over the error, it says "undefined reference to LPSPI_DRV_MasterStartTransfer". I am using ARM v2.0 as that is what the code was written in. Do I need to download any extra libraries, SDKs or drivers to make this code work? 

Code Error 1.PNG

0 Kudos
Reply
1 Solution
1,966 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

This function can be found in .../SDK/platform/drivers/src/lpspi/lpspi_master_driver.c and it is static status_t LPSPI_DRV_MasterStartTransfer()

Why not use LPSPI_DRV_MasterTransfer or LPSPI_DRV_MasterTransferBlocking?


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
2 Replies
1,967 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

This function can be found in .../SDK/platform/drivers/src/lpspi/lpspi_master_driver.c and it is static status_t LPSPI_DRV_MasterStartTransfer()

Why not use LPSPI_DRV_MasterTransfer or LPSPI_DRV_MasterTransferBlocking?


Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply
1,953 Views
DevinHolz
Contributor I
Thank you. I added an include to that C file which seemed to do the trick.

As for why that command is used, I don't know. I was simply given this repository with very little notation so I'm not sure how anything works.
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1905547%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELPSPI_DRV_MasterStartTransfer()%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1905547%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDisclaimer%3A%20I%20am%20fairly%20new%20to%20S32DS%3C%2FP%3E%3CP%3EI%20was%20given%20a%20repository%20of%20code%20from%20a%20project%20that%20hasn't%20been%20touched%20in%20a%20long%20time.%20Upon%20opening%20the%20project%2C%20I%20was%20greeted%20with%20this%20error.%20When%20hovering%20my%20mouse%20over%20the%20error%2C%20it%20says%20%22undefined%20reference%20to%26nbsp%3BLPSPI_DRV_MasterStartTransfer%22.%20I%20am%20using%20ARM%20v2.0%20as%20that%20is%20what%20the%20code%20was%20written%20in.%20Do%20I%20need%20to%20download%20any%20extra%20libraries%2C%20SDKs%20or%20drivers%20to%20make%20this%20code%20work%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Code%20Error%201.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Code%20Error%201.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F287990i1F8A23BFACC9640D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Code%20Error%201.PNG%22%20alt%3D%22Code%20Error%201.PNG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1906369%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20LPSPI_DRV_MasterStartTransfer()%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1906369%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EThank%20you.%20I%20added%20an%20include%20to%20that%20C%20file%20which%20seemed%20to%20do%20the%20trick.%3CBR%20%2F%3E%3CBR%20%2F%3EAs%20for%20why%20that%20command%20is%20used%2C%20I%20don't%20know.%20I%20was%20simply%20given%20this%20repository%20with%20very%20little%20notation%20so%20I'm%20not%20sure%20how%20anything%20works.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1905899%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20LPSPI_DRV_MasterStartTransfer()%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1905899%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%3C%2FP%3E%0A%3CP%3EThis%20function%20can%20be%20found%20in%26nbsp%3B...%2FSDK%2Fplatform%2Fdrivers%2Fsrc%2Flpspi%2Flpspi_master_driver.c%20and%20it%20is%20%3CSTRONG%3Estatic%3C%2FSTRONG%3E%20status_t%20LPSPI_DRV_MasterStartTransfer()%3C%2FP%3E%0A%3CP%3EWhy%20not%20use%26nbsp%3BLPSPI_DRV_MasterTransfer%20or%26nbsp%3BLPSPI_DRV_MasterTransferBlocking%3F%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3ERobin%3CBR%20%2F%3E-------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%3CBR%20%2F%3E-%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20%22Mark%20Correct%22%20button.%20Thank%20you!%3C%2FP%3E%0A%3CP%3E-%20We%20are%20following%20threads%20for%207%20weeks%20after%20the%20last%20post%2C%20later%20replies%20are%20ignored%3CBR%20%2F%3EPlease%20open%20a%20new%20thread%20and%20refer%20to%20the%20closed%20one%2C%20if%20you%20have%20a%20related%20question%20at%20a%20later%20point%20in%20time.%3CBR%20%2F%3E-------------------------------------------------------------------------------%3C%2FP%3E%3C%2FLINGO-BODY%3E