<?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: FlexBus bus error in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexBus-bus-error/m-p/440286#M25762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: #7f0055;"&gt;Here is the code that I am using to write to the Flexbus LCD controller.&amp;nbsp; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: #7f0055;"&gt;LCDCommand(0x29);&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: #7f0055;"&gt;Here is the function:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: #7f0055;"&gt;void&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; &lt;STRONG&gt;LCDCommand&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: #005032;"&gt;uint16_t&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; cmd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: black; background: silver;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *((&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: #005032; background: silver;"&gt;uint16_t&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: black; background: silver;"&gt; *)DISPLAY_ADDR_CMD) = cmd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;Here is the assembler code.&amp;nbsp; The branch to WDOG_EWM_IRQHandler happens at the 000019c2 address which is right after the strh command that should write the 0x29 value to 0x6000000. &lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt; LCDCommand:&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019b0: push {r7}&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019b2: sub sp, #12&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019b4: add r7, sp, #0&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019b6: mov r3, r0&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019b8: strh r3, [r7, #6]&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;73&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *((uint16_t *)DISPLAY_ADDR_CMD) = cmd;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019ba: mov.w r3, #1610612736&amp;nbsp;&amp;nbsp; ; 0x60000000&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019be: ldrh r2, [r7, #6]&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019c0: strh r2, [r3, #0]&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;75&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019c2: adds r7, #12&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019c4: mov sp, r7&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019c6: ldr.w r7, [sp], #4&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019ca: bx lr&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;78&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Oct 2015 14:37:14 GMT</pubDate>
    <dc:creator>kevinhalberg</dc:creator>
    <dc:date>2015-10-30T14:37:14Z</dc:date>
    <item>
      <title>FlexBus bus error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexBus-bus-error/m-p/440284#M25760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am hooking up an LCD to a K65 uC and using KDS with PE setup to interface with the FlexBus.&amp;nbsp; Every time I try to access the address of the port to send data to the LCD controller i get a bus error.&amp;nbsp; What could be wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 12:15:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexBus-bus-error/m-p/440284#M25760</guid>
      <dc:creator>kevinhalberg</dc:creator>
      <dc:date>2015-10-29T12:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: FlexBus bus error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexBus-bus-error/m-p/440285#M25761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at the assembly code for the line *((uint16_t *)DISPLAY_ADDR_CMD = 0x29;&amp;nbsp; Where DISPLAY_ADDR_CMD is 0x6000000 it looks like it is branching right at the strh and it goes to the WDOG_EWM_IRQHandler at 000004e8, and for the 'C' debugging it shows that it went to the DEFAULT_ISR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It also looked like the error was a imprecise bus error from the uC registers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently debugging this today and would love any help you could provide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 14:16:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexBus-bus-error/m-p/440285#M25761</guid>
      <dc:creator>kevinhalberg</dc:creator>
      <dc:date>2015-10-30T14:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: FlexBus bus error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexBus-bus-error/m-p/440286#M25762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: #7f0055;"&gt;Here is the code that I am using to write to the Flexbus LCD controller.&amp;nbsp; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: #7f0055;"&gt;LCDCommand(0x29);&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: #7f0055;"&gt;Here is the function:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: #7f0055;"&gt;void&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; &lt;STRONG&gt;LCDCommand&lt;/STRONG&gt;(&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: #005032;"&gt;uint16_t&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; cmd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: black; background: silver;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *((&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: #005032; background: silver;"&gt;uint16_t&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: black; background: silver;"&gt; *)DISPLAY_ADDR_CMD) = cmd;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&lt;SPAN lang="EN" style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;Here is the assembler code.&amp;nbsp; The branch to WDOG_EWM_IRQHandler happens at the 000019c2 address which is right after the strh command that should write the 0x29 value to 0x6000000. &lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt; LCDCommand:&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019b0: push {r7}&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019b2: sub sp, #12&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019b4: add r7, sp, #0&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019b6: mov r3, r0&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019b8: strh r3, [r7, #6]&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;73&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *((uint16_t *)DISPLAY_ADDR_CMD) = cmd;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019ba: mov.w r3, #1610612736&amp;nbsp;&amp;nbsp; ; 0x60000000&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019be: ldrh r2, [r7, #6]&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019c0: strh r2, [r3, #0]&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;75&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019c2: adds r7, #12&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019c4: mov sp, r7&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019c6: ldr.w r7, [sp], #4&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;000019ca: bx lr&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;78&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 10.0pt;"&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 14:37:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexBus-bus-error/m-p/440286#M25762</guid>
      <dc:creator>kevinhalberg</dc:creator>
      <dc:date>2015-10-30T14:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: FlexBus bus error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexBus-bus-error/m-p/440287#M25763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the configuration of the Flexbus PE component.&amp;nbsp; Does anyone see anything wrong here?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/29156i3CBD3AE8F0FD4047/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 15:00:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexBus-bus-error/m-p/440287#M25763</guid>
      <dc:creator>kevinhalberg</dc:creator>
      <dc:date>2015-10-30T15:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: FlexBus bus error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexBus-bus-error/m-p/440288#M25764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like I have this working now.&amp;nbsp; I had to manually set the CSR0 V flag even though CS0 was enabled via PE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 19:54:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlexBus-bus-error/m-p/440288#M25764</guid>
      <dc:creator>kevinhalberg</dc:creator>
      <dc:date>2015-10-30T19:54:37Z</dc:date>
    </item>
  </channel>
</rss>

