Hi Sathish,

We currently do not use TPL in NuttX for our example application.
But this can easily be adopted.

Bare metal example code and drivers for the BCC (MC3377xx), including SPI 
transfers for TPL communication can be found on the NXP website.
https://www.nxp.com/design/analog-expert-software-and-tools/sdk-analog-expert-drivers/embedded-sw-battery-cell-controller-software-driver-for-mc33771b-mc33772b:EMBEDDED-SW-BCC?tab=Design_Tools_Tab

You could add this to your application and together with the NuttX SPI drivers.
For an example on how to do that, you could check the BMS772 example software 
at https://github.com/NXPHoverGames/RDDRONE-BMS772/.
This example software communicates using an S32K144 to a single MC33772 BCC 
using SPI.

Kind regards,

Cis van Mierlo
Systems & Applications Engineer
NXP Semiconductors, CTO Systems Innovations

High Tech Campus 46, room 0.64, 5656 AE Eindhoven, The Netherlands
E-mail: cis.van.mie...@nxp.com<mailto:cis.van.mie...@nxp.com>
Internet: http://www.nxp.com<http://www.nxp.com/>

From: Sathish Touch energy <sath...@touchenergy.in>
Sent: Saturday, August 28, 2021 4:09 AM
To: dev@nuttx.apache.org
Cc: Peter van der Perk <peter.vanderp...@nxp.com>; Cis van Mierlo 
<cis.van.mie...@nxp.com>
Subject: [EXT] Re: TPL support in nuttx for daisy chain battery cell monitoring?


Caution: EXT Email
Hi Alan,

Thanks for your quick response.

Yes. It requires TWO SPI WORKING at the same time.

Hi Peter and Cis,

Do we have TPL code in nuttx for daisy chain battery cell monitoring?

or how do we proceed into the nuttx porting work from the TPL code available at
https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/BMS-amp-MBDT-MC33771B-MC33772B-TPL-communication-with-S32K/ta-p/1153459<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FNXP-Model-Based-Design-Tools%2FBMS-amp-MBDT-MC33771B-MC33772B-TPL-communication-with-S32K%2Fta-p%2F1153459&data=04%7C01%7Ccis.van.mierlo%40nxp.com%7Cc600678a468349aabd6108d969c8e03b%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C637657133744970671%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=CIif1V4IgcbF6rPvU8DAlLkaVWjvhPJVo8vYGxbF88w%3D&reserved=0>

Thanks and Regards,
Sathish.


On Sat, 28 Aug 2021 at 01:10, Alan Carvalho de Assis 
<acas...@gmail.com<mailto:acas...@gmail.com>> wrote:
Hi Sathish,

I think it will need the driver for MC3377x or similar battery monitor chip:

https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/BMS-amp-MBDT-MC33771B-MC33772B-TPL-communication-with-S32K/ta-p/1153459<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FNXP-Model-Based-Design-Tools%2FBMS-amp-MBDT-MC33771B-MC33772B-TPL-communication-with-S32K%2Fta-p%2F1153459&data=04%7C01%7Ccis.van.mierlo%40nxp.com%7Cc600678a468349aabd6108d969c8e03b%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C637657133744980661%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=uJOSMRo3BvVqoV92zmOQZt9IYRrtps%2BdH0oG4ZY%2FNAs%3D&reserved=0>

If I read it correctly it will require two SPIs working at same time
to support TPL.

I'm CC Peter and Cis, they are the guys working on it and could give
us more info.

BR,

Alan

On 8/27/21, Sathish Touch energy 
<sath...@touchenergy.in<mailto:sath...@touchenergy.in>> wrote:
> Hi,
>
> I am using nuttx, with an S32K144 eval board.
>
> nuttx supports SPI driver for battery cell monitoring.
>
> In the same way, is there TPL support in nuttx for daisy chain battery cell
> monitoring?
>
> Thanks and Regards,
> Sathish.
>

Reply via email to