You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nuttx.apache.org by Sathish Touch energy <sa...@touchenergy.in> on 2021/04/16 16:07:45 UTC
SPI driver is not working in S32K144 EVB
>
>
> Hello,
> We are trying to check SPI driver functionality for our application on
> NUTTX-10.0.0 baseline.
> On the supported platform link (
> https://nuttx.apache.org/docs/latest/introduction/detailed_support.html#other-armv4)
> of nuttx we see the support for SPI driver is available for S32K146 &
> S32K148. We adapted the code to have the correct SPI clock but still the
> receive data is not fully working. Any clue on how to proceed on this.
>
> Regards,
> Sathish
>
RE: [EXT] Re: SPI driver is not working in S32K144 EVB
Posted by Peter van der Perk <pe...@nxp.com>.
Hi Sathish,
Colleagues of mine, have worked on the BMS-772 (S32K144 + MC33772B) which also runs NuttX.
To get the BCC working we've applied some patches that yet have to upstreamed to NuttX.
But you can check out the source code here https://github.com/NXPHoverGames/RDDRONE-BMS772
Furthermore they gave a nice introduction to our BMS-772 in combination with NuttX during the NuttX online workshop.
https://youtu.be/CIpa3_70PCY?t=17135
-----Original Message-----
From: Alan Carvalho de Assis <ac...@gmail.com>
Sent: Sunday, April 18, 2021 6:32 PM
To: dev@nuttx.apache.org
Subject: [EXT] Re: SPI driver is not working in S32K144 EVB
Caution: EXT Email
Hi Sathish,
Are you using a battery solution similar to this board:
https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmouser.com%2Fnew%2Fnxp-semiconductors%2Fnxp-rd33771cntrevm-reference-design%2F&data=04%7C01%7Cpeter.vanderperk%40nxp.com%7Cea24695cc7cb4ca2830b08d90287783f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%7C637543603148196566%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=KYnEZIJfc1BGMxO3dShoOwntMA9anGaOavPagk3tw9A%3D&reserved=0
I suggest you to used an logic analyzer to verify if the signals are correct.
You can do it manually, but a LA will save your time.
BR,
Alan
On 4/18/21, Sathish Touch energy <sa...@touchenergy.in> wrote:
> Hi Alan,
> Thanks for your support. We are using S32K144EVB with BCC 33771 as the
> AFE (14S).
> WIth this we had to include the software Chip select logic on the GPIO
> pin to make the SPI read work.
> Now we are debugging the SPI TX which is not yet fully working.
>
>
> Thanks,
> Sathish
>
> On Fri, 16 Apr 2021 at 22:24, Alan Carvalho de Assis
> <ac...@gmail.com>
> wrote:
>
>> Hi Sathish,
>>
>> Are you using a supported S32K1xx board or a custom board?
>>
>> There are support to LPSPIx i then EVB boards directory, so I'm
>> assuming it was tested/validated.
>>
>> Maybe someone from NXP could confirm/deny it.
>>
>> Do you have analyzed the SPI pins? if you don't implement the Chip
>> Select logic correctly on your board it will not work. Normally NuttX
>> doesn't use the HW SPI CS.
>>
>> It is obvious for us, but could be something new for you.
>>
>> BR,
>>
>> Alan
>>
>> On 4/16/21, Sathish Touch energy <sa...@touchenergy.in> wrote:
>> >>
>> >>
>> >>> Hello,
>> >>> We are trying to check SPI driver functionality for our
>> >>> application on
>> >>> NUTTX-10.0.0 baseline.
>> >>> On the supported platform link (
>> >>>
>> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fnut
>> tx.apache.org%2Fdocs%2Flatest%2Fintroduction%2Fdetailed_support.html%
>> 23other-armv4&data=04%7C01%7Cpeter.vanderperk%40nxp.com%7Cea24695
>> cc7cb4ca2830b08d90287783f%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0%
>> 7C637543603148196566%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQ
>> IjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Yim%2BRrY
>> fyZu4r%2FyN%2F9Kgvfibqw375eJcUwZ0Sx50ju0%3D&reserved=0
>> )
>> >>> of nuttx we see the support for SPI driver is available for
>> >>> S32K146 & S32K148. We adapted the code to have the correct SPI
>> >>> clock but still
>> the
>> >>> receive data is not fully working. Any clue on how to proceed on
>> >>> this.
>> >>>
>> >>> Regards,
>> >>> Sathish
>> >>>
>> >>
>> >
>>
>
Re: SPI driver is not working in S32K144 EVB
Posted by Alan Carvalho de Assis <ac...@gmail.com>.
Hi Sathish,
Are you using a battery solution similar to this board:
https://mouser.com/new/nxp-semiconductors/nxp-rd33771cntrevm-reference-design/
I suggest you to used an logic analyzer to verify if the signals are correct.
You can do it manually, but a LA will save your time.
BR,
Alan
On 4/18/21, Sathish Touch energy <sa...@touchenergy.in> wrote:
> Hi Alan,
> Thanks for your support. We are using S32K144EVB with BCC 33771 as the
> AFE (14S).
> WIth this we had to include the software Chip select logic on the GPIO pin
> to make the SPI read work.
> Now we are debugging the SPI TX which is not yet fully working.
>
>
> Thanks,
> Sathish
>
> On Fri, 16 Apr 2021 at 22:24, Alan Carvalho de Assis <ac...@gmail.com>
> wrote:
>
>> Hi Sathish,
>>
>> Are you using a supported S32K1xx board or a custom board?
>>
>> There are support to LPSPIx i then EVB boards directory, so I'm
>> assuming it was tested/validated.
>>
>> Maybe someone from NXP could confirm/deny it.
>>
>> Do you have analyzed the SPI pins? if you don't implement the Chip
>> Select logic correctly on your board it will not work. Normally NuttX
>> doesn't use the HW SPI CS.
>>
>> It is obvious for us, but could be something new for you.
>>
>> BR,
>>
>> Alan
>>
>> On 4/16/21, Sathish Touch energy <sa...@touchenergy.in> wrote:
>> >>
>> >>
>> >>> Hello,
>> >>> We are trying to check SPI driver functionality for our application
>> >>> on
>> >>> NUTTX-10.0.0 baseline.
>> >>> On the supported platform link (
>> >>>
>> https://nuttx.apache.org/docs/latest/introduction/detailed_support.html#other-armv4
>> )
>> >>> of nuttx we see the support for SPI driver is available for S32K146 &
>> >>> S32K148. We adapted the code to have the correct SPI clock but still
>> the
>> >>> receive data is not fully working. Any clue on how to proceed on
>> >>> this.
>> >>>
>> >>> Regards,
>> >>> Sathish
>> >>>
>> >>
>> >
>>
>
Re: SPI driver is not working in S32K144 EVB
Posted by Sathish Touch energy <sa...@touchenergy.in>.
Hi Alan,
Thanks for your support. We are using S32K144EVB with BCC 33771 as the
AFE (14S).
WIth this we had to include the software Chip select logic on the GPIO pin
to make the SPI read work.
Now we are debugging the SPI TX which is not yet fully working.
Thanks,
Sathish
On Fri, 16 Apr 2021 at 22:24, Alan Carvalho de Assis <ac...@gmail.com>
wrote:
> Hi Sathish,
>
> Are you using a supported S32K1xx board or a custom board?
>
> There are support to LPSPIx i then EVB boards directory, so I'm
> assuming it was tested/validated.
>
> Maybe someone from NXP could confirm/deny it.
>
> Do you have analyzed the SPI pins? if you don't implement the Chip
> Select logic correctly on your board it will not work. Normally NuttX
> doesn't use the HW SPI CS.
>
> It is obvious for us, but could be something new for you.
>
> BR,
>
> Alan
>
> On 4/16/21, Sathish Touch energy <sa...@touchenergy.in> wrote:
> >>
> >>
> >>> Hello,
> >>> We are trying to check SPI driver functionality for our application on
> >>> NUTTX-10.0.0 baseline.
> >>> On the supported platform link (
> >>>
> https://nuttx.apache.org/docs/latest/introduction/detailed_support.html#other-armv4
> )
> >>> of nuttx we see the support for SPI driver is available for S32K146 &
> >>> S32K148. We adapted the code to have the correct SPI clock but still
> the
> >>> receive data is not fully working. Any clue on how to proceed on this.
> >>>
> >>> Regards,
> >>> Sathish
> >>>
> >>
> >
>
Re: SPI driver is not working in S32K144 EVB
Posted by Alan Carvalho de Assis <ac...@gmail.com>.
Hi Sathish,
Are you using a supported S32K1xx board or a custom board?
There are support to LPSPIx i then EVB boards directory, so I'm
assuming it was tested/validated.
Maybe someone from NXP could confirm/deny it.
Do you have analyzed the SPI pins? if you don't implement the Chip
Select logic correctly on your board it will not work. Normally NuttX
doesn't use the HW SPI CS.
It is obvious for us, but could be something new for you.
BR,
Alan
On 4/16/21, Sathish Touch energy <sa...@touchenergy.in> wrote:
>>
>>
>>> Hello,
>>> We are trying to check SPI driver functionality for our application on
>>> NUTTX-10.0.0 baseline.
>>> On the supported platform link (
>>> https://nuttx.apache.org/docs/latest/introduction/detailed_support.html#other-armv4)
>>> of nuttx we see the support for SPI driver is available for S32K146 &
>>> S32K148. We adapted the code to have the correct SPI clock but still the
>>> receive data is not fully working. Any clue on how to proceed on this.
>>>
>>> Regards,
>>> Sathish
>>>
>>
>
Re: SPI driver is not working in S32K144 EVB
Posted by Sathish Touch energy <sa...@touchenergy.in>.
>
>
>> Hello,
>> We are trying to check SPI driver functionality for our application on
>> NUTTX-10.0.0 baseline.
>> On the supported platform link (
>> https://nuttx.apache.org/docs/latest/introduction/detailed_support.html#other-armv4)
>> of nuttx we see the support for SPI driver is available for S32K146 &
>> S32K148. We adapted the code to have the correct SPI clock but still the
>> receive data is not fully working. Any clue on how to proceed on this.
>>
>> Regards,
>> Sathish
>>
>