Single channel ABS SB0401 Monitoring Module Issue

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

Single channel ABS SB0401 Monitoring Module Issue

596 Views
dhanabharathi
Contributor III

Hello @nxp ,

I’m using the SB0401 Single-Channel ABS module IC with an NXP S32K31xEVB-Q48 MCU as the SPI master. I transmit the monitoring/module data once every 10 ms, but the SB0401 monitoring module appears to reset/restart repeatedly (about once every 50 ms). Along with this, my SPI “error count” increases on every SPI transfer.

Below are the setup and my specific questions.

HW/SW setup

  • MCU (SPI Master): S32K31xEVB-Q48 (S32K31x family)

  • Device: SB0401 (Single-Channel ABS module IC)

  • Interface: SPI (LPSPI) (DMA based transfers)

  • Periodic transmission: every 10 ms

  • Observed issue: SB0401 monitoring module reset/restart every ~50 ms (see attached logs)

Observed behavior

  • The error counter increments for every SPI byte/word transfer.

  • I read AR (seed) from SB0401 message 18 and calculate MR based on that AR.

  • Despite sending frames periodically, the SB0401 monitoring module resets/restarts.

Questions

  1. MR calculation vs AR (Message 18)

    • My error count increases on every SPI transfer.

    • I calculate MR using the AR value received from SB0401 message 18.

    • Is it expected that an error counter would increment on every transfer in this condition, or does it indicate MR/AR logic is incorrect?

    • Please confirm the correct MR computation flow/timing relative to AR (message 18) and any common pitfalls (e.g., using stale AR, wrong byte/bit extraction, timing window, counter alignment).

  2. ACK position when writing Message 0

    • If I write data into Message 0 at TxBuf[0], where should I check the acknowledgement?

    • Example: For a write in TxBuf[0], does the ACK appear in RxBuf[0] (same word) or in RxBuf[1] (next word)?

    • If there is a defined “ACK occurs in the following SPI word/frame” rule, please share the exact mapping.

  3. Reference SW / CDD driver

    • Is there any reference CDD / example driver for SB0401 (C source or AUTOSAR-style CDD integration) that can be shared for guidance?

    • If not shareable, can you recommend the official SB0401 software package / app note / reference implementation details to follow?

 

0 Kudos
Reply
6 Replies

382 Views
dhanabharathi
Contributor III

Hi @guoweisun 

   yeah ok.

    Company:  Ettiksoft technologies Pvt ltd.

    project:  Two-wheeler single channel ABS. 



0 Kudos
Reply

336 Views
guoweisun
NXP TechSupport
NXP TechSupport

This part doesn't have CDD or other software drive and the reference schematic also need customer sign NDA then share.

 

0 Kudos
Reply

333 Views
dhanabharathi
Contributor III

hello @guoweisun 

  ok.  Any other reference code is there, like this module behaviour. 

0 Kudos
Reply

327 Views
guoweisun
NXP TechSupport
NXP TechSupport

For the example code I can't post here, could you please submit ticket from case port?

Home

0 Kudos
Reply

331 Views
guoweisun
NXP TechSupport
NXP TechSupport

Let me check again for the reference code about this special part.

0 Kudos
Reply

394 Views
guoweisun
NXP TechSupport
NXP TechSupport

Hi

