<?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: Problems reading Data from an FPGA via Flexbus in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-reading-Data-from-an-FPGA-via-Flexbus/m-p/2254559#M68069</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248592"&gt;@ChristofAbt&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Could you help me with the following questions?&lt;/P&gt;
&lt;P&gt;When you mention that lsb_ad7779_u16 does not contain the expected data, what data does the variable currently hold?&lt;/P&gt;
&lt;P&gt;How is the configuration of the pins being done?&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Pablo&lt;/P&gt;</description>
    <pubDate>Wed, 03 Dec 2025 22:26:27 GMT</pubDate>
    <dc:creator>Pablo_Ramos</dc:creator>
    <dc:date>2025-12-03T22:26:27Z</dc:date>
    <item>
      <title>Problems reading Data from an FPGA via Flexbus</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-reading-Data-from-an-FPGA-via-Flexbus/m-p/2249560#M68052</link>
      <description>&lt;P&gt;Good afternoon community, I try to read dta from an FPGA via the NXP Flexbus. The microcontroller is a MK66FN2M0VMD18. Address and Data are multiplexed on a 16bit bidirectional bus. The configuration is&amp;nbsp; defined in&amp;nbsp;&lt;SPAN&gt;FB_Device0_config. The definition can be seen in the attached file peripherals.c I &lt;/SPAN&gt;&lt;SPAN&gt;included &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;wait states there but to no avail. The C-Code I want to read the data looks like that.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;lsb_ad7779_u16 = *(volatile uint16_t*)(fb_base-&amp;gt;CS[0].CSAR +129);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It is a read access to address 0d129 = 0x81.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can observe the data inside the FPGA with an internal logic analyzer. The Address, data and &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;control signals are as expected for a flexbus read access. Unfortunately I do not see &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the correct data in lsb_ad7779_u16. &lt;/SPAN&gt;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChristofAbt_0-1764163846867.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/367415i51B09A246103CFE2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChristofAbt_0-1764163846867.png" alt="ChristofAbt_0-1764163846867.png" /&gt;&lt;/span&gt;&lt;P&gt;The address and data is as expected even at the ports of the FPGA. I have no clue why the variable&lt;/P&gt;&lt;P&gt;does not contain the expected data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards in advance&lt;/P&gt;&lt;P&gt;Christof&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Nov 2025 13:40:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-reading-Data-from-an-FPGA-via-Flexbus/m-p/2249560#M68052</guid>
      <dc:creator>ChristofAbt</dc:creator>
      <dc:date>2025-11-26T13:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problems reading Data from an FPGA via Flexbus</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-reading-Data-from-an-FPGA-via-Flexbus/m-p/2249682#M68054</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248592"&gt;@ChristofAbt&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I'm not able to see the peripherals.c file you mentioned.&lt;/P&gt;
