[S32k3] Multipartition with single core + lockstep Controller

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

[S32k3] Multipartition with single core + lockstep Controller

117 Views
KrutarthRaut41
Contributor II

I’m working on an AUTOSAR project with the S32K3x and need to split the 4 LPSPI modules into two independent partitions. Note that, ECU we are using is single core + lock step so we dont have 2 separate cores:

  • Partition A: LPSPI1 & LPSPI2
  • Partition B: LPSPI3 & LPSPI4

Each partition should run in synchronous mode without conflicts between the SPI driver and SCHM. I’m using EB Tresos for configuration and RTD 6.0.0 for the SPI driver.

I’m looking for guidance on:

  1. What settings should I use in EB Tresos (SpiLevel, channels, jobs, sequences, SCHM exclusive areas)?
  2. How should I map external devices and chip-select pins for each partition?
  3. Any best practices for DMA, buffer allocation, and ensuring partition isolation?
  4. If possible, could you share an example EB Tresos XML snippet or screenshots for this setup?
0 Kudos
Reply
1 Reply

68 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @KrutarthRaut41 

Could you please clarify a few points? You mentioned that your device is “single core + lockstep.” Do you mean it has only one lockstep core? Please also specify the exact S32K3 derivative you are using.

If you have a single core, both partitions will share the same CPU, so true parallel execution is not possible.

For a good starting point to understand the SPI driver for S32K3 devices, I recommend referring to the S32K3_S32M27x SPI Driver Integration Manual and the User Manual included with the RTDs. These documents provide detailed information about the driver, including its limitations, hardware and software requirements, usage instructions, and configuration guidelines. They will help you gain a deeper understanding of the driver’s functionality. You can find these resources at:

C:\NXP\SW32K3_S32M27x_RTD_R21-11_6.0.0\eclipse\plugins\Spi_TS_T40D34M60I0R0\doc

 

BR, VaneB

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2217207%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%5BS32k3%5D%20Multipartition%20with%20single%20core%20%2B%20lockstep%20Controller%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2217207%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%E2%80%99m%20working%20on%20an%20AUTOSAR%20project%20with%20the%20S32K3x%20and%20need%20to%20split%20the%204%20LPSPI%20modules%20into%20two%20independent%20partitions.%20Note%20that%2C%20ECU%20we%20are%20using%20is%20single%20core%20%2B%20lock%20step%20so%20we%20dont%20have%202%20separate%20cores%3A%3C%2FP%3E%3CUL%3E%3CLI%3EPartition%20A%3A%20LPSPI1%20%26amp%3B%20LPSPI2%3C%2FLI%3E%3CLI%3EPartition%20B%3A%20LPSPI3%20%26amp%3B%20LPSPI4%3C%2FLI%3E%3C%2FUL%3E%3CP%3EEach%20partition%20should%20run%20in%20synchronous%20mode%20without%20conflicts%20between%20the%20SPI%20driver%20and%20SCHM.%20I%E2%80%99m%20using%20EB%20Tresos%20for%20configuration%20and%20RTD%206.0.0%20for%20the%20SPI%20driver.%3C%2FP%3E%3CP%3EI%E2%80%99m%20looking%20for%20guidance%20on%3A%3C%2FP%3E%3COL%3E%3CLI%3EWhat%20settings%20should%20I%20use%20in%20EB%20Tresos%20(SpiLevel%2C%20channels%2C%20jobs%2C%20sequences%2C%20SCHM%20exclusive%20areas)%3F%3C%2FLI%3E%3CLI%3EHow%20should%20I%20map%20external%20devices%20and%20chip-select%20pins%20for%20each%20partition%3F%3C%2FLI%3E%3CLI%3EAny%20best%20practices%20for%20DMA%2C%20buffer%20allocation%2C%20and%20ensuring%20partition%20isolation%3F%3C%2FLI%3E%3CLI%3EIf%20possible%2C%20could%20you%20share%20an%20example%20EB%20Tresos%20XML%20snippet%20or%20screenshots%20for%20this%20setup%3F%3C%2FLI%3E%3C%2FOL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2226920%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20%5BS32k3%5D%20Multipartition%20with%20single%20core%20%2B%20lockstep%20Controller%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2226920%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%2F241226%22%20target%3D%22_blank%22%3E%40KrutarthRaut41%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECould%20you%20please%20clarify%20a%20few%20points%3F%20You%20mentioned%20that%20your%20device%20is%20%E2%80%9Csingle%20core%20%2B%20lockstep.%E2%80%9D%20Do%20you%20mean%20it%20has%20only%20one%20lockstep%20core%3F%20Please%20also%20specify%20the%20exact%20S32K3%20derivative%20you%20are%20using.%3C%2FP%3E%0A%3CP%3EIf%20you%20have%20a%20single%20core%2C%20both%20partitions%20will%20share%20the%20same%20CPU%2C%20so%20true%20parallel%20execution%20is%20not%20possible.%3C%2FP%3E%0A%3CP%3EFor%20a%20good%20starting%20point%20to%20understand%20the%20SPI%20driver%20for%20S32K3%20devices%2C%20I%20recommend%20referring%20to%20the%20S32K3_S32M27x%20SPI%20Driver%20Integration%20Manual%20and%20the%20User%20Manual%20included%20with%20the%20RTDs.%20These%20documents%20provide%20detailed%20information%20about%20the%20driver%2C%20including%20its%20limitations%2C%20hardware%20and%20software%20requirements%2C%20usage%20instructions%2C%20and%20configuration%20guidelines.%20They%20will%20help%20you%20gain%20a%20deeper%20understanding%20of%20the%20driver%E2%80%99s%20functionality.%20You%20can%20find%20these%20resources%20at%3A%3C%2FP%3E%0A%3CP%3E%3CEM%3E%3CSTRONG%3EC%3A%5CNXP%5CSW32K3_S32M27x_RTD_R21-11_6.0.0%5Ceclipse%5Cplugins%5CSpi_TS_T40D34M60I0R0%5Cdoc%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%2C%20VaneB%3C%2FP%3E%3C%2FLINGO-BODY%3E