<?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>Embedded Software and Tools ClinicのトピックRe: ScriptGUI V3.40 / V3.30 script not running. [MC33664A,MC33665A,MC33771C,MC33772C,MC33775A,MC3377</title>
    <link>https://community.nxp.com/t5/Embedded-Software-and-Tools/ScriptGUI-V3-40-V3-30-script-not-running-MC33664A-MC33665A/m-p/1823669#M461</link>
    <description>&lt;P&gt;What does this transfer do, I could not get this working,&amp;nbsp;&lt;/P&gt;&lt;P&gt;cmc1= devs.add(cadd=0, dadd=2, device="mc33772c")&lt;BR /&gt;cmc2= devs.add(cadd=0, dadd=3, device="mc33772c")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Time Type Command/Result MADD CADD DADD MsgCnt Register N Data Physical&lt;BR /&gt;16:12:57.474 tplreq Wr48: 0.1.00 MC33772C_INIT 2 0 1 00 0 MC33772C_INIT 0002h&lt;BR /&gt;16:12:57.475 tplreq Wr48: 0.1.00 MC33772C_INIT 3 0 1 00 0 MC33772C_INIT 0003h&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2024 23:37:37 GMT</pubDate>
    <dc:creator>m_karthikeyan</dc:creator>
    <dc:date>2024-03-07T23:37:37Z</dc:date>
    <item>
      <title>ScriptGUI V3.40 / V3.30 script not running. [MC33664A,MC33665A,MC33771C,MC33772C,MC33775A,MC33774A]</title>
      <link>https://community.nxp.com/t5/Embedded-Software-and-Tools/ScriptGUI-V3-40-V3-30-script-not-running-MC33664A-MC33665A/m-p/1816901#M453</link>
      <description>&lt;PRE&gt;MC33665A&lt;/PRE&gt;&lt;P&gt;Hi NXP support&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/702"&gt;@Q_man&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:wolfgang.bihlmayr@nxp.com" target="_blank" rel="nofollow noopener noreferrer"&gt;@bihlmayr&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am using the above with a PCAN-FD CAN analyzer, for evaluation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We got a MC33665ATF4 with 2 MC33772 under it with the script attached. MV_MC3377C ScriptGUI_Code_500K.txt, Its not able to communicate with the CAN Gateway 33665A, any help is appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Recently saw a new SCRIPTGUI version, Installed it, but I am getting the Following error for 3.40&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------b&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "multiprocessing\process.py", line 314, in _bootstrap&lt;BR /&gt;File "multiprocessing\process.py", line 108, in run&lt;BR /&gt;File "scriptserver\scriptserver.py", line 150, in execute&lt;BR /&gt;File "ports\port_can.py", line 399, in close&lt;BR /&gt;File "ports\port_can.py", line 377, in deinit&lt;BR /&gt;AttributeError: 'PortCan' object has no attribute 'worker'&lt;/P&gt;&lt;P&gt;During handling of the above exception, another exception occurred:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "ScriptGUI3.py", line 629, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "PyInstaller\hooks\rthooks\pyi_rth_multiprocessing.py", line 50, in _freeze_support&lt;BR /&gt;File "multiprocessing\spawn.py", line 122, in spawn_main&lt;BR /&gt;File "multiprocessing\spawn.py", line 135, in _main&lt;BR /&gt;File "multiprocessing\process.py", line 329, in _bootstrap&lt;BR /&gt;AttributeError: 'NoneType' object has no attribute 'write'&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;I also ran 3.30D version It was running, but the board verified to be working with the script is not working with Attached the trace in ZIP, images of CAN TX and RX from the&amp;nbsp;&lt;SPAN&gt;CAN transceiver TJA1052IT/2's&amp;nbsp; CAN_RX [Magenta in scope] and CAN_TX [Yellow in scope].&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please help, we can even have a Call on the same, with any of the support engineers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karthikeyan Mitran&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2024 18:28:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Embedded-Software-and-Tools/ScriptGUI-V3-40-V3-30-script-not-running-MC33664A-MC33665A/m-p/1816901#M453</guid>
      <dc:creator>m_karthikeyan</dc:creator>
      <dc:date>2024-03-25T18:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: ScriptGUI V3.40 / V3.30 script not running. [MC33664A,MC33665A,MC33771C,MC33772C,MC33775A,MC3377</title>
      <link>https://community.nxp.com/t5/Embedded-Software-and-Tools/ScriptGUI-V3-40-V3-30-script-not-running-MC33664A-MC33665A/m-p/1818672#M455</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I just tried the &lt;STRONG&gt;MV_MC33772C_ScriptGUI_Code_500K.txt &lt;/STRONG&gt;script on the &lt;STRONG&gt;ScriptGUI V3.40&lt;/STRONG&gt; and it works on my setup.&lt;/P&gt;
&lt;P&gt;Please check you hardware setup in particular the configuration of the 665 EVB! The CAN speed and pinid must match between Script and external hardware. &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;The 665 needs a power on reset after changing the configuration pins!&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;For a proper operation also check in the trace if the 665 initialization was successful (&lt;FONT color="#0000FF"&gt;Rsp messages&lt;/FONT&gt; received):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Q_man_0-1709201663503.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/265811iAECD951CD726D8BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Q_man_0-1709201663503.png" alt="Q_man_0-1709201663503.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 10:39:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Embedded-Software-and-Tools/ScriptGUI-V3-40-V3-30-script-not-running-MC33664A-MC33665A/m-p/1818672#M455</guid>
      <dc:creator>Q_man</dc:creator>
      <dc:date>2024-02-29T10:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: ScriptGUI V3.40 / V3.30 script not running. [MC33664A,MC33665A,MC33771C,MC33772C,MC33775A,MC3377</title>
      <link>https://community.nxp.com/t5/Embedded-Software-and-Tools/ScriptGUI-V3-40-V3-30-script-not-running-MC33664A-MC33665A/m-p/1819808#M457</link>
      <description>&lt;P&gt;Got it working, the&lt;/P&gt;&lt;P&gt;The PCAN-FD dongle I was using is the issue, I am not sure why, will try to reset or upgrade firmware, another newer PCAN-FD dongle sent the data and we got the reply from both 33665 and 33772's&lt;/P&gt;&lt;P&gt;0 00000000 ErrorFrame F.. 5.980160 R&lt;BR /&gt;0 00000000 ErrorFrame B.. 5.982120 R&lt;BR /&gt;0 00000000 ErrorFrame F.. 5.984080 R&lt;BR /&gt;0 00000000 ErrorFrame F.. 5.986130 R&lt;BR /&gt;0 00000000 ErrorFrame d.. 5.986300 R&lt;BR /&gt;0 00000000 ErrorFrame F.. 5.988010 R&lt;BR /&gt;0 00000000 ErrorFrame d.. 5.988180 R&lt;BR /&gt;0 00000000 ErrorFrame d.. 5.988350 R&lt;BR /&gt;0 00000000 ErrorFrame d.. 5.988520 R&lt;BR /&gt;0 00000000 ErrorFrame F.. 5.989030 R&lt;BR /&gt;0 00000000 ErrorFrame d.. 5.989120 R&lt;BR /&gt;0 00000000 ErrorFrame F.. 5.989970 R&lt;BR /&gt;0 00000000 ErrorFrame d.. 5.990140 R&lt;BR /&gt;0 00000000 ErrorFrame F.. 5.991000 R&lt;BR /&gt;0 00000000 ErrorFrame d.. 5.991170 R&lt;BR /&gt;0 00000000 ErrorFrame d.. 5.991340 R&lt;BR /&gt;0 00000000 ErrorFrame F.. 6.494630 R&lt;BR /&gt;0 00000000 ErrorFrame B.. 6.496260 R&lt;BR /&gt;0 00000000 ErrorFrame F.. 6.496770 R&lt;BR /&gt;0 00000000 ErrorFrame B.. 6.498640 R&lt;BR /&gt;0 00000000 ErrorFrame F.. 6.500690 R&lt;BR /&gt;0 00000000 ErrorFrame F.. 6.502830 R&lt;BR /&gt;0 00000000 ErrorFrame F.. 6.503680 R&lt;BR /&gt;0 00000000 ErrorFrame F.. 6.504700 R&lt;BR /&gt;0 00000000 ErrorFrame B.. 7.007400 R&lt;BR /&gt;0 00000000 ErrorFrame F.. 7.007830 R&lt;BR /&gt;0 00000000 ErrorFrame F.. 8.011010 R&lt;BR /&gt;0 000006A2 6 D3 AE BB 02 01 F5 ...... 8.011350 R&lt;BR /&gt;0 000006A2 6 D2 96 BC 02 11 7D .....} 8.011600 R&lt;BR /&gt;0 000006A2 6 D9 54 BD 02 21 FE .T..!. 8.011780 R&lt;BR /&gt;0 000006A2 6 80 03 BE 02 31 23 ....1# 8.011950 R&lt;BR /&gt;0 000006A2 6 D7 BF BF 02 41 02 ....A. 8.012200 R&lt;BR /&gt;0 000006A2 6 D4 D8 C0 02 51 B1 ....Q. 8.012370 R&lt;BR /&gt;0 00000000 ErrorFrame .F.. 8.013140 R&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure if we can do a pcan reset before using it in SCRIPT GUI.&lt;/P&gt;&lt;P&gt;Its solved now. DO you have any C versions which you can share, I am creating and arduino based C version for the 33665, Just checking if you have it, will use it. Else I am fine in sharing my version if you like it.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 20:48:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Embedded-Software-and-Tools/ScriptGUI-V3-40-V3-30-script-not-running-MC33664A-MC33665A/m-p/1819808#M457</guid>
      <dc:creator>m_karthikeyan</dc:creator>
      <dc:date>2024-03-01T20:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: ScriptGUI V3.40 / V3.30 script not running. [MC33664A,MC33665A,MC33771C,MC33772C,MC33775A,MC3377</title>
      <link>https://community.nxp.com/t5/Embedded-Software-and-Tools/ScriptGUI-V3-40-V3-30-script-not-running-MC33664A-MC33665A/m-p/1823652#M460</link>
      <description>&lt;P&gt;The arduino snippet is below, Happy charging. &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;poly is 0x2f&lt;/P&gt;&lt;P&gt;#define CRC8(CRC, C) ((CRC = crc8_lut[CRC ^ C]) &amp;amp; 0xFF)&lt;/P&gt;&lt;P&gt;unsigned char crc8_lut[256];&lt;/P&gt;&lt;P&gt;void crc8_pop(unsigned char poly)&lt;BR /&gt;{&lt;BR /&gt;int i;&lt;BR /&gt;int j;&lt;BR /&gt;unsigned char crc= 0;&lt;/P&gt;&lt;P&gt;for (i=0; i&amp;lt;256; i++) {&lt;BR /&gt;crc = i ;&lt;BR /&gt;for (j=0; j&amp;lt;8; j++) {&lt;BR /&gt;crc = (crc &amp;lt;&amp;lt; 1) ^ (((crc) &amp;amp; 0x80) ? poly : 0);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;crc8_lut[i] = crc &amp;amp; 0xFF;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int read_TPL2(unsigned int d_add, unsigned int c_add, unsigned int count, unsigned char reg_add, unsigned short data)&lt;BR /&gt;{&lt;BR /&gt;unsigned char len =6;&lt;BR /&gt;if (d_add &amp;gt; 63)&lt;BR /&gt;{&lt;BR /&gt;return MCP_33665_ERROR;&lt;BR /&gt;}&lt;BR /&gt;if (reg_add &amp;gt; 0x7f)&lt;BR /&gt;{&lt;BR /&gt;return MCP_33665_ERROR;&lt;BR /&gt;}&lt;BR /&gt;//Data - 0 frame[0]&lt;BR /&gt;frame[0] = (data &amp;amp; 0xff00)&amp;gt;&amp;gt;8;&lt;BR /&gt;//Data - 1 frame[1]&lt;BR /&gt;frame[1] = (data &amp;amp; 0xff);&lt;BR /&gt;frame[2] = 0x80 | (reg_add &amp;amp; 0x7f); //MS Bit with&lt;BR /&gt;frame[3] = d_add &amp;amp; 0x3f; //src=0, CADD[2] = 0&lt;BR /&gt;frame[4] = ((count &amp;amp; 0xf) &amp;lt;&amp;lt;4) | ((c_add &amp;amp; 0x3) &amp;lt;&amp;lt; 2) | 0x1; //MS count with READ [0x1]&lt;BR /&gt;frame[5]= 0x42;&lt;BR /&gt;CRC8(frame[5],frame[0]);&lt;BR /&gt;CRC8(frame[5],frame[1]);&lt;BR /&gt;CRC8(frame[5],frame[2]);&lt;BR /&gt;CRC8(frame[5],frame[3]);&lt;BR /&gt;CRC8(frame[5],frame[4]);&lt;BR /&gt;CAN.sendMsgBuf(0x602, 0, 6, frame);&lt;BR /&gt;CAN.readMsgBuf(&amp;amp;len, buf);&lt;BR /&gt;return (buf[0]&amp;lt;&amp;lt;8 | buf[1]);&lt;BR /&gt;//Data - 1 frame[4] - Msg CNT and CMD&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;reg = read_TPL2(0x1, 0x0, 1, 0x10, 0x0);&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 22:02:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Embedded-Software-and-Tools/ScriptGUI-V3-40-V3-30-script-not-running-MC33664A-MC33665A/m-p/1823652#M460</guid>
      <dc:creator>m_karthikeyan</dc:creator>
      <dc:date>2024-03-07T22:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: ScriptGUI V3.40 / V3.30 script not running. [MC33664A,MC33665A,MC33771C,MC33772C,MC33775A,MC3377</title>
      <link>https://community.nxp.com/t5/Embedded-Software-and-Tools/ScriptGUI-V3-40-V3-30-script-not-running-MC33664A-MC33665A/m-p/1823669#M461</link>
      <description>&lt;P&gt;What does this transfer do, I could not get this working,&amp;nbsp;&lt;/P&gt;&lt;P&gt;cmc1= devs.add(cadd=0, dadd=2, device="mc33772c")&lt;BR /&gt;cmc2= devs.add(cadd=0, dadd=3, device="mc33772c")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Time Type Command/Result MADD CADD DADD MsgCnt Register N Data Physical&lt;BR /&gt;16:12:57.474 tplreq Wr48: 0.1.00 MC33772C_INIT 2 0 1 00 0 MC33772C_INIT 0002h&lt;BR /&gt;16:12:57.475 tplreq Wr48: 0.1.00 MC33772C_INIT 3 0 1 00 0 MC33772C_INIT 0003h&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 23:37:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Embedded-Software-and-Tools/ScriptGUI-V3-40-V3-30-script-not-running-MC33664A-MC33665A/m-p/1823669#M461</guid>
      <dc:creator>m_karthikeyan</dc:creator>
      <dc:date>2024-03-07T23:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: ScriptGUI V3.40 / V3.30 script not running. [MC33664A,MC33665A,MC33771C,MC33772C,MC33775A,MC3377</title>
      <link>https://community.nxp.com/t5/Embedded-Software-and-Tools/ScriptGUI-V3-40-V3-30-script-not-running-MC33664A-MC33665A/m-p/1823944#M462</link>
      <description>&lt;P&gt;If you use the 665 as gateway, then you have to configure it prior using it, e.g.&lt;/P&gt;
&lt;P&gt;you have to configure the ports: mapping of chains to ports, protocol version TPL2 or TPL3, timeouts, broadcasting...&lt;/P&gt;
&lt;P&gt;Please check the &lt;STRONG&gt;MC33665A datasheet&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;phy_init().&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Those lines are only relevant for correctly understanding response&amp;nbsp;messages (mapping to device types). They do&amp;nbsp;not&amp;nbsp;impact the communication as such!&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;cmc1= devs.add(cadd=0, dadd=2, device="mc33772c")
cmc2= devs.add(cadd=0, dadd=3, device="mc33772c")

&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;Further information&amp;nbsp;can be found in the online help &lt;STRONG&gt;Device Model&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Q_man_0-1709885210464.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/267217i28BEA59D9D15C201/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Q_man_0-1709885210464.png" alt="Q_man_0-1709885210464.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 08:08:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Embedded-Software-and-Tools/ScriptGUI-V3-40-V3-30-script-not-running-MC33664A-MC33665A/m-p/1823944#M462</guid>
      <dc:creator>Q_man</dc:creator>
      <dc:date>2024-03-08T08:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: ScriptGUI V3.40 / V3.30 script not running. [MC33664A,MC33665A,MC33771C,MC33772C,MC33775A,MC3377</title>
      <link>https://community.nxp.com/t5/Embedded-Software-and-Tools/ScriptGUI-V3-40-V3-30-script-not-running-MC33664A-MC33665A/m-p/1827985#M466</link>
      <description>&lt;BR /&gt;I tried reading&amp;nbsp; MC33665_EVH_MCUIF_ERR_STAT After setting CID of 33772 and I am getting the values of 4h in MCUIF_ERR_STAT meaning INVALID cmd&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cmc1= devs.add(cadd=0, dadd=2, device="mc33772c")&lt;BR /&gt;cmc2= devs.add(cadd=0, dadd=3, device="mc33772c")&lt;BR /&gt;Wr48: 0.0.01 MC33665_SCHED_CMD 0008h&lt;BR /&gt;&lt;BR /&gt;Converted to&lt;BR /&gt;&lt;BR /&gt;WR:0x40:0x0,0x8,0x40,0x1,0x12,0xb3&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;WR:0x1:0x0,0x2,0x1,0x0,0x16,0x67&lt;BR /&gt;READ:0x33:0x0,0x4,0xb3,0x1,0xb1:0xc2,&lt;BR /&gt;EVH_MCUIF_ERR_STAT:0x4:0x0,0x4,0xb3&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;WR:0x40:0x0,0x8,0x40,0x1,0x12,0xb3&lt;BR /&gt;WR:0x1:0x0,0x2,0x1,0x0,0x17,0x48&lt;BR /&gt;READ:0x33:0x0,0x4,0xb3,0x1,0x31:0x21&lt;BR /&gt;&lt;BR /&gt;EVH_MCUIF_ERR_STAT:0x4:0x0,0x4,0xb3&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If I use the SCRIPT v3.3/v3.4 its not setting&amp;nbsp;MC33665_EVH_MCUIF_ERR_STAT to 0x4 instead its 0x0.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I am not sure what the right command is, I tried all, Its getting hard as the Script via pcan is sending in CAN FD, I am tring to use MC33665 with just CAN 2.0 and its working almost till I enumerate MC33772, in the above command, Please help, Working on it for 2 days now with no solution/success.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 14 Mar 2024 04:16:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Embedded-Software-and-Tools/ScriptGUI-V3-40-V3-30-script-not-running-MC33664A-MC33665A/m-p/1827985#M466</guid>
      <dc:creator>m_karthikeyan</dc:creator>
      <dc:date>2024-03-14T04:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: ScriptGUI V3.40 / V3.30 script not running. [MC33664A,MC33665A,MC33771C,MC33772C,MC33775A,MC3377</title>
      <link>https://community.nxp.com/t5/Embedded-Software-and-Tools/ScriptGUI-V3-40-V3-30-script-not-running-MC33664A-MC33665A/m-p/1828862#M467</link>
      <description>&lt;P&gt;READ:0x32:0x0,0x0,0xb2,0x1,0xe1:0xe,&lt;BR /&gt;EVH_GENERAL_ERR_STAT:0x0:0x0,0x0,0xb2&lt;BR /&gt;READ:0x34:0x0,0x4,0xb4,0x1,0xf1:0xe,&lt;BR /&gt;EVH_TPL0_ERR_STAT:0x4:0x0,0x4,0xb4&lt;BR /&gt;READ:0x33:0x0,0x0,0xb3,0x1,0x1:0x76,&lt;BR /&gt;EVH_MCUIF_ERR_STAT:0x0:0x0,0x0,0xb3&lt;BR /&gt;READ:0x38:0x0,0x0,0xb8,0x1,0x11:0xba,&lt;BR /&gt;EVH_ACC_ERR:0x0:0x0,0x0,0xb8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not getting any response, from 33772 TPL0_ERR_STAT is set, 0x4.&amp;nbsp;&lt;/P&gt;&lt;P&gt;65 6864.064 DT 06A2 Rx 6 01 11 90 01 61 70&lt;BR /&gt;66 6916.596 DT 0622 Rx 6 00 00 32 01 11 1B&lt;BR /&gt;67 6916.797 DT 06A2 Rx 6 00 00 B2 01 71 43&lt;BR /&gt;68 6969.471 DT 0622 Rx 6 00 00 34 01 11 3F&lt;BR /&gt;69 6969.673 DT 06A2 Rx 6 00 04 B4 01 81 35&lt;BR /&gt;70 7022.266 DT 0622 Rx 6 00 00 33 01 11 15&lt;BR /&gt;71 7022.466 DT 06A2 Rx 6 00 00 B3 01 91 3B&lt;BR /&gt;72 7075.077 DT 0622 Rx 6 00 00 38 01 11 77&lt;BR /&gt;73 7075.283 DT 06A2 Rx 6 00 00 B8 01 A1 84&lt;BR /&gt;74 7127.782 DT 0622 Rx 6 00 00 30 02 15 AF&lt;BR /&gt;75 7180.216 DT 0622 Rx 6 00 00 32 02 15 B3&lt;/P&gt;&lt;P&gt;Any help is appreciated. I am using CAN 2.0 and I see activity in TPL0 but the 33772 is not responding and timing out. this does not occur with the scripte3.0, should I create a new topic or continue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Happy Pie day&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 22:38:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Embedded-Software-and-Tools/ScriptGUI-V3-40-V3-30-script-not-running-MC33664A-MC33665A/m-p/1828862#M467</guid>
      <dc:creator>m_karthikeyan</dc:creator>
      <dc:date>2024-03-14T22:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: ScriptGUI V3.40 / V3.30 script not running. [MC33664A,MC33665A,MC33771C,MC33772C,MC33775A,MC3377</title>
      <link>https://community.nxp.com/t5/Embedded-Software-and-Tools/ScriptGUI-V3-40-V3-30-script-not-running-MC33664A-MC33665A/m-p/1828905#M468</link>
      <description>&lt;P&gt;used write_TPL2_2 for global write to the CID config,&lt;/P&gt;&lt;P&gt;Currently trying to get the cyclic measurements running, was able to read SYS_CFG_1 of 33772 and modifing it to 0x5001 instead of 0x1001.&lt;/P&gt;&lt;P&gt;int write_TPL2_2(unsigned int d_add, unsigned int c_add, unsigned int count, unsigned char reg_add, unsigned short data)&lt;BR /&gt;{&lt;BR /&gt;unsigned char len =6;&lt;BR /&gt;int ret = 0;&lt;BR /&gt;frame[0]=frame[1]=frame[2]=frame[3]=frame[4]=frame[5]=frame[6]=0;&lt;BR /&gt;if (d_add &amp;gt; 63)&lt;BR /&gt;{&lt;BR /&gt;return MCP_33665_ERROR;&lt;BR /&gt;}&lt;BR /&gt;if (reg_add &amp;gt; 0x7f)&lt;BR /&gt;{&lt;BR /&gt;return MCP_33665_ERROR;&lt;BR /&gt;}&lt;BR /&gt;//Data - 0 frame[0]&lt;BR /&gt;frame[0] = (data &amp;amp; 0xff00)&amp;gt;&amp;gt;8;&lt;BR /&gt;//Data - 1 frame[1]&lt;BR /&gt;frame[1] = (data &amp;amp; 0xff);&lt;BR /&gt;frame[2] = 0x00 | (reg_add &amp;amp; 0x7f); //MS Bit with 0&lt;BR /&gt;frame[3] = d_add &amp;amp; 0x3f; //MADD/src=0, CADD[2] = 0&lt;/P&gt;&lt;P&gt;if(c_add == 0x1) {&lt;BR /&gt;frame[4] = 0x17;&lt;BR /&gt;} else {&lt;BR /&gt;frame[4] = ((count &amp;amp; 0xf) &amp;lt;&amp;lt;4) | ((c_add &amp;amp; 0x3) &amp;lt;&amp;lt; 2) | 0x2; //MS count with write [0x1]&lt;BR /&gt;}&lt;BR /&gt;frame[5]= 0x42;&lt;BR /&gt;CRC8(frame[5],frame[0]);&lt;BR /&gt;CRC8(frame[5],frame[1]);&lt;BR /&gt;CRC8(frame[5],frame[2]);&lt;BR /&gt;CRC8(frame[5],frame[3]);&lt;BR /&gt;CRC8(frame[5],frame[4]);&lt;BR /&gt;CAN.sendMsgBuf(0x622, 0, 6, frame);&lt;BR /&gt;sprintf(pbuf, "WR:0x%x:0x%x,0x%x,0x%x,0x%x,0x%x,0x%x\n", reg_add, frame[0], frame[1], frame[2], frame[3],frame[4],frame[5]);&lt;BR /&gt;Serial.print(pbuf);&lt;BR /&gt;delay(1);&lt;BR /&gt;//CAN.readMsgBuf(&amp;amp;len, buf);&lt;BR /&gt;return 0;//(buf[0]&amp;lt;&amp;lt;8 | buf[1]);&lt;BR /&gt;//Data - 1 frame[4] - Msg CNT and CMD&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;init() {&lt;/P&gt;&lt;P&gt;//CAN.readMsgBuf(&amp;amp;len, buf);&lt;BR /&gt;nop_TPL2(0x1,0x0,0xCAFE);&lt;BR /&gt;delay(3);&lt;BR /&gt;nop_TPL2(63,0x7,0x00);&lt;/P&gt;&lt;P&gt;sprintf(pbuf, "-------------Init_PHY:-------------\n");&lt;BR /&gt;Serial.print(pbuf);&lt;BR /&gt;delay(50);&lt;BR /&gt;reg = read_TPL2(0x1, 0x0, 1, EVH_MCUIF_ERR_STAT, 0x0);&lt;BR /&gt;sprintf(pbuf, "EVH_MCUIF_ERR_STAT:0x%x:0x%x,0x%x,0x%x\n", reg, rbuf[0], rbuf[1], rbuf[2]);&lt;BR /&gt;Serial.print(pbuf);&lt;BR /&gt;write_TPL2(0x1,0x0,0x1,SYS_COM_TO_CFG,0x00FF);&lt;BR /&gt;delay(5);&lt;BR /&gt;write_TPL2(0x1,0x0,0x1,SYS_CAN_CFG,0x01);&lt;BR /&gt;delay(5);&lt;BR /&gt;nop_TPL2(0x1,0x0,0xCAFE);&lt;BR /&gt;delay(50);&lt;BR /&gt;reg = read_TPL2(0x1, 0x0, 1, EVH_MCUIF_ERR_STAT, 0x0);&lt;BR /&gt;sprintf(pbuf, "EVH_MCUIF_ERR_STAT:0x%x:0x%x,0x%x,0x%x\n", reg, rbuf[0], rbuf[1], rbuf[2]);&lt;BR /&gt;Serial.print(pbuf);&lt;/P&gt;&lt;P&gt;sprintf(pbuf, "-------------PHY:-------------\n");&lt;BR /&gt;Serial.print(pbuf);&lt;BR /&gt;write_TPL2(0x1,0x0,0x1,SYS_CAN_CFG,0x01);&lt;/P&gt;&lt;P&gt;delay(1);&lt;BR /&gt;&lt;BR /&gt;write_TPL2(0x1,0x0,0x1,SYS_PORT0_CFG,0x108F);&lt;BR /&gt;&lt;BR /&gt;delay(1);&lt;BR /&gt;&lt;BR /&gt;write_TPL2(0x1,0x0,0x1,SYS_CAN_CFG,0x01);&lt;BR /&gt;delay(1);&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;reg = read_TPL2(0x1, 0x0, 1, SYS_VERSION, 0x0);&lt;BR /&gt;sprintf(pbuf, "SYS_VERSION:0x%x:0x%x,0x%x,0x%x\n", reg, buf[0], buf[1], buf[2]);&lt;BR /&gt;Serial.print(pbuf);&lt;BR /&gt;&lt;BR /&gt;reg = read_TPL2(0x1, 0x0, 1, SYS_PROD_VER, 0x0);&lt;BR /&gt;sprintf(pbuf, "SYS_PROD_VER:0x%x:0x%x,0x%x,0x%x\n", reg, buf[0], buf[1], buf[2]);&lt;BR /&gt;Serial.print(pbuf);&lt;/P&gt;&lt;P&gt;delay(50);&lt;BR /&gt;reg = read_TPL2(0x1, 0x0, 1, EVH_MCUIF_ERR_STAT, 0x0);&lt;BR /&gt;sprintf(pbuf, "EVH_MCUIF_ERR_STAT:0x%x:0x%x,0x%x,0x%x\n", reg, rbuf[0], rbuf[1], rbuf[2]);&lt;BR /&gt;Serial.print(pbuf);&lt;BR /&gt;&lt;BR /&gt;reg = read_TPL2(0x1, 0x0, 1, SYS_VERSION, 0x0);&lt;BR /&gt;&lt;BR /&gt;sprintf(pbuf, "SYS_VERSION:0x%x:0x%x,0x%x,0x%x\n", reg, buf[0], buf[1], buf[2]);&lt;BR /&gt;Serial.print(pbuf);&lt;/P&gt;&lt;P&gt;delay(50);&lt;BR /&gt;reg = read_TPL2(0x1, 0x0, 1, EVH_MCUIF_ERR_STAT, 0x0);&lt;BR /&gt;sprintf(pbuf, "EVH_MCUIF_ERR_STAT:0x%x:0x%x,0x%x,0x%x\n", reg, rbuf[0], rbuf[1], rbuf[2]);&lt;BR /&gt;&lt;BR /&gt;reg = read_TPL2(0x1, 0x0, 1, SYS_UID_LOW, 0x0);&lt;BR /&gt;sprintf(pbuf, "SYS_UID:0x%x:0x%x,0x%x,0x%x\n", reg, buf[0], buf[1], buf[2]);&lt;BR /&gt;Serial.print(pbuf);&lt;BR /&gt;reg = read_TPL2(0x1, 0x0, 1, (SYS_UID_LOW+1), 0x0);&lt;BR /&gt;sprintf(pbuf, "SYS_UID:0x%x:0x%x,0x%x,0x%x\n", reg, buf[0], buf[1], buf[2]);&lt;BR /&gt;Serial.print(pbuf);&lt;/P&gt;&lt;P&gt;delay(50);&lt;BR /&gt;reg = read_TPL2(0x1, 0x0, 1, EVH_MCUIF_ERR_STAT, 0x0);&lt;BR /&gt;sprintf(pbuf, "EVH_MCUIF_ERR_STAT:0x%x:0x%x,0x%x,0x%x\n", reg, rbuf[0], rbuf[1], rbuf[2]);&lt;/P&gt;&lt;P&gt;reg = read_TPL2(0x1, 0x0, 1, SYS_CFG_CRC, 0x0);&lt;BR /&gt;sprintf(pbuf, "SYS_CFG_CRC:0x%x:0x%x,0x%x,0x%x\n", reg, buf[0], buf[1], buf[2]);&lt;BR /&gt;Serial.print(pbuf);&lt;BR /&gt;delay(50);&lt;BR /&gt;reg = read_TPL2(0x1, 0x0, 1, EVH_MCUIF_ERR_STAT, 0x0);&lt;BR /&gt;sprintf(pbuf, "EVH_MCUIF_ERR_STAT:0x%x:0x%x,0x%x,0x%x\n", reg, rbuf[0], rbuf[1], rbuf[2]);&lt;BR /&gt;Serial.print(pbuf);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;reg = read_TPL2(0x1, 0x0, 1, EVH_WAKEUP_REASON, 0x0);&lt;BR /&gt;sprintf(pbuf, "EVH_WAKEUP_REASON:0x%x:0x%x,0x%x,0x%x\n", reg, buf[0], buf[1], buf[2]);&lt;BR /&gt;Serial.print(pbuf);&lt;/P&gt;&lt;P&gt;reg = read_TPL2(0x1, 0x0, 1, EVH_GENERAL_ERR_STAT, 0x0);&lt;BR /&gt;sprintf(pbuf, "EVH_GENERAL_ERR_STAT:0x%x:0x%x,0x%x,0x%x\n", reg, buf[0], buf[1], buf[2]);&lt;BR /&gt;Serial.print(pbuf);&lt;BR /&gt;delay(50);&lt;BR /&gt;reg = read_TPL2(0x1, 0x0, 1, EVH_MCUIF_ERR_STAT, 0x0);&lt;BR /&gt;sprintf(pbuf, "EVH_MCUIF_ERR_STAT:0x%x:0x%x,0x%x,0x%x\n", reg, rbuf[0], rbuf[1], rbuf[2]);&lt;BR /&gt;Serial.print(pbuf);&lt;/P&gt;&lt;P&gt;sprintf(pbuf, "------------------CMC_INIT---------------\n");&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Serial.print(pbuf);&lt;BR /&gt;#if 1&lt;BR /&gt;reg = read_TPL2(0x1, 0x0, 1, SCHED_STAT, 0x0);&lt;BR /&gt;sprintf(pbuf, "SCHED_STAT:0x%x:0x%x,0x%x,0x%x\n", reg, buf[0], buf[1], buf[2]);&lt;BR /&gt;Serial.print(pbuf);&lt;BR /&gt;write_TPL2(0x1,0x0,0x1,SCHED_CMD,0x1004);&lt;BR /&gt;delay(50);&lt;BR /&gt;nop_TPL2(0x1,0x0,0xCAFE);&lt;BR /&gt;delay(50);&lt;BR /&gt;write_TPL2(0x1,0x0,0x1,SCHED_CMD,0x0006);&lt;BR /&gt;delay(50);&lt;BR /&gt;nop_TPL2(0x1,0x0, 0xCAFE);&lt;BR /&gt;write_TPL2(0x1,0x0,0x1,SCHED_EVENT,0x0001);&lt;BR /&gt;delay(50);&lt;BR /&gt;write_TPL2(0x1,0x0,0x1,SCHED_CMD,0x0008);&lt;BR /&gt;delay(50);&lt;BR /&gt;write_TPL2_2(0x0,0x1,0x0,MC33772C_INIT,0x2);&lt;BR /&gt;delay(50);&lt;/P&gt;&lt;P&gt;write_TPL2_2(0x0,0x1,0x0,MC33772C_INIT,0x3);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;delay(20);;&lt;/P&gt;&lt;P&gt;reg = read_TPL2(0x1, 0x0, 1, SYS_VERSION, 0x0);&lt;BR /&gt;sprintf(pbuf, "SYS_VERSION:0x%x:0x%x,0x%x,0x%x\n", reg, buf[0], buf[1], buf[2]);&lt;BR /&gt;Serial.print(pbuf);&lt;BR /&gt;&lt;BR /&gt;delay(20);&lt;/P&gt;&lt;P&gt;reg = read_TPL2(0x1, 0x0, 1, EVH_MCUIF_ERR_STAT, 0x0);&lt;BR /&gt;sprintf(pbuf, "EVH_MCUIF_ERR_STAT:0x%x:0x%x,0x%x,0x%x\n", reg, rbuf[0], rbuf[1], rbuf[2]);&lt;BR /&gt;Serial.print(pbuf);&lt;BR /&gt;delay(10);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;did a global write with 0x11 instead of local write 0x10 for the CID/INIT register. Will update more once I get it completely working&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 01:04:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Embedded-Software-and-Tools/ScriptGUI-V3-40-V3-30-script-not-running-MC33664A-MC33665A/m-p/1828905#M468</guid>
      <dc:creator>m_karthikeyan</dc:creator>
      <dc:date>2024-03-15T01:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: ScriptGUI V3.40 / V3.30 script not running. [MC33664A,MC33665A,MC33771C,MC33772C,MC33775A,MC3377</title>
      <link>https://community.nxp.com/t5/Embedded-Software-and-Tools/ScriptGUI-V3-40-V3-30-script-not-running-MC33664A-MC33665A/m-p/1829158#M469</link>
      <description>&lt;P&gt;From the information provided it's impossible to know whats going on!&lt;/P&gt;
&lt;P&gt;This is the CANtrace you provided. I can not see how you startup the system!&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;06A2h -&amp;gt; PinID 4

65 6864.064 DT 06A2 Rx 6 01 11 90 01 61 70      Rsp48: 0.0.01 #06 MC33665_SYS_VERSION 0111h
66 6916.596 DT 0622 Rx 6 00 00 32 01 11 1B      Rd48: 0.0.01 MC33665_EVH_GENERAL_ERR_STAT 0
67 6916.797 DT 06A2 Rx 6 00 00 B2 01 71 43      Rsp48: 0.0.01 #07 MC33665_EVH_GENERAL_ERR_STAT 0000
68 6969.471 DT 0622 Rx 6 00 00 34 01 11 3F      Rd48: 0.0.01 MC33665_EVH_TPL0_ERR_STAT 0
69 6969.673 DT 06A2 Rx 6 00 04 B4 01 81 35      Rsp48: 0.0.01 #08 MC33665_EVH_TPL0_ERR_STAT 0004h
70 7022.266 DT 0622 Rx 6 00 00 33 01 11 15      Rd48: 0.0.01 MC33665_EVH_MCUIF_ERR_STAT 0
71 7022.466 DT 06A2 Rx 6 00 00 B3 01 91 3B      Rsp48: 0.0.01 #09 MC33665_EVH_MCUIF_ERR_STAT 0000h
72 7075.077 DT 0622 Rx 6 00 00 38 01 11 77      Rd48: 0.0.01 MC33665_EVH_ACC_ERR 0
73 7075.283 DT 06A2 Rx 6 00 00 B8 01 A1 84      Rsp48: 0.0.01 #10 MC33665_EVH_ACC_ERR 0000h
74 7127.782 DT 0622 Rx 6 00 00 30 02 15 AF      Rd48: 0.1.02 MC33772C_MEAS_ISENSE1 0
75 7180.216 DT 0622 Rx 6 00 00 32 02 15 B3      Rd48: 0.1.02 MC33772C_MEAS_STACK 0
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;As said ealier you first have to configure the 665 gateway device! &lt;/P&gt;
&lt;P&gt;For example you &lt;STRONG&gt;FIRST&lt;/STRONG&gt; need to configure the ports! The default configuration use TPL3 protocol, but you need to configure for TPL2 protocol. If you use &lt;FONT face="arial,helvetica,sans-serif"&gt;Port #0 -&amp;gt;&lt;STRONG&gt; SYS_PORT0_CFG&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Q_man_0-1710487925116.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/268617i3E40BC078BC98400/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Q_man_0-1710487925116.png" alt="Q_man_0-1710487925116.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Next would be to assign the CID&amp;nbsp; and to check if successful:&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;# schedule sync by cmd 
Wr48: 0.0.01 MC33665_SCHED_CMD  1004h
Nop48: 0.1.63  00h CAFEh
Wr48: 0.0.01  MC33665_SCHED_CMD 0006h
Nop48: 0.{cadd}.63  01h CAFEh
# trigger sync
Wr48: 0.0.01 MC33665_SCHED_EVENT 0001h

Wr48: 0.0.01  MC33665_SCHED_CMD 0008h
# wait 0.75ms x num nodes 
# assign
Wr48: 0.1.00  MC33772C_INIT 2
Wr48: 0.1.00  MC33772C_INIT 3
	
# check
Rd48: 0.1.02  MC33772C_INIT 1
Rd48: 0.1.03  MC33772C_INIT 1
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 07:41:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Embedded-Software-and-Tools/ScriptGUI-V3-40-V3-30-script-not-running-MC33664A-MC33665A/m-p/1829158#M469</guid>
      <dc:creator>Q_man</dc:creator>
      <dc:date>2024-03-15T07:41:51Z</dc:date>
    </item>
  </channel>
</rss>