&lt;P&gt;Could you please share the configuration you are using for the FlexBus?&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Pablo&lt;/P&gt;</description>
      <pubDate>Wed, 26 Nov 2025 18:12:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-reading-Data-from-an-FPGA-via-Flexbus/m-p/2249682#M68054</guid>
      <dc:creator>Pablo_Ramos</dc:creator>
      <dc:date>2025-11-26T18:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problems reading Data from an FPGA via Flexbus</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-reading-Data-from-an-FPGA-via-Flexbus/m-p/2250111#M68058</link>
      <description>&lt;P&gt;Here is the flexbus configuration&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;/* clang-format on */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;flexbus_config_t&lt;/SPAN&gt;&lt;SPAN&gt; FB_Device0_config = {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.chip = 0,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.chipBaseAddress = 0x60000000UL,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.chipBaseAddressMask = 0x0000U,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.byteEnableMode = false,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.autoAcknowledge = true,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.extendTransferAddress = false,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.byteLaneShift = &lt;/SPAN&gt;&lt;SPAN&gt;kFLEXBUS_Shifted&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.portSize = &lt;/SPAN&gt;&lt;SPAN&gt;kFLEXBUS_2Bytes&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.writeAddressHold = &lt;/SPAN&gt;&lt;SPAN&gt;kFLEXBUS_Hold1Cycle&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.readAddressHold = &lt;/SPAN&gt;&lt;SPAN&gt;kFLEXBUS_Hold1Or0Cycles&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.addressSetup = &lt;/SPAN&gt;&lt;SPAN&gt;kFLEXBUS_FirstRisingEdge&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.waitStates = 0U,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.secondaryWaitStatesEnable = false,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.secondaryWaitStates = 0U,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.burstWrite = false,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.burstRead = false,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.writeProtect = false,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.group1MultiplexControl = &lt;/SPAN&gt;&lt;SPAN&gt;kFLEXBUS_MultiplexGroup1_FB_ALE&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.group2MultiplexControl = &lt;/SPAN&gt;&lt;SPAN&gt;kFLEXBUS_MultiplexGroup2_FB_CS4&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.group3MultiplexControl = &lt;/SPAN&gt;&lt;SPAN&gt;kFLEXBUS_MultiplexGroup3_FB_CS5&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.group4MultiplexControl = &lt;/SPAN&gt;&lt;SPAN&gt;kFLEXBUS_MultiplexGroup4_FB_TBST&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;.group5MultiplexControl = &lt;/SPAN&gt;&lt;SPAN&gt;kFLEXBUS_MultiplexGroup5_FB_TA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Nov 2025 06:54:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-reading-Data-from-an-FPGA-via-Flexbus/m-p/2250111#M68058</guid>
      <dc:creator>ChristofAbt</dc:creator>
      <dc:date>2025-11-27T06:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problems reading Data from an FPGA via Flexbus</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-reading-Data-from-an-FPGA-via-Flexbus/m-p/2254559#M68069</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248592"&gt;@ChristofAbt&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Could you help me with the following questions?&lt;/P&gt;
&lt;P&gt;When you mention that lsb_ad7779_u16 does not contain the expected data, what data does the variable currently hold?&lt;/P&gt;
&lt;P&gt;How is the configuration of the pins being done?&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Pablo&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 22:26:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-reading-Data-from-an-FPGA-via-Flexbus/m-p/2254559#M68069</guid>
      <dc:creator>Pablo_Ramos</dc:creator>
      <dc:date>2025-12-03T22:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problems reading Data from an FPGA via Flexbus</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-reading-Data-from-an-FPGA-via-Flexbus/m-p/2257138#M68076</link>
      <description>&lt;P&gt;Hello Pablo,&lt;/P&gt;&lt;P&gt;the register contains random data. I can implement a kind of logic analyzer inside the FPGA and see correct data there. The flexbus pins are configured like that.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChristofAbt_0-1765191008313.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/368965iE0A60AFFA4225134/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ChristofAbt_0-1765191008313.png" alt="ChristofAbt_0-1765191008313.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Christof&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 10:50:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-reading-Data-from-an-FPGA-via-Flexbus/m-p/2257138#M68076</guid>
      <dc:creator>ChristofAbt</dc:creator>
      <dc:date>2025-12-08T10:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problems reading Data from an FPGA via Flexbus</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-reading-Data-from-an-FPGA-via-Flexbus/m-p/2257435#M68078</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/248592"&gt;@ChristofAbt&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for sharing the settings.&lt;/P&gt;
&lt;P&gt;When you mention that the register contains random data, does it change with every execution?&lt;/P&gt;
&lt;P&gt;Are you able to read the bus using an oscilloscope or a logic analyzer? This would help verify the integrity of the data across the bus.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Pablo&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 20:57:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Problems-reading-Data-from-an-FPGA-via-Flexbus/m-p/2257435#M68078</guid>
      <dc:creator>Pablo_Ramos</dc:creator>
      <dc:date>2025-12-08T20:57:12Z</dc:date>
    </item>
  </channel>
</rss>

