<?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 Bug Report for LPC845 SPI in config tools in MCUXpresso Config Tools</title>
    <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Bug-Report-for-LPC845-SPI-in-config-tools/m-p/1179745#M1097</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I found a bug in the config tools, with LPC845.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MCUXpresso IDE V11.2.1&lt;/P&gt;&lt;P&gt;LPC845 SDK 2.8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps to reproduce:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- create new project for LPC845, include SPI driver&lt;/P&gt;&lt;P&gt;- create configuration .mex&lt;/P&gt;&lt;P&gt;- add SPI peripheral driver&lt;/P&gt;&lt;P&gt;- set "Data width [bits] = 8&lt;/P&gt;&lt;P&gt;- update code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check configuration in peripherals.c&lt;/P&gt;&lt;LI-CODE lang="c"&gt;  .dataWidth = 8,&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where it should be 7, according to datasheet and example. the way it is done in the SDK example is setting&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;dataWidth = kSPI_Data8Bits;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which is set to 7 in the enum. basically the result of using the config tools is setting the datawidth to what it is set to + 1.&lt;/P&gt;</description>
    <pubDate>Sun, 08 Nov 2020 12:56:08 GMT</pubDate>
    <dc:creator>alexis_marquet</dc:creator>
    <dc:date>2020-11-08T12:56:08Z</dc:date>
    <item>
      <title>Bug Report for LPC845 SPI in config tools</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Bug-Report-for-LPC845-SPI-in-config-tools/m-p/1179745#M1097</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;I found a bug in the config tools, with LPC845.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MCUXpresso IDE V11.2.1&lt;/P&gt;&lt;P&gt;LPC845 SDK 2.8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps to reproduce:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- create new project for LPC845, include SPI driver&lt;/P&gt;&lt;P&gt;- create configuration .mex&lt;/P&gt;&lt;P&gt;- add SPI peripheral driver&lt;/P&gt;&lt;P&gt;- set "Data width [bits] = 8&lt;/P&gt;&lt;P&gt;- update code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check configuration in peripherals.c&lt;/P&gt;&lt;LI-CODE lang="c"&gt;  .dataWidth = 8,&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where it should be 7, according to datasheet and example. the way it is done in the SDK example is setting&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;dataWidth = kSPI_Data8Bits;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which is set to 7 in the enum. basically the result of using the config tools is setting the datawidth to what it is set to + 1.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Nov 2020 12:56:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Bug-Report-for-LPC845-SPI-in-config-tools/m-p/1179745#M1097</guid>
      <dc:creator>alexis_marquet</dc:creator>
      <dc:date>2020-11-08T12:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Bug Report for LPC845 SPI in config tools</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Bug-Report-for-LPC845-SPI-in-config-tools/m-p/1179917#M1098</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;It seems this bug have been fixed, I download the latest SDK, test on my side, there is&lt;/P&gt;
&lt;P&gt;on issue:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1604906468534.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/129407i3956FDE78AFB129A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1604906468534.png" alt="Alice_Yang_0-1604906468534.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 07:21:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Bug-Report-for-LPC845-SPI-in-config-tools/m-p/1179917#M1098</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2020-11-09T07:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bug Report for LPC845 SPI in config tools</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Bug-Report-for-LPC845-SPI-in-config-tools/m-p/1180107#M1099</link>
      <description>&lt;P&gt;I did a clean install of everything yesterdasy, so it should be up to date. the bug is still there:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With data width = 8 in Confit Tools:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