Is possible to show your company and project information here?

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2270564%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ESingle%20channel%20ABS%20SB0401%20Monitoring%20Module%20Issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2270564%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EHello%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F61445%22%20target%3D%22_blank%22%3E%40nxp%3C%2FA%3E%26nbsp%3B%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EI%E2%80%99m%20using%20the%20SB0401%20Single-Channel%20ABS%20module%20IC%20with%20an%20NXP%20S32K31xEVB-Q48%20MCU%20as%20the%20SPI%20master.%20I%20transmit%20the%20monitoring%2Fmodule%20data%20once%20every%2010%20ms%2C%20but%20the%20SB0401%20monitoring%20module%20appears%20to%20reset%2Frestart%20repeatedly%20(about%20once%20every%2050%20ms).%20Along%20with%20this%2C%20my%20SPI%20%E2%80%9Cerror%20count%E2%80%9D%20increases%20on%20every%20SPI%20transfer.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EBelow%20are%20the%20setup%20and%20my%20specific%20questions.%3C%2FSPAN%3E%3C%2FP%3E%3CP%20class%3D%22%22%3E%3CSTRONG%3E%3CSPAN%3EHW%2FSW%20setup%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EMCU%20(SPI%20Master)%3A%20S32K31xEVB-Q48%20(S32K31x%20family)%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EDevice%3A%20SB0401%20(Single-Channel%20ABS%20module%20IC)%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EInterface%3A%20SPI%20(LPSPI)%20(DMA%20based%20transfers)%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EPeriodic%20transmission%3A%20every%2010%20ms%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EObserved%20issue%3A%20SB0401%20monitoring%20module%20reset%2Frestart%20every%20~50%20ms%20(see%20attached%20logs)%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%20class%3D%22%22%3E%3CSTRONG%3E%3CSPAN%3EObserved%20behavior%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EThe%20error%20counter%20increments%20for%20every%20SPI%20byte%2Fword%20transfer.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EI%20read%20AR%20(seed)%20from%20SB0401%20message%2018%20and%20calculate%20MR%20based%20on%20that%20AR.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EDespite%20sending%20frames%20periodically%2C%20the%20SB0401%20monitoring%20module%20resets%2Frestarts.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CH2%20id%3D%22toc-hId--493863910%22%20id%3D%22toc-hId--493861988%22%20id%3D%22toc-hId--493861988%22%20id%3D%22toc-hId--493861988%22%20id%3D%22toc-hId--493861988%22%20id%3D%22toc-hId--493861988%22%20id%3D%22toc-hId--493861988%22%20id%3D%22toc-hId--493861988%22%3E%3CSPAN%3EQuestions%3C%2FSPAN%3E%3C%2FH2%3E%3COL%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSTRONG%3E%3CSPAN%3EMR%20calculation%20vs%20AR%20(Message%2018)%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EMy%20error%20count%20increases%20on%20every%20SPI%20transfer.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EI%20calculate%20MR%20using%20the%20AR%20value%20received%20from%20SB0401%20message%2018.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EIs%20it%20expected%20that%20an%20error%20counter%20would%20increment%20on%20every%20transfer%20in%20this%20condition%2C%20or%20does%20it%20indicate%20MR%2FAR%20logic%20is%20incorrect%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EPlease%20confirm%20the%20correct%20MR%20computation%20flow%2Ftiming%20relative%20to%20AR%20(message%2018)%20and%20any%20common%20pitfalls%20(e.g.%2C%20using%20stale%20AR%2C%20wrong%20byte%2Fbit%20extraction%2C%20timing%20window%2C%20counter%20alignment).%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSTRONG%3E%3CSPAN%3EACK%20position%20when%20writing%20Message%200%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EIf%20I%20write%20data%20into%20%3C%2FSPAN%3E%3CSTRONG%3E%3CSPAN%3EMessage%200%3C%2FSPAN%3E%3C%2FSTRONG%3E%3CSPAN%3E%20at%20%3C%2FSPAN%3E%3CSPAN%3ETxBuf%3CSPAN%20class%3D%22%22%3E%5B0%5D%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E%2C%20where%20should%20I%20check%20the%20acknowledgement%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EExample%3A%20For%20a%20write%20in%20%3C%2FSPAN%3E%3CSPAN%3ETxBuf%3CSPAN%20class%3D%22%22%3E%5B0%5D%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E%2C%20does%20the%20ACK%20appear%20in%20%3C%2FSPAN%3E%3CSPAN%3ERxBuf%3CSPAN%20class%3D%22%22%3E%5B0%5D%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E%20(same%20word)%20or%20in%20%3C%2FSPAN%3E%3CSPAN%3ERxBuf%3CSPAN%20class%3D%22%22%3E%5B1%5D%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E%20(next%20word)%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EIf%20there%20is%20a%20defined%20%E2%80%9CACK%20occurs%20in%20the%20following%20SPI%20word%2Fframe%E2%80%9D%20rule%2C%20please%20share%20the%20exact%20mapping.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSTRONG%3E%3CSPAN%3EReference%20SW%20%2F%20CDD%20driver%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EIs%20there%20any%20reference%20CDD%20%2F%20example%20driver%20for%20SB0401%20(C%20source%20or%20AUTOSAR-style%20CDD%20integration)%20that%20can%20be%20shared%20for%20guidance%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%20class%3D%22%22%3E%3CSPAN%3EIf%20not%20shareable%2C%20can%20you%20recommend%20the%20official%20SB0401%20software%20package%20%2F%20app%20note%20%2F%20reference%20implementation%20details%20to%20follow%3F%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLI%3E%3C%2FOL%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2281577%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Single%20channel%20ABS%20SB0401%20Monitoring%20Module%20Issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2281577%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%3C%2FP%3E%0A%3CP%3EIs%20possible%20to%20show%20your%20company%20and%20project%20information%20here%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2281663%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Single%20channel%20ABS%20SB0401%20Monitoring%20Module%20Issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2281663%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%2F138749%22%20target%3D%22_blank%22%3E%40guoweisun%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3Byeah%20ok.%3C%2FP%3E%3CP%3E%26nbsp%3B%20%26nbsp%3B%20Company%3A%26nbsp%3B%20Ettiksoft%20technologies%20Pvt%20ltd.%3CBR%20%2F%3E%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20project%3A%26nbsp%3B%20Two-wheeler%20single%20channel%20ABS.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2289108%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Single%20channel%20ABS%20SB0401%20Monitoring%20Module%20Issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2289108%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EThis%20part%20doesn't%20have%20CDD%20or%20other%20software%20drive%20and%20the%20reference%20schematic%20also%20need%20customer%20sign%20NDA%20then%20share.%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2289116%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Single%20channel%20ABS%20SB0401%20Monitoring%20Module%20Issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2289116%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ELet%20me%20check%20again%20for%20the%20reference%20code%20about%20this%20special%20part.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2289121%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Single%20channel%20ABS%20SB0401%20Monitoring%20Module%20Issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2289121%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EFor%20the%20example%20code%20I%20can't%20post%20here%2C%20could%20you%20please%20submit%20ticket%20from%20case%20port%3F%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.nxp.com%2Fs%2F%3Flanguage%3Den_US%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EHome%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2289114%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Single%20channel%20ABS%20SB0401%20Monitoring%20Module%20Issue%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2289114%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehello%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F138749%22%20target%3D%22_blank%22%3E%40guoweisun%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%20ok.%26nbsp%3B%20Any%20other%20reference%20code%20is%20there%2C%20like%20this%20module%20behaviour.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E