Regards Example Code Async SPI ON WB s32k344

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

Regards Example Code Async SPI ON WB s32k344

1,857 Views
AbhishekK
Contributor III

Hello 

 

can anyone will help with WB S32k344 (SPI Async loopback ) example code or something .

we are struggling here with it .

 

The scenario is like ,

We want to get SPI UP . we are configured SPI and called below functions .

Spi_Init(NULL_PTR);

Spi_SetAsyncMode(SPI_INTERRUPT_MODE);

Spi_SetupEB(0u, TxChBuf0, RxChBuf0, 20u);

WriteIB(1u, TxChBuf1);

Spi_AsyncTransmit(SpiConf_SpiSequence_SpiSequence_Slave);

but we are not able to check the clock pulses also on SPI_CLK line .

kindly guide us with method to verify all conditions to up spi .

 

1. one doubt i need to clerify about spi ? 

SPIclk will get only when some data is transfering SPI_OUT or SPI_IN . is it corrct ?

 

Tags (2)
0 Kudos
Reply
12 Replies

245 Views
ekmas-19
Contributor II

Robin_Shen,

I have the s32K344-WB board. From what you said, the example projects won't run here. What is the difference in this board to the compatible boards, S32K3X4EVB-Q257 or S32K3X4EVB-T172? what changes would need to be made to the examples?

This is most unfortunate. 

0 Kudos
Reply

1,794 Views
AbhishekK
Contributor III

Hello robin 

Is there any document avaliable which guide the about EB project import and compile ,build it .

As it seems process is too much complicated .I am struggling here to import and compile it 

Please help me with it 

AbhishekK_0-1739516862606.png

As you see project structure is too much different .

 

Thanks 

Abhishek 

0 Kudos
Reply

1,795 Views
AbhishekK
Contributor III

Hi Robin 

I got version 1 RTD package 

It is Available here 

0 Kudos
Reply

1,797 Views
AbhishekK
Contributor III

Hi Robin

Please let me know which RTD package is used for these plugins . as I am not able to get these Plugins 

AbhishekK_0-1739514494240.png

Kindly provide me path .

Thanks

Abhishek

 

0 Kudos
Reply

1,752 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Did you install SW32K3_RTD_4.4_1.0.0_D2110.exe by follow the chapter "2.3.2. Install Real-Time Drivers" of S32K344_Whiteboard_Software_User_Guide.pdf?  (C:\NXP\S32K344_Whiteboard_Example_RTM_1.0.0\S32K344_Whiteboard_Example_RTM_1.0.0\S32K344_Whiteboard_Software_User_Guide.pdf)

Please download RTD by click S32K3 Standard Software -> Automotive SW - S32K3/S32M27x - Real-Time Drivers for Cortex-M -> 

 

Q: Is there any document avaliable which guide the about EB project import and compile ,build it
A: Please follow the guide of S32K344_Whiteboard_Software_User_Guide.pdf, for example: 5.2. Import EB tresos Project.

0 Kudos
Reply

1,748 Views
AbhishekK
Contributor III

Hi Robin

I have gone throught above document . In this document it is mentioned only how to generate code but I want info about Compilation of this code and elf generation .

Kindly help on it .

AbhishekK_0-1739772758144.png

AbhishekK_1-1739772829957.png

Here only S32ds build info is there not about EB tresos build info 

 

 

0 Kudos
Reply

1,737 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Sorry, the EB configuration project in S32K344_Whiteboard_Example_RTM_1.0.0 seems to only build in S32DS and generate elf files. It does not provide makefile to build like other EB projects in S32K3 RTD.

0 Kudos
Reply

1,732 Views
AbhishekK
Contributor III
Can you please help me with how to build in S32DS ?
As This info I am not able to find it .
0 Kudos
Reply

1,723 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

I followed the following order:
5.2. Import EB tresos Project
6. Generate Code
5.1. Import S32DS Project
7.1. Build in S32DS

0 Kudos
Reply

1,716 Views
AbhishekK
Contributor III

AbhishekK_0-1739879165661.png

 Not able to understand this Error . Can you please help me with it . 

Thanks

 

0 Kudos
Reply

1,698 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

The video in the attachment records how I imported the EB project to generate code and then built the project with S32DS. I don't have S32K3 RTD 1.0.0 installed but I have RTD 1.0.0 HF01 installed. But I don't think this is the cause of this problem.
Have you tried to import the RTD 1.0.0 project and build it? (File->New->S32DS Project from Example)

If not, I'm afraid you need to raise a new question in the S32DS community and ask my colleagues for help.

 

Or reinstall S32DS v3.4 with S32K3 RTD 1.0.0:

Please start from page 17 of S32K3xx Real-Time Drivers (RTD) Installation Guide - Training

Click S32K3 Standard Software - > Automotive SW - S32K3/S32M27x - Real-Time Drivers for Cortex-M -> Previous -> S32K3 Real Time Drivers Version 1.0.0

Click S32K3 Standard Software - > Automotive SW - S32K3 - S32 Design Studio -> 3.4.1_D2110 S32 Design Studio for S32 Platform v.3.4 Update with Service Pack 2 for S32K3 devices

0 Kudos
Reply

1,846 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Yes.

Please tell me which board you are using. Is it the S32K344-WB Evaluation Board for Automotive General Purpose? There is a Spi_Example_47478A_440_100 project in the S32K344 Whiteboard Example Project for your reference. (C:\NXP\S32K344_Whiteboard_Example_RTM_1.0.0\S32K344_Whiteboard_Example_RTM_1.0.0\SPI\Spi_Example_47478A_440_100)

Unfortunately, the S32K3 RTD is usually an example on the S32K3X4EVB-Q257 or S32K3X4EVB-T172, so if you use the project in the RTD, you need to modify it according to the S32K344-WB hardware.

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "ACCEPT AS SOLUTION" 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.
-------------------------------------------------------------------------------