instance:
- name: 'SPI0'
- type: 'lpc_minispi'
- mode: 'interrupt'
- custom_name_enabled: 'false'
- type_id: 'lpc_minispi_f45b6e04ed20bff9f52c4f4d863b265d'
- functional_group: 'BOARD_InitPeripherals'
- peripheral: 'SPI0'
- config_sets:
  - fsl_spi:
    - spiConfig:
      - spi_mode: 'kSPI_Slave'
      - spi_slave_config:
        - enableSlave: 'true'
        - clockPolarity: 'kSPI_ClockPolarityActiveHigh'
        - clockPhase: 'kSPI_ClockPhaseFirstEdge'
        - direction: 'kSPI_MsbFirst'
        - dataWidth_enum: 'kSPI_Data8Bits'
        - sselNumber_: 'kSPI_Ssel0Assert'
        - sselPolarity_: ''
  - Interrupt_cfg:
    - interrupts: 'kSPI_RxReadyInterruptEnable'
    - interrupt_vectors:
      - enable_rx_tx_irq: 'true'
      - interrupt_rx_tx:
        - IRQn: 'SPI0_IRQn'
        - enable_interrrupt: 'noInit'
        - enable_priority: 'false'
        - priority: '0'
        - enable_custom_name: 'false'
 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/
/* clang-format on */
const spi_slave_config_t SPI0_config = {
  .enableSlave = true,
  .clockPolarity = kSPI_ClockPolarityActiveHigh,
  .clockPhase = kSPI_ClockPhaseFirstEdge,
  .direction = kSPI_MsbFirst,
  .dataWidth = 8,
  .sselPolarity = kSPI_SpolActiveAllLow
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but as you can see, the yaml config uses the enum constant, correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;header of the peripherals.c file is the following:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
!!GlobalInfo
product: Peripherals v8.0
processor: LPC845
package_id: LPC845M301JHI48
mcu_data: ksdk2_0
processor_version: 8.0.2
functionalGroups:
- name: BOARD_InitPeripherals
  UUID: 5aeb6b3e-57ce-4419-8db9-9ddcc3918498
  called_from_default_init: true
  selectedCore: core0
 * BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;/LI-CODE&gt;&lt;P&gt;SDK is&amp;nbsp; version is 2.8. maybe the bug is only there in slave mode?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alexis Marquet&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 12:51:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Bug-Report-for-LPC845-SPI-in-config-tools/m-p/1180107#M1099</guid>
      <dc:creator>alexis_marquet</dc:creator>
      <dc:date>2020-11-09T12:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Bug Report for LPC845 SPI in config tools</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Bug-Report-for-LPC845-SPI-in-config-tools/m-p/1182380#M1102</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;let me confirm that there is indeed bug in SPI Peripherals tool component in case of LPC8xx processors - the dataWidth value in&amp;nbsp;spi_slave_config_t is generated incorrectly.&lt;/P&gt;
&lt;P&gt;Attached you can find hotfix fixing the issue in Config Tools v8.1 and MCUXpresso IDE 11.2.x.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to install it:&lt;/P&gt;
&lt;P&gt;1. Ensure you have an administrator rights, MCUXpresso Configuration Tools are not running and the MCU data of the MCUs you want to use are available (downloaded) on your desktop. &lt;BR /&gt;&lt;BR /&gt;Note:&lt;BR /&gt;MCU data are downloaded from the &lt;A href="http://mcuxpresso.nxp.com" target="_blank"&gt;http://mcuxpresso.nxp.com&lt;/A&gt; server. If you want to be sure that data are not updated from the server (when an update is provided by NXP) you can disable updates in following way:&lt;BR /&gt;MCUXpresso Configuration Tools: In menu Edit &amp;gt; Preferences select Disabled in the Processor data update option&lt;BR /&gt;MCUXpresso IDE: In menu Window &amp;gt; Preferences &amp;gt; MCUXpresso Config Tools select Disabled in the Processor data update option&lt;/P&gt;
&lt;P&gt;2. Copy the content of this archive into the tool's data folder:&lt;BR /&gt;Windows: c:\ProgramData\NXP\mcu_data_v8&lt;BR /&gt;Linux/Mac: /home/&amp;lt;USER&amp;gt;/.nxp/mcu_data_v8&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It will be fixed in MCUXpresso Config Tools v9 as well.&lt;/P&gt;
&lt;P&gt;Reagards,&lt;/P&gt;
&lt;P&gt;Lukas&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 14:05:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/Bug-Report-for-LPC845-SPI-in-config-tools/m-p/1182380#M1102</guid>
      <dc:creator>Lukas_Heczko</dc:creator>
      <dc:date>2020-11-12T14:05:12Z</dc:date>
    </item>
  </channel>
</rss>

