<?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: FS6500  CAN communication in Debug Mode in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/FS6500-CAN-communication-in-Debug-Mode/m-p/824220#M3828</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NXP,&lt;/P&gt;&lt;P&gt;It is &lt;STRONG&gt;not possible&lt;/STRONG&gt; to enable CAN on the FS65xx SBC &lt;STRONG&gt;WITHOUT&lt;/STRONG&gt; initializing the FS65xx first.&amp;nbsp; Please&amp;nbsp;&amp;nbsp;test&amp;nbsp; and&amp;nbsp; confirm and correct documentation if necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPI betweeen&amp;nbsp; MPC and FS65 must be setup and then the FS65_Init() / FS65_Config_NonInit()&amp;nbsp; function ( see the FS65xx driver example) has to be executed AT A MINIMUM before CAN is enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested my board that contains MPC5745 and FS6513 using these same steps.&amp;nbsp;&amp;nbsp;It is &lt;STRONG&gt;solely the users responsibility&lt;/STRONG&gt; to consult the latest Reference documentation for the SBC and MPC they use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a cheat sheet for testing only the CAN Interface on SBC&lt;/P&gt;&lt;P&gt;1. Wire the SBC Debug pin for Debug mode operation.&amp;nbsp;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. Wire the SBC Select pin to disable DeepFailSafe i.e connect to VPRE. (&amp;nbsp;See Note 1 below).&lt;/P&gt;&lt;P&gt;3. Power up the board and check voltages as mentioned in the document. Pay special attention to the voltage at the debug pin.&lt;/P&gt;&lt;P&gt;4. Create a test program for your MPC that includes&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a. Initializes&amp;nbsp; MPC&amp;nbsp;to SBC CAN ports and configures&amp;nbsp; corresponding CAN Interface&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b. Initializes&amp;nbsp; MPC to SBC DSP ports and configures corresponding interface&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c. FS65xx_GetStatus()&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;(See Note&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;below)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d. FS65_Init();&amp;nbsp;FS65_Config_NonInit();&amp;nbsp; &lt;SPAN&gt;(See Note&amp;nbsp;3&amp;nbsp;below)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;e. FS65xx_GetStatus()&amp;nbsp; (See Note 2&amp;nbsp;below)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;f. CAN_Send()&amp;nbsp; and CAN_Receive() code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5. Execute the&amp;nbsp; test program - SBC CAN should work.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note1: This connection disables DFS&amp;nbsp; and is suggested for DEBUG use only. This must be changed if you need DFS in your final product.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note2: Check the HW_Config() and DIAG_CAN_FD register values to find SBC state and CAN interface state.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note3:&amp;nbsp;Check and modify struct FS65_Registers_InitValues as necessary for your hardware setup/environment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope it helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;JR&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2018 19:49:44 GMT</pubDate>
    <dc:creator>jyothsnarajan</dc:creator>
    <dc:date>2018-10-12T19:49:44Z</dc:date>
    <item>
      <title>FS6500  CAN communication in Debug Mode</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/FS6500-CAN-communication-in-Debug-Mode/m-p/824216#M3824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an FS6500 connected to MPC5746 and want to test the CAN communication via the FS6500 CAN interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Section 11.6&amp;nbsp;/page 31&amp;nbsp;the FS6500 Datasheet Rev3.0 states that&lt;/P&gt;&lt;P&gt;"In debug mode, the CAN transceiver is set to normal operation mode by default allowing CAN communication without SPI configuration."&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following the directions&amp;nbsp;mentioned in AN5238 (reproduced here for convenience) I connected the 10K Dbg_Rpu resistor&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/73754i20DBE952424DADAA/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;P&gt;After reading the above two, it seemed that I do not have to do any prior configuration of the FS6500.@ If&amp;nbsp;I&amp;nbsp;put the SBC in debug mode and configure the CAN interface on the MPC, and connect the TX/RX between the MPC and FS6500, I should be able to send/receive messages via the FS65xx CAN interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a simple program that&lt;/P&gt;&lt;P&gt;- initializes MPC CAN interfaces CAN_1 (connected to FS65xx)&amp;nbsp;and CAN2(connected to external CAN transceiver)&amp;nbsp;&lt;/P&gt;&lt;P&gt;- sends a CAN message through each of the two interfaces.&lt;/P&gt;&lt;P&gt;Other than the I/O port/pad mux configuration, all configuration(CAN_CTRL1, RX/TX MB etc)are the same for both the interfaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAN1 communication does not work - I do not see any output from the FS65xx CAN transceiver.&amp;nbsp;I confirmed that MPC outputs TX data and on the FS65xx, data arrives at pins 20(TxD) but there is no output&amp;nbsp;on pins 8/9 - the CANH/CANL&amp;nbsp; outputs.&amp;nbsp;The problem appears to be localized to the FS65xx&amp;nbsp;chip&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAN-2 works as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Has anyone tried exercising the CAN interface on the FS65xx when it is in debug mode, without doing any prior configuration via software?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. How do we know for sure that&amp;nbsp;FS65xx is in debug mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. If&amp;nbsp;the FS65xx is wired as above, for debug mode and no other configuration has been done, what should be the values of these bits if I read the register over DSPI:&lt;/P&gt;&lt;P&gt;a)&amp;nbsp;DBG_HW bit (bit 0 )of HW_CONFIG register&lt;/P&gt;&lt;P&gt;b) CAN_Mode_1, CAN_MODE_0 and CAN_AUTO_DIS (bits 7:5) of CAN_MODE register&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. If setup is required even if debug mode, what is the minimal configuration that must be done.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to determine if&amp;nbsp;the chip&amp;nbsp;is bad or if it is only some missing configuration. If you have an example, that would be very helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2018 04:26:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/FS6500-CAN-communication-in-Debug-Mode/m-p/824216#M3824</guid>
      <dc:creator>jyothsnarajan</dc:creator>
      <dc:date>2018-10-04T04:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: FS6500  CAN communication in Debug Mode</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/FS6500-CAN-communication-in-Debug-Mode/m-p/824217#M3825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you find the solution for this issue?&lt;/P&gt;&lt;P&gt;Is the CAN is working if you put FS6500 in Debug by using the resistor configuration at power up?&lt;/P&gt;&lt;P&gt;Please share the details if you have found the solution..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 13:56:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/FS6500-CAN-communication-in-Debug-Mode/m-p/824217#M3825</guid>
      <dc:creator>mmurugesh</dc:creator>
      <dc:date>2018-10-10T13:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: FS6500  CAN communication in Debug Mode</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/FS6500-CAN-communication-in-Debug-Mode/m-p/824218#M3826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, even with connections as indicated in document, am not able to use the SBC CAN.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should be the state of the FS0/1 pins when the SBC is in debug mode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should the value of the "DEBUG" bit in the HW_CONFIG reg when the chip is in Debug mode? Tried two different chips, so am sure its some configuration within the chip that is disabling CAN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 17:23:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/FS6500-CAN-communication-in-Debug-Mode/m-p/824218#M3826</guid>
      <dc:creator>jyothsnarajan</dc:creator>
      <dc:date>2018-10-10T17:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: FS6500  CAN communication in Debug Mode</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/FS6500-CAN-communication-in-Debug-Mode/m-p/824219#M3827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think both FS0/1 will be low during power on sequence in debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Debug bit will be set.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2018 16:23:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/FS6500-CAN-communication-in-Debug-Mode/m-p/824219#M3827</guid>
      <dc:creator>mmurugesh</dc:creator>
      <dc:date>2018-10-11T16:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: FS6500  CAN communication in Debug Mode</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/FS6500-CAN-communication-in-Debug-Mode/m-p/824220#M3828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi NXP,&lt;/P&gt;&lt;P&gt;It is &lt;STRONG&gt;not possible&lt;/STRONG&gt; to enable CAN on the FS65xx SBC &lt;STRONG&gt;WITHOUT&lt;/STRONG&gt; initializing the FS65xx first.&amp;nbsp; Please&amp;nbsp;&amp;nbsp;test&amp;nbsp; and&amp;nbsp; confirm and correct documentation if necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPI betweeen&amp;nbsp; MPC and FS65 must be setup and then the FS65_Init() / FS65_Config_NonInit()&amp;nbsp; function ( see the FS65xx driver example) has to be executed AT A MINIMUM before CAN is enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested my board that contains MPC5745 and FS6513 using these same steps.&amp;nbsp;&amp;nbsp;It is &lt;STRONG&gt;solely the users responsibility&lt;/STRONG&gt; to consult the latest Reference documentation for the SBC and MPC they use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a cheat sheet for testing only the CAN Interface on SBC&lt;/P&gt;&lt;P&gt;1. Wire the SBC Debug pin for Debug mode operation.&amp;nbsp;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. Wire the SBC Select pin to disable DeepFailSafe i.e connect to VPRE. (&amp;nbsp;See Note 1 below).&lt;/P&gt;&lt;P&gt;3. Power up the board and check voltages as mentioned in the document. Pay special attention to the voltage at the debug pin.&lt;/P&gt;&lt;P&gt;4. Create a test program for your MPC that includes&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a. Initializes&amp;nbsp; MPC&amp;nbsp;to SBC CAN ports and configures&amp;nbsp; corresponding CAN Interface&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b. Initializes&amp;nbsp; MPC to SBC DSP ports and configures corresponding interface&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c. FS65xx_GetStatus()&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;(See Note&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;below)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;d. FS65_Init();&amp;nbsp;FS65_Config_NonInit();&amp;nbsp; &lt;SPAN&gt;(See Note&amp;nbsp;3&amp;nbsp;below)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;e. FS65xx_GetStatus()&amp;nbsp; (See Note 2&amp;nbsp;below)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;f. CAN_Send()&amp;nbsp; and CAN_Receive() code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5. Execute the&amp;nbsp; test program - SBC CAN should work.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note1: This connection disables DFS&amp;nbsp; and is suggested for DEBUG use only. This must be changed if you need DFS in your final product.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note2: Check the HW_Config() and DIAG_CAN_FD register values to find SBC state and CAN interface state.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Note3:&amp;nbsp;Check and modify struct FS65_Registers_InitValues as necessary for your hardware setup/environment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope it helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;JR&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2018 19:49:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/FS6500-CAN-communication-in-Debug-Mode/m-p/824220#M3828</guid>
      <dc:creator>jyothsnarajan</dc:creator>
      <dc:date>2018-10-12T19:49:44Z</dc:date>
    </item>
  </channel>
</rss>

