<?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 Flex BUS interface issue.( MK66 ) in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flex-BUS-interface-issue-MK66/m-p/788939#M48007</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I am working with MK66FN2M0VLQ18 MCU in our customized board. I am using sdk2.0 examples for flexbus initialization.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Now we wants to generate multiple chip selects for different addresses . Now we can able to generate the chip select 0 and 1 but unable to generate the chip select 2 . we used the following initialization sequence,chip select 2 port is PORTC 18th pin of mk66.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;void FLEXBUS_Initialization()&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbus_config_t flexbusConfig;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FLEXBUS_Init(FB, &amp;amp;flexbusConfig); /* Reset FlexBUS to default satus*/&lt;/STRONG&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;STRONG&gt; FLEXBUS_GetDefaultConfig(&amp;amp;flexbusConfig);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.chip = 0;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.waitStates = 0x0FU;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.chipBaseAddress = 0x60000000U;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.chipBaseAddressMask = 0x7U;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.portSize = kFLEXBUS_2Bytes;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.group1MultiplexControl= kFLEXBUS_MultiplexGroup1_FB_CS1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt; FLEXBUS_config(FB, &amp;amp;flexbusConfig); /* flexBus initialization for first node 1553 device */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;flexbusConfig.chip = 1;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.waitStates = 0x0FU;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.chipBaseAddress = 0x61000000U;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.chipBaseAddressMask = 0x7U;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.portSize = kFLEXBUS_2Bytes;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.group1MultiplexControl= kFLEXBUS_MultiplexGroup1_FB_CS1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FLEXBUS_config(FB, &amp;amp;flexbusConfig); /* flexBus initialization for second node 1553 device */&lt;/STRONG&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.chip = 2;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.waitStates = 0x0FU;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.chipBaseAddress = 0x62000000U;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.chipBaseAddressMask = 0x7U;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.portSize = kFLEXBUS_2Bytes;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.group1MultiplexControl= kFLEXBUS_MultiplexGroup1_FB_CS1;&lt;/STRONG&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;STRONG&gt; FLEXBUS_config(FB, &amp;amp;flexbusConfig); /* flexBus initialization ARINC429 device */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; return;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;after this we are trying to write to the 0x62000000U address but the chip select is not generating .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank you&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Best regards&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Maheshwar.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Nov 2018 12:56:13 GMT</pubDate>
    <dc:creator>maheshwarreddy</dc:creator>
    <dc:date>2018-11-22T12:56:13Z</dc:date>
    <item>
      <title>Flex BUS interface issue.( MK66 )</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flex-BUS-interface-issue-MK66/m-p/788939#M48007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I am working with MK66FN2M0VLQ18 MCU in our customized board. I am using sdk2.0 examples for flexbus initialization.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Now we wants to generate multiple chip selects for different addresses . Now we can able to generate the chip select 0 and 1 but unable to generate the chip select 2 . we used the following initialization sequence,chip select 2 port is PORTC 18th pin of mk66.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;void FLEXBUS_Initialization()&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbus_config_t flexbusConfig;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FLEXBUS_Init(FB, &amp;amp;flexbusConfig); /* Reset FlexBUS to default satus*/&lt;/STRONG&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;STRONG&gt; FLEXBUS_GetDefaultConfig(&amp;amp;flexbusConfig);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.chip = 0;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.waitStates = 0x0FU;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.chipBaseAddress = 0x60000000U;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.chipBaseAddressMask = 0x7U;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.portSize = kFLEXBUS_2Bytes;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.group1MultiplexControl= kFLEXBUS_MultiplexGroup1_FB_CS1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt; FLEXBUS_config(FB, &amp;amp;flexbusConfig); /* flexBus initialization for first node 1553 device */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;flexbusConfig.chip = 1;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.waitStates = 0x0FU;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.chipBaseAddress = 0x61000000U;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.chipBaseAddressMask = 0x7U;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.portSize = kFLEXBUS_2Bytes;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.group1MultiplexControl= kFLEXBUS_MultiplexGroup1_FB_CS1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FLEXBUS_config(FB, &amp;amp;flexbusConfig); /* flexBus initialization for second node 1553 device */&lt;/STRONG&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.chip = 2;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.waitStates = 0x0FU;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.chipBaseAddress = 0x62000000U;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.chipBaseAddressMask = 0x7U;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.portSize = kFLEXBUS_2Bytes;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; flexbusConfig.group1MultiplexControl= kFLEXBUS_MultiplexGroup1_FB_CS1;&lt;/STRONG&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;STRONG&gt; FLEXBUS_config(FB, &amp;amp;flexbusConfig); /* flexBus initialization ARINC429 device */&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; return;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;after this we are trying to write to the 0x62000000U address but the chip select is not generating .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank you&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Best regards&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Maheshwar.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2018 12:56:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flex-BUS-interface-issue-MK66/m-p/788939#M48007</guid>
      <dc:creator>maheshwarreddy</dc:creator>
      <dc:date>2018-11-22T12:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Flex BUS interface issue.( MK66 )</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flex-BUS-interface-issue-MK66/m-p/788940#M48008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi maheshwar reddy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Do you call this code in the pin_mux.c, function BOARD_InitPins:&lt;/P&gt;&lt;P&gt;&amp;nbsp; PORT_SetPinMux(PORTC, 18U, kPORT_MuxAlt5);&lt;/P&gt;&lt;P&gt;This code to configure your FS_CS2_b pin as the Flexbus select 2 pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check it on your side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&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>Fri, 23 Nov 2018 08:16:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flex-BUS-interface-issue-MK66/m-p/788940#M48008</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-11-23T08:16:30Z</dc:date>
    </item>
  </channel>
</rss>

