LPSPI_DRV_MasterStartTransfer()

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LPSPI_DRV_MasterStartTransfer()

跳至解决方案
2,077 次查看
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 项奖励
回复
1 解答
2,056 次查看
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 项奖励
回复
2 回复数
2,057 次查看
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 项奖励
回复
2,043 次查看
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 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-1905547%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELPSPI_DRV_MasterStartTransfer%EF%BC%88%EF%BC%89%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1905547%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%85%8D%E8%B4%A3%E5%A3%B0%E6%98%8E%EF%BC%9A%E6%88%91%E5%AF%B9%20S32DS%20%E8%BF%98%E4%B8%8D%E7%86%9F%E6%82%89%3C%2FP%3E%3CP%3E%E6%88%91%E8%8E%B7%E5%BE%97%E4%BA%86%E4%B8%80%E4%B8%AA%E5%BE%88%E4%B9%85%E6%B2%A1%E6%9C%89%E5%8A%A8%E8%BF%87%E7%9A%84%E9%A1%B9%E7%9B%AE%E7%9A%84%E4%BB%A3%E7%A0%81%E5%BA%93%E3%80%82%E6%89%93%E5%BC%80%E9%A1%B9%E7%9B%AE%E5%90%8E%EF%BC%8C%E6%88%91%E7%9C%8B%E5%88%B0%E4%BA%86%E8%BF%99%E4%B8%AA%E9%94%99%E8%AF%AF%E3%80%82%E5%BD%93%E6%88%91%E5%B0%86%E9%BC%A0%E6%A0%87%E6%82%AC%E5%81%9C%E5%9C%A8%E9%94%99%E8%AF%AF%E4%B8%8A%E6%97%B6%EF%BC%8C%E5%AE%83%E6%98%BE%E7%A4%BA%E2%80%9C%E5%AF%B9%20LPSPI_DRV_MasterStartTransfer%20%E7%9A%84%E6%9C%AA%E5%AE%9A%E4%B9%89%E5%BC%95%E7%94%A8%E2%80%9D%E3%80%82%E6%88%91%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8%20ARM%20v2.0%EF%BC%8C%E5%9B%A0%E4%B8%BA%E4%BB%A3%E7%A0%81%E5%B0%B1%E6%98%AF%E7%94%A8%E5%AE%83%E7%BC%96%E5%86%99%E7%9A%84%E3%80%82%E6%88%91%E6%98%AF%E5%90%A6%E9%9C%80%E8%A6%81%E4%B8%8B%E8%BD%BD%E4%BB%BB%E4%BD%95%E9%A2%9D%E5%A4%96%E7%9A%84%E5%BA%93%E3%80%81SDK%20%E6%88%96%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%E6%89%8D%E8%83%BD%E4%BD%BF%E6%AD%A4%E4%BB%A3%E7%A0%81%E8%BF%90%E8%A1%8C%EF%BC%9F%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%3E%E5%9B%9E%E5%A4%8D%EF%BC%9ALPSPI_DRV_MasterStartTransfer()%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1906369%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E8%B0%A2%E8%B0%A2%E3%80%82%E6%88%91%E5%90%91%E8%AF%A5%20C%20%E6%96%87%E4%BB%B6%E6%B7%BB%E5%8A%A0%E4%BA%86%E4%B8%80%E4%B8%AA%E5%8C%85%E5%90%AB%E5%86%85%E5%AE%B9%EF%BC%8C%E8%BF%99%E4%BC%BC%E4%B9%8E%E8%B5%B7%E4%BA%86%E4%BD%9C%E7%94%A8%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E8%87%B3%E4%BA%8E%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E4%BD%BF%E7%94%A8%E9%82%A3%E4%B8%AA%E5%91%BD%E4%BB%A4%EF%BC%8C%E6%88%91%E4%B8%8D%E7%9F%A5%E9%81%93%E3%80%82%E6%88%91%E5%8F%AA%E6%98%AF%E8%8E%B7%E5%BE%97%E4%BA%86%E8%BF%99%E4%B8%AA%E5%B8%A6%E6%9C%89%E5%BE%88%E5%B0%91%E6%B3%A8%E9%87%8A%E7%9A%84%E5%AD%98%E5%82%A8%E5%BA%93%EF%BC%8C%E6%89%80%E4%BB%A5%E6%88%91%E4%B8%8D%E7%A1%AE%E5%AE%9A%E5%AE%83%E6%98%AF%E5%A6%82%E4%BD%95%E5%B7%A5%E4%BD%9C%E7%9A%84%E3%80%82%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1905899%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%E5%9B%9E%E5%A4%8D%EF%BC%9ALPSPI_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%3E%E8%AF%A5%E5%87%BD%E6%95%B0%E5%8F%AF%E4%BB%A5%E5%9C%A8...%2FSDK%2Fplatform%2Fdrivers%2Fsrc%2Flpspi%2Flpspi_master_driver.c%E4%B8%AD%E6%89%BE%E5%88%B0%EF%BC%8C%E5%AE%83%E6%98%AF%3CSTRONG%3E%E9%9D%99%E6%80%81%3C%2FSTRONG%3Estatus_t%20LPSPI_DRV_MasterStartTransfer()%3C%2FP%3E%0A%3CP%3E%E4%B8%BA%E4%BB%80%E4%B9%88%E4%B8%8D%E4%BD%BF%E7%94%A8%20LPSPI_DRV_MasterTransfer%20%E6%88%96%20LPSPI_DRV_MasterTransferBlocking%EF%BC%9F%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%E6%AD%A4%E8%87%B4%EF%BC%8C%3CBR%20%2F%3E%E7%BD%97%E5%AE%BE%3CBR%20%2F%3E--------------------------------------------------------------------------------%3CBR%20%2F%3E%E7%AC%94%E8%AE%B0%EF%BC%9A%3CBR%20%2F%3E%20-%20%E5%A6%82%E6%9E%9C%E8%BF%99%E7%AF%87%E6%96%87%E7%AB%A0%E5%9B%9E%E7%AD%94%E4%BA%86%E6%82%A8%E7%9A%84%E9%97%AE%E9%A2%98%EF%BC%8C%E8%AF%B7%E7%82%B9%E5%87%BB%E2%80%9C%E6%A0%87%E8%AE%B0%E6%AD%A3%E7%A1%AE%E2%80%9D%E6%8C%89%E9%92%AE%E3%80%82%E8%B0%A2%E8%B0%A2%E4%BD%A0%EF%BC%81%3C%2FP%3E%0A%3CP%3E-%20%E6%88%91%E4%BB%AC%E4%BC%9A%E5%85%B3%E6%B3%A8%E4%B8%8A%E6%AC%A1%E5%8F%91%E5%B8%96%E5%90%8E%E4%B8%83%E5%91%A8%E7%9A%84%E5%B8%96%E5%AD%90%EF%BC%8C%E4%B9%8B%E5%90%8E%E7%9A%84%E5%9B%9E%E5%A4%8D%E5%B0%86%E8%A2%AB%E5%BF%BD%E7%95%A5%3CBR%20%2F%3E%E5%A6%82%E6%9E%9C%E6%82%A8%E7%A8%8D%E5%90%8E%E6%9C%89%E7%9B%B8%E5%85%B3%E9%97%AE%E9%A2%98%EF%BC%8C%E8%AF%B7%E6%89%93%E5%BC%80%E4%B8%80%E4%B8%AA%E6%96%B0%E7%BA%BF%E7%A8%8B%E5%B9%B6%E5%8F%82%E8%80%83%E5%B7%B2%E5%85%B3%E9%97%AD%E7%9A%84%E7%BA%BF%E7%A8%8B%E3%80%82%3CBR%20%2F%3E--------------------------------------------------------------------------------%3C%2FP%3E%3C%2FLINGO-BODY%3E