<?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: Network and CANBUS on TWR-KV58F220 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Network-and-CANBUS-on-TWR-KV58F220/m-p/676830#M41641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Christie,&lt;/P&gt;&lt;P&gt;I have checked that the PTE26 is multiplexed with ENET_1588_CLKIN, if you do not use 1588 protocol and just want to use Ethernet protocol, the ENET_1588_CLKIN clock is not required.&lt;/P&gt;&lt;P&gt;Regarding the CAN quata, I have checked the project of "lwip_httpsrv", from the code, i think that the core/sys clock is 150MHz, Bus clock is 75MHz. For the CAN clock, it uses bus clock, so the CAN driving clock is 75MHz/(predivder+1)=2.5MHz, CAN baudrate is 2.5MHz/(PROPSEG + PSEG1 + PSEG2 + 4). Pls check the above three parameter PROPSEG + PSEG1 + PSEG2 in debugger.&lt;/P&gt;&lt;P&gt;If you suspect the bus clock frequency, pls output a clock to CLKOUT pin(PTA6) to verify the clock.&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Jun 2017 09:19:34 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2017-06-09T09:19:34Z</dc:date>
    <item>
      <title>Network and CANBUS on TWR-KV58F220</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Network-and-CANBUS-on-TWR-KV58F220/m-p/676826#M41637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am testing the network and CANBUS&amp;nbsp;on TWR-KV58F220 and have the following questions:&lt;/P&gt;&lt;P&gt;1) When I try the httpsrv demo and it does not work. I checked pin_mux, and looks like it is configured for MII0, not RMII0. I am using PE26 as reference input as well. Do you have any sample to work with this kind of configuration? or what do I need to change on existing project?&lt;/P&gt;&lt;P&gt;2) When I am testing on CANBUS, I am using 50 MHz as clock, so, I can't get the exact 48MHz or 60 MHz clock, only 59.375MHz. Do you have any CANBUS timing setting for this or I can just use the settings for 60MHz.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 13:49:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Network-and-CANBUS-on-TWR-KV58F220/m-p/676826#M41637</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2017-06-06T13:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Network and CANBUS on TWR-KV58F220</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Network-and-CANBUS-on-TWR-KV58F220/m-p/676827#M41638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are more information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I am using the same network chip as FRDM-K66. Which initialization routine should I call?&lt;/P&gt;&lt;P&gt;2) I am testing CANBUS based on FRDM-K64F with 250 KBPS. I running at 120MHz. The flexcan is using 60MHz. I set&amp;nbsp; seg=6, seg1=7, seg2=7,predivder=8, width=3. This works fine with my controller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I testing KV58F, I can see it runs at 150MHz, flexcan=75MHz, seg=1, seg1=3, seg2=2,predivder=29, width=1.&lt;/P&gt;&lt;P&gt;These settings are right? why there are the big different between two? How to set these for 75MHz, 118.75MHz?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jun 2017 20:14:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Network-and-CANBUS-on-TWR-KV58F220/m-p/676827#M41638</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2017-06-06T20:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Network and CANBUS on TWR-KV58F220</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Network-and-CANBUS-on-TWR-KV58F220/m-p/676828#M41639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Christie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the "lwip_httpsrv" project uses RMII mode instead of MII mode, for confirmation, you can check the bit 8 of the ENET_RCR in debugger, if it is 1, RMII mode is selected,if it is 0, MII mode is selected.&lt;/P&gt;&lt;P&gt;I have checked the code, it uses RMII mode in default.&lt;/P&gt;&lt;P&gt;Pls check the code:&lt;/P&gt;&lt;P&gt;void ENET_GetDefaultConfig(enet_config_t *config)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Checks input parameter. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; assert(config);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Initializes the MAC configure structure to zero. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; memset(config, 0, sizeof(enet_config_t));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Sets MII mode, full duplex, 100Mbps for MAC and PHY data interface. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config-&amp;gt;miiMode = kENET_RmiiMode;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config-&amp;gt;miiSpeed = kENET_MiiSpeed100M;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config-&amp;gt;miiDuplex = kENET_MiiFullDuplex;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Sets the maximum receive frame length. */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config-&amp;gt;rxMaxFrameLen = ENET_FRAME_MAX_FRAMELEN;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding your issue that you fail to work for the httpsrv demo, I suspect that you do not configure the jumper both for the TWR-KV58 and TWR-SER boards correctly. Pls set up the jumper based on readme.txt.&lt;/P&gt;&lt;P&gt;Regarding the CAN module, firstly, the baud rate should match by setting the RJW/PSEG1/PSEG2/PROPSEG bits in CANx_CTRL1 register, but the sampling point should be at the same time for transmitter/receiver. Pls refer to section 54.5.8.4 Protocol timing in RM of KV5x.&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 09:55:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Network-and-CANBUS-on-TWR-KV58F220/m-p/676828#M41639</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2017-06-08T09:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Network and CANBUS on TWR-KV58F220</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Network-and-CANBUS-on-TWR-KV58F220/m-p/676829#M41640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xiangjun,&lt;/P&gt;&lt;P&gt;I checked it and it is set for RMII as default.&lt;/P&gt;&lt;P&gt;I am using PE26 as reference clock input. Could you tell me where I should set it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For CANBUS timing, I am using 250bpks, Flexcan clock ==75MHz.&amp;nbsp;It works with &amp;nbsp;seg=1, seg1=3, seg2=2,predivder=29, width=1 settings(from sample). But, based on timing calculation, there are different. I have the timing setting on FRDM-K64 above, and other CANBUS timing for MCF5282 and etc. They are following the formula for timing calculation. Looks like KV58F is different from other MCUs?&lt;/P&gt;&lt;P&gt;I tried the settings from FRDM-K64, it won't work. Could you tell me how to calculate the timing for KV58F running at 250kpbs(System clock=235.75MHz, and 150MHz)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jun 2017 12:07:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Network-and-CANBUS-on-TWR-KV58F220/m-p/676829#M41640</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2017-06-08T12:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Network and CANBUS on TWR-KV58F220</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Network-and-CANBUS-on-TWR-KV58F220/m-p/676830#M41641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Christie,&lt;/P&gt;&lt;P&gt;I have checked that the PTE26 is multiplexed with ENET_1588_CLKIN, if you do not use 1588 protocol and just want to use Ethernet protocol, the ENET_1588_CLKIN clock is not required.&lt;/P&gt;&lt;P&gt;Regarding the CAN quata, I have checked the project of "lwip_httpsrv", from the code, i think that the core/sys clock is 150MHz, Bus clock is 75MHz. For the CAN clock, it uses bus clock, so the CAN driving clock is 75MHz/(predivder+1)=2.5MHz, CAN baudrate is 2.5MHz/(PROPSEG + PSEG1 + PSEG2 + 4). Pls check the above three parameter PROPSEG + PSEG1 + PSEG2 in debugger.&lt;/P&gt;&lt;P&gt;If you suspect the bus clock frequency, pls output a clock to CLKOUT pin(PTA6) to verify the clock.&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 09:19:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Network-and-CANBUS-on-TWR-KV58F220/m-p/676830#M41641</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2017-06-09T09:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Network and CANBUS on TWR-KV58F220</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Network-and-CANBUS-on-TWR-KV58F220/m-p/676831#M41642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Christie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is said that the you should use PHY clock source to drive EXTAL pin, the 50MHz PHY clock should be connected to PTA18, so on the TWR-KV58 board, you should populate the R110, remove the R109. Pls refer to schematics of the TWR-KV58.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21147i10642C60BDD42603/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jun 2017 09:46:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Network-and-CANBUS-on-TWR-KV58F220/m-p/676831#M41642</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2017-06-09T09:46:49Z</dc:date>
    </item>
  </channel>
</rss>

