<?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>MCUXpresso Config ToolsのトピックRe: Peripherals Tool: wrong SPI callback function template?</title>
    <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Peripherals-Tool-wrong-SPI-callback-function-template/m-p/1422793#M1340</link>
    <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;
&lt;P&gt;Thank you for reporting this issue.&lt;/P&gt;
&lt;P&gt;The SPI CMSIS driver component will be fixed in the nearest data update for the MCUXpresso configuration tools version 11.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jan Kucera.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Mar 2022 15:28:43 GMT</pubDate>
    <dc:creator>Jan_Kucera</dc:creator>
    <dc:date>2022-03-03T15:28:43Z</dc:date>
    <item>
      <title>Peripherals Tool: wrong SPI callback function template?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Peripherals-Tool-wrong-SPI-callback-function-template/m-p/1422722#M1338</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think I found another "WTF?":&lt;/P&gt;&lt;P&gt;For the SPI driver, Peripherals Tool provides a callback function template:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielholala_1-1646314737061.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/172414iA04AE02DE24B251E/image-size/large?v=v2&amp;amp;px=999" role="button" title="danielholala_1-1646314737061.png" alt="danielholala_1-1646314737061.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;danielholala_1-1646314737061.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Select a Flexcomm instance and click on "Copy to clipboard".&lt;/P&gt;&lt;P&gt;This is what you'll get:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/* FLEXCOMM3 signal event callback function */
void SPI_SignalEvent(uint32_t event) {
  /* Master/Slave Transmit/Receive finished */
  if (event &amp;amp; ARM_SPI_EVENT_TRANSFER_DONE) {
    /* Place your code here */
  }
  /* Master/Slave Transmit/Receive incomplete transfer */
  if (event &amp;amp; ARM_SPI_EVENT_TRANSFER_INCOMPLETE) {
    /* Place your code here */
  }
  /* Address not acknowledged from Slave */
  if (event &amp;amp; ARM_SPI_EVENT_ADDRESS_NACK) {
    /* Place your code here */
  }
  /* Master lost arbitration */
  if (event &amp;amp; ARM_SPI_EVENT_ARBITRATION_LOST) {
    /* Place your code here */
  }
}&lt;/LI-CODE&gt;&lt;P&gt;However, this does not compile as none of the "event macros" is defined.&lt;/P&gt;&lt;P&gt;The file Driver_SPI.h defines only:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/****** SPI Event *****/
#define ARM_SPI_EVENT_TRANSFER_COMPLETE (1UL &amp;lt;&amp;lt; 0)  ///&amp;lt; Data Transfer completed
#define ARM_SPI_EVENT_DATA_LOST         (1UL &amp;lt;&amp;lt; 1)  ///&amp;lt; Data lost: Receive overflow / Transmit underflow
#define ARM_SPI_EVENT_MODE_FAULT        (1UL &amp;lt;&amp;lt; 2)  ///&amp;lt; Master Mode Fault (SS deactivated when Master)&lt;/LI-CODE&gt;&lt;P&gt;These are the "official" SPI event macros as specified in the &lt;A href="https://arm-software.github.io/CMSIS_5/Driver/html/group__SPI__events.html" target="_self"&gt;ARM template driver&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;NXP, please fix this.&lt;/P&gt;&lt;P&gt;Thanks.&lt;BR /&gt;Best regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 13:42:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Peripherals-Tool-wrong-SPI-callback-function-template/m-p/1422722#M1338</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2022-03-03T13:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: Peripherals Tool: wrong SPI callback function template?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Peripherals-Tool-wrong-SPI-callback-function-template/m-p/1422754#M1339</link>
      <description>&lt;P&gt;That's what the code should look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;void SPI_SignalEvent(uint32_t event) {
  /* Master/Slave Transmit/Receive success */
  if (event &amp;amp; ARM_SPI_EVENT_TRANSFER_COMPLETE) {
    /* Place your code here */
  }
  /* Master/Slave Transmit/Receive transfer failed */
  if (event &amp;amp; ARM_SPI_EVENT_DATA_LOST) {
    /* Place your code here */
  }
  /*  ARM_SPI_EVENT_MODE_FAULT
   * is not supported by SDK CMSIS driver implementation
   * see s_SPIDriverCapabilities in fsl_spi_cmsis.c */
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder whether I'm the first one to complain about this. Is nobody else using Peripherals Tool?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 14:31:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Peripherals-Tool-wrong-SPI-callback-function-template/m-p/1422754#M1339</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2022-03-03T14:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Peripherals Tool: wrong SPI callback function template?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Peripherals-Tool-wrong-SPI-callback-function-template/m-p/1422793#M1340</link>
      <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;
&lt;P&gt;Thank you for reporting this issue.&lt;/P&gt;
&lt;P&gt;The SPI CMSIS driver component will be fixed in the nearest data update for the MCUXpresso configuration tools version 11.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Jan Kucera.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 15:28:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Peripherals-Tool-wrong-SPI-callback-function-template/m-p/1422793#M1340</guid>
      <dc:creator>Jan_Kucera</dc:creator>
      <dc:date>2022-03-03T15:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: Peripherals Tool: wrong SPI callback function template?</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Peripherals-Tool-wrong-SPI-callback-function-template/m-p/1595638#M1611</link>
      <description>&lt;P&gt;This issue seems to have been fixed.&lt;/P&gt;&lt;P&gt;I tested it with MCUXpresso IDE v11.7.0, the Peripherals Tool that came with it (version: 10.0.0.202301120728) and SDK_2.x_LPC5526 (v2.13.0).&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 13:59:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Peripherals-Tool-wrong-SPI-callback-function-template/m-p/1595638#M1611</guid>
      <dc:creator>danielholala</dc:creator>
      <dc:date>2023-02-08T13:59:34Z</dc:date>
    </item>
  </channel>
</rss>

