<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Compatibility nxp K82, stm32. in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Compatibility-nxp-K82-stm32/m-p/688888#M42388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer attached DSPI DMA example code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About you mentioned functions on the K82 chip, I would recommend customer to refer &lt;A href="http://www.nxp.com/webapp/sps/download/license.jsp?colCode=KINETIS512_V2_SC&amp;amp;Parent_nodeId=1333141411984714199192&amp;amp;Parent_pageType=product"&gt;Kinetis 100MHz bare-metal software&lt;/A&gt; or &lt;A href="https://mcuxpresso.nxp.com/en/welcome"&gt;MCUXpresso SDK software for K82&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Using the MCUXpresso SDK provided module driver for K82 could be a good start.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Aug 2017 06:42:21 GMT</pubDate>
    <dc:creator>Hui_Ma</dc:creator>
    <dc:date>2017-08-10T06:42:21Z</dc:date>
    <item>
      <title>Compatibility nxp K82, stm32.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Compatibility-nxp-K82-stm32/m-p/688883#M42383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;BR /&gt;On my project I must connect a fingerprint of crossematch, the TouchChip TCESC4K swipe module, with frdm-k82f nxp kit. to do a Fingerprint recognition,&lt;BR /&gt;But the sample code Supplied with the SDK of the fingerprint is specific to stm32, Usable on uVision 4, with a connection uart or&amp;nbsp;spi.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is there a way to use them on kinetis or mcuxpresso with the k82 ?.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I used the fingerprint reader as a slave in: sdk82\boards\frdmk82f\driver_examples\dspi\interrupt_transfer. but it does not work.&lt;BR /&gt;Also, I tried with :sdk82\boards\frdmk82f\driver_examples\lpuart\interrupt_transfer. without results.&lt;BR /&gt;The sample code to make grab with the fingerprint reader is attached.&lt;BR /&gt;If someone has something to suggest to me it will not be refused.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337547"&gt;main.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337547"&gt;description.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 09:09:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Compatibility-nxp-K82-stm32/m-p/688883#M42383</guid>
      <dc:creator>mesdouaabderraz</dc:creator>
      <dc:date>2017-08-01T09:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Compatibility nxp K82, stm32.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Compatibility-nxp-K82-stm32/m-p/688884#M42384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As your description the TouchChip TCESC4K swipe module provides SPI/UART communication port for MCUs.&lt;/P&gt;&lt;P&gt;I would recommend customer to set up the communication via SPI/UART with TouchChip TCESC4K swipe module at first.&lt;/P&gt;&lt;P&gt;After the communication interface setup, customer need to write TouchChip TCESC4K swipe module related dirver to get data and handle with those data.&lt;/P&gt;&lt;P&gt;I think the STM32 project also includes TouchChip TCESC4K swipe module driver, customer just need porting the HAL level driver from STM32 to Kinetis K82 product.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 06:01:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Compatibility-nxp-K82-stm32/m-p/688884#M42384</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2017-08-07T06:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Compatibility nxp K82, stm32.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Compatibility-nxp-K82-stm32/m-p/688885#M42385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Ma Hui,&lt;/SPAN&gt;&lt;BR /&gt;Thank you for your reply, recently i received a mail from&amp;nbsp;a croosmatch engineer, He said to me that it is necessary to change just a file in the sdk&amp;nbsp;provided with the fingerprint With similar functions compatible with k82.&lt;/P&gt;&lt;P&gt;The code is as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* @file spi.c&lt;BR /&gt; * Low layer for a communication with TCD50 using a spi interface.&lt;BR /&gt; *&lt;BR /&gt; * Copyright (C) 2001-2011 AUTHENTEC, Inc.&lt;BR /&gt; *&lt;BR /&gt; */&lt;/P&gt;&lt;P&gt;#include "stm32f10x_lib.h" // Definitions of the STM32 library&lt;BR /&gt;#include "configuration.h" // Definition of a platform&lt;BR /&gt;#include "spi.h" // Spi functions header&lt;BR /&gt;#include "tfmerror.h" // Error codes&lt;BR /&gt;#include "timer.h"&lt;BR /&gt;#include "defines.h"&lt;/P&gt;&lt;P&gt;#define DMA_CHANNEL_ENABLE 0x00000001&lt;BR /&gt;#define DMA_CHANNEL_DISABLE 0xFFFFFFFE&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* Function initializes an Spi layer.&lt;BR /&gt;*/ &lt;BR /&gt;PT_STATUS SpiInitialize(void){&lt;/P&gt;&lt;P&gt;//set an SS (CS) pin to 0 &lt;BR /&gt; GPIO_ResetBits(SPI_CS_SIGNAL_GPIO, SPI_CS_SIGNAL_PIN);&lt;BR /&gt; &lt;BR /&gt; return PT_STATUS_OK;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/* Spi layer destructor.&lt;BR /&gt;*/ &lt;BR /&gt;void SpiDestroy(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;/** Function tests, if an AWAKE signal is low. If so, a device is considered to be awake.&lt;BR /&gt;* @return TRUE, if awake; FALSE otherwise.&lt;BR /&gt;**/&lt;BR /&gt;bool8 SpiIsAwake(void)&lt;BR /&gt;{&lt;BR /&gt; bool8 isWake = FALSE;&lt;BR /&gt; &lt;BR /&gt; isWake = (GPIO_ReadInputDataBit(SPI_AWAKE_SIGNAL_GPIO, SPI_AWAKE_SIGNAL_PIN) == COMM_AWAKE_ACTIVE_STATE);&lt;BR /&gt; return isWake; &lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;/** Function produces a short (approx. 3ms) impulse on a CS line causing a hardware wake up of a TCD device.&lt;BR /&gt;**/&lt;BR /&gt;void SpiWakeUp()&lt;BR /&gt;{&lt;BR /&gt;#if (COMM_AWAKE_ACTIVE_STATE == 0)&lt;BR /&gt; GPIO_SetBits(SPI_CS_SIGNAL_GPIO, SPI_CS_SIGNAL_PIN);&lt;BR /&gt; PT_TimerDelayMilliseconds (3);&lt;BR /&gt; GPIO_ResetBits(SPI_CS_SIGNAL_GPIO, SPI_CS_SIGNAL_PIN); &lt;BR /&gt;#else&lt;BR /&gt; GPIO_ResetBits(SPI_CS_SIGNAL_GPIO, SPI_CS_SIGNAL_PIN);&lt;BR /&gt; PT_TimerDelayMilliseconds (3);&lt;BR /&gt; GPIO_SetBits(SPI_CS_SIGNAL_GPIO, SPI_CS_SIGNAL_PIN);&lt;BR /&gt;#endif //#if (COMM_AWAKE_ACTIVE_STATE == 0) &lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/** Function sends a miniframe(9-bytes) over a spi bus. It set a CS signal to high, starts a clock, transmits a miniframe, stops a clock, and sets a CS signal to low.&lt;BR /&gt;* @param pSendBuffer Buffer containing miniframe data sent on a SPI bus (input, size of SPI_PACKET_SIZE).&lt;BR /&gt;* @param pReceiveBuffer Buffer, where data comming on a SPI bus are stored (output, size of SPI_PACKET_SIZE).&lt;BR /&gt;* @return PT_STATUS_OK.&lt;BR /&gt;**/&lt;BR /&gt;PT_STATUS SpiSendAndReceiveMiniframe(IN void *pSendBuffer, OUT void *pReceiveBuffer)&lt;BR /&gt;{&lt;BR /&gt; PT_STATUS status = PT_STATUS_OK;&lt;BR /&gt; &lt;BR /&gt; //set an SS (CS) pin to COMM_AWAKE_ACTIVE_STATE&lt;BR /&gt;#if (COMM_AWAKE_ACTIVE_STATE == 0)&lt;BR /&gt; GPIO_SetBits(SPI_CS_SIGNAL_GPIO, SPI_CS_SIGNAL_PIN); &lt;BR /&gt;#else&lt;BR /&gt; GPIO_ResetBits(SPI_CS_SIGNAL_GPIO, SPI_CS_SIGNAL_PIN);&lt;BR /&gt;#endif //#if (COMM_AWAKE_ACTIVE_STATE == 0)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;#if !defined(TCD50D_TCS1_TCS2)&lt;BR /&gt; //wait approx. 10us&lt;BR /&gt; PT_TimerDelayMicroseconds(10);&lt;BR /&gt;#endif //if !defined(TCD50D_TCS1_TCS2)&lt;/P&gt;&lt;P&gt;//start DMA transfer (Rx direction)&lt;BR /&gt; //set memory dst address&lt;BR /&gt; DMA1_Channel4-&amp;gt;CMAR = (uint32)pReceiveBuffer;&lt;/P&gt;&lt;P&gt;//set buffer size&lt;BR /&gt; DMA1_Channel4-&amp;gt;CNDTR = SPI_PACKET_SIZE;&lt;/P&gt;&lt;P&gt;//enable DMA1 channel4&lt;BR /&gt; DMA1_Channel4-&amp;gt;CCR |= DMA_CHANNEL_ENABLE;&lt;/P&gt;&lt;P&gt;//start DMA transfer (Tx direction)&lt;BR /&gt; //set memory dst address&lt;BR /&gt; DMA1_Channel5-&amp;gt;CMAR = (uint32)pSendBuffer;&lt;/P&gt;&lt;P&gt;//set buffer size&lt;BR /&gt; DMA1_Channel5-&amp;gt;CNDTR = SPI_PACKET_SIZE;&lt;/P&gt;&lt;P&gt;//enable DMA1 channel4&lt;BR /&gt; DMA1_Channel5-&amp;gt;CCR |= DMA_CHANNEL_ENABLE;&lt;/P&gt;&lt;P&gt;//wait till whole miniframe is received&lt;BR /&gt; while(DMA1_Channel4-&amp;gt;CNDTR != 0)&lt;BR /&gt; {&lt;BR /&gt; ;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; // Reset a chip select signal&lt;BR /&gt;#if (COMM_AWAKE_ACTIVE_STATE == 0)&lt;BR /&gt; GPIO_ResetBits(SPI_CS_SIGNAL_GPIO, SPI_CS_SIGNAL_PIN); &lt;BR /&gt;#else&lt;BR /&gt; GPIO_SetBits(SPI_CS_SIGNAL_GPIO, SPI_CS_SIGNAL_PIN);&lt;BR /&gt;#endif //#if (COMM_AWAKE_ACTIVE_STATE == 0) &lt;/P&gt;&lt;P&gt;// Clear pending DMA RX transfer&lt;BR /&gt; DMA1_Channel4-&amp;gt;CCR &amp;amp;= DMA_CHANNEL_DISABLE;&lt;BR /&gt; &lt;BR /&gt; // Clear pending DMA TX transfer&lt;BR /&gt; DMA1_Channel5-&amp;gt;CCR &amp;amp;= DMA_CHANNEL_DISABLE;&lt;BR /&gt; &lt;BR /&gt; return status;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try as well as I can to find the similar function for the k82,&amp;nbsp;But without result until&amp;nbsp;now.&lt;/P&gt;&lt;P&gt;So if you can suggest me some referenceon this topic to advance&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 08:22:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Compatibility-nxp-K82-stm32/m-p/688885#M42385</guid>
      <dc:creator>mesdouaabderraz</dc:creator>
      <dc:date>2017-08-07T08:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Compatibility nxp K82, stm32.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Compatibility-nxp-K82-stm32/m-p/688886#M42386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked the above code to detect SPI chip select status and using DMA to transfer/receive data via SPI interface.&lt;/P&gt;&lt;P&gt;The K82 product has SPI module, which also support TX/RX data via DAM module.&lt;/P&gt;&lt;P&gt;I would recommend customer to refer below threads about DSPI(SPI) module works with DMA module:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-94082"&gt;[Kinetis] DMA-SPI examples for L2K and K60&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-100304"&gt;https://community.nxp.com/docs/DOC-100304&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 02:09:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Compatibility-nxp-K82-stm32/m-p/688886#M42386</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2017-08-08T02:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Compatibility nxp K82, stm32.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Compatibility-nxp-K82-stm32/m-p/688887#M42387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/bmwhui"&gt;bmwhui&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;thank you for your replay, but i can't access to the first link that you sent me&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/16560iA59422E6DA895596/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you please&amp;nbsp;Provide me another link,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14.6667px;"&gt;Also, I have always the problem of connection SPI interface on my fingerprint tcesc4k, i&amp;nbsp;can't &amp;nbsp;configure him as SPI bus slave&amp;nbsp;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 10pt;"&gt;CPOL = 0, CPHA = 0&lt;/SPAN&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14.6667px;"&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14.6667px;"&gt;because I do not find the equivalent of the following functions on the k82 :&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;GPIO_ResetBits&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14.6667px;"&gt;GPIO_ClearPinsInterruptFlags&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14.6667px;"&gt;GPIO_ReadInputDataBit&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #333333; background-color: #ffffff; font-size: 14.6667px;"&gt;GPIO_SetBits&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;DMA1_Channel4 (Clear pending DMA RX transfer)&lt;/LI&gt;&lt;LI&gt;DMA1_Channel5 (Clear pending DMA TX transfer)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;Best regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Aug 2017 14:55:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Compatibility-nxp-K82-stm32/m-p/688887#M42387</guid>
      <dc:creator>mesdouaabderraz</dc:creator>
      <dc:date>2017-08-09T14:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Compatibility nxp K82, stm32.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Compatibility-nxp-K82-stm32/m-p/688888#M42388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer attached DSPI DMA example code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About you mentioned functions on the K82 chip, I would recommend customer to refer &lt;A href="http://www.nxp.com/webapp/sps/download/license.jsp?colCode=KINETIS512_V2_SC&amp;amp;Parent_nodeId=1333141411984714199192&amp;amp;Parent_pageType=product"&gt;Kinetis 100MHz bare-metal software&lt;/A&gt; or &lt;A href="https://mcuxpresso.nxp.com/en/welcome"&gt;MCUXpresso SDK software for K82&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Using the MCUXpresso SDK provided module driver for K82 could be a good start.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Aug 2017 06:42:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Compatibility-nxp-K82-stm32/m-p/688888#M42388</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2017-08-10T06:42:21Z</dc:date>
    </item>
  </channel>
</rss>

