<?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>CodeWarrior Development Tools中的主题 kit9z1j638evm problem</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/kit9z1j638evm-problem/m-p/1008315#M8063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a kit9z1j638evm board. I can't download demo program with usbddm all the time. The prompt is BDM command ack missing.&lt;/P&gt;&lt;H1 class="" style="color: #ffffff; background-color: #ffffff; font-weight: bold; font-size: 2.6705em;"&gt;KIT9Z1.J638EVM&lt;/H1&gt;&lt;H1 class="" style="color: #ffffff; background-color: #ffffff; font-weight: bold; font-size: 2.6705em;"&gt;KIT9Z1J638EVM&lt;/H1&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Mar 2020 08:00:40 GMT</pubDate>
    <dc:creator>964839564</dc:creator>
    <dc:date>2020-03-10T08:00:40Z</dc:date>
    <item>
      <title>kit9z1j638evm problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/kit9z1j638evm-problem/m-p/1008315#M8063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a kit9z1j638evm board. I can't download demo program with usbddm all the time. The prompt is BDM command ack missing.&lt;/P&gt;&lt;H1 class="" style="color: #ffffff; background-color: #ffffff; font-weight: bold; font-size: 2.6705em;"&gt;KIT9Z1.J638EVM&lt;/H1&gt;&lt;H1 class="" style="color: #ffffff; background-color: #ffffff; font-weight: bold; font-size: 2.6705em;"&gt;KIT9Z1J638EVM&lt;/H1&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 08:00:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/kit9z1j638evm-problem/m-p/1008315#M8063</guid>
      <dc:creator>964839564</dc:creator>
      <dc:date>2020-03-10T08:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: kit9z1j638evm problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/kit9z1j638evm-problem/m-p/1008316#M8064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Its probably an issue with the RESET. The Analog Die Watchdog might reset the device every 250ms (if not previously) disabled.&lt;/P&gt;&lt;P&gt;there are two proposals:&lt;/P&gt;&lt;P&gt;- open the S1-1 to disconnect the RESET_A from RESET (for programming)&lt;/P&gt;&lt;P&gt;&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/101752i11AA7E51D23B57DF/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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;- or use a capacitor to "filter" the resets&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/101962i6DE70FE943730FDE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ladislav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2020 15:23:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/kit9z1j638evm-problem/m-p/1008316#M8064</guid>
      <dc:creator>lama</dc:creator>
      <dc:date>2020-03-12T15:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: kit9z1j638evm problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/kit9z1j638evm-problem/m-p/1008317#M8065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi lama,&lt;/P&gt;&lt;P&gt;i can flash program by following your step,but cannot debug,&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;The prompt is&amp;nbsp;&lt;/SPAN&gt;Failed to resume target process.&lt;BR /&gt;Downloading binary to target. how should i do?&lt;/P&gt;&lt;P&gt;thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2020 01:59:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/kit9z1j638evm-problem/m-p/1008317#M8065</guid>
      <dc:creator>964839564</dc:creator>
      <dc:date>2020-03-13T01:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: kit9z1j638evm problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/kit9z1j638evm-problem/m-p/1008318#M8066</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;Do you use your own or example project?&lt;/P&gt;&lt;P&gt;Please, could you share the whole error message (I assume that is different than the first one)?&lt;/P&gt;&lt;P&gt;Have you tried to program MCU via OSBDM such as is described in Quick Start Guide (just connect the USB cable to J3 and PC)?&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/quick-reference-guide/KT9Z1J638QSG.pdf" title="https://www.nxp.com/docs/en/quick-reference-guide/KT9Z1J638QSG.pdf"&gt;https://www.nxp.com/docs/en/quick-reference-guide/KT9Z1J638QSG.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2020 10:32:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/kit9z1j638evm-problem/m-p/1008318#M8066</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2020-03-23T10:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: kit9z1j638evm problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/kit9z1j638evm-problem/m-p/1008319#M8067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Diana,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now,i use my board&amp;nbsp; to measure voltage and current,but&amp;nbsp;its value are increase all the time.Is there something wrong with my schematic or my program(KT9Z1_638_CAN_demo).&lt;span class="lia-inline-image-display-wrapper" image-alt="Design1.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41367i6F0A5A8A8B7E34BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Design1.PNG" alt="Design1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="KT9Z1_638_CAN_DEMO.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41432i530036B4731921DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="KT9Z1_638_CAN_DEMO.PNG" alt="KT9Z1_638_CAN_DEMO.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;H YW&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 08:02:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/kit9z1j638evm-problem/m-p/1008319#M8067</guid>
      <dc:creator>964839564</dc:creator>
      <dc:date>2020-04-22T08:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: kit9z1j638evm problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/kit9z1j638evm-problem/m-p/1008320#M8068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue could be related to your SW. Could you share your main.c?&lt;/P&gt;&lt;P&gt;The VSensor[3] &amp;nbsp;signal is NOT automatically VSENSE3 voltage.&lt;/P&gt;&lt;P&gt;If your code cannot be shared publicly you can create a support ticket:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/support/support:SUPPORTHOME" title="https://www.nxp.com/support/support:SUPPORTHOME"&gt;Support | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Apr 2020 12:21:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/kit9z1j638evm-problem/m-p/1008320#M8068</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2020-04-27T12:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: kit9z1j638evm problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/kit9z1j638evm-problem/m-p/1008321#M8069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;// --------------------------------------------------------------------&lt;BR /&gt;// Copyright (c) 2015, NXP Semiconductors.&lt;BR /&gt;// All rights reserved.&lt;BR /&gt;// &lt;BR /&gt;// Redistribution and use in source and binary forms, with or without modification,&lt;BR /&gt;// are permitted provided that the following conditions are met:&lt;BR /&gt;// &lt;BR /&gt;// o Redistributions of source code must retain the above copyright notice, this list&lt;BR /&gt;// of conditions and the following disclaimer.&lt;BR /&gt;// &lt;BR /&gt;// o Redistributions in binary form must reproduce the above copyright notice, this&lt;BR /&gt;// list of conditions and the following disclaimer in the documentation and/or&lt;BR /&gt;// other materials provided with the distribution.&lt;BR /&gt;// &lt;BR /&gt;// o Neither the name of NXP Semiconductors nor the names of its&lt;BR /&gt;// contributors may be used to endorse or promote products derived from this&lt;BR /&gt;// software without specific prior written permission.&lt;BR /&gt;// &lt;BR /&gt;// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND&lt;BR /&gt;// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED&lt;BR /&gt;// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE&lt;BR /&gt;// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR&lt;BR /&gt;// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES&lt;BR /&gt;// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;&lt;BR /&gt;// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON&lt;BR /&gt;// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT&lt;BR /&gt;// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS&lt;BR /&gt;// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.&lt;BR /&gt;// --------------------------------------------------------------------&lt;BR /&gt;// Please find the software documentation: \docu\documentation.htm &lt;BR /&gt;// --------------------------------------------------------------------&lt;BR /&gt;#include "main.h"&lt;BR /&gt;#include "drv638.h" // driver for MM9Z1-638&lt;BR /&gt;#include "nvm.h" // nvm driver&lt;BR /&gt;#include &amp;lt;stdio.h&amp;gt; // sprintf&lt;BR /&gt;#include "kt9z1_638_evm.h"&lt;BR /&gt;#include "ntc.h"&lt;BR /&gt;#include "msCANdrv.h" &lt;BR /&gt;//---------------------------------------------------------------------&lt;BR /&gt;#define TSENSE_EXT CH_T_PTB0 //!&amp;lt; external T-sensor is connected to PTBx&lt;BR /&gt;extern TYPE_NTC_CONVERT NTCconvert; //!&amp;lt; lookup table for NTC&lt;BR /&gt;//---------------------------------------------------------------------&lt;BR /&gt;/*! \brief Structure for Clock configuration for CAN demo&lt;/P&gt;&lt;P&gt;- use external oscillator (4.000MHz) as reference clock (divide by 4)&lt;BR /&gt;- target VCO clock: 50.000MHz&lt;BR /&gt;- target core clock: 50.000MHz&lt;BR /&gt;- target bus clock : 25.000MHz&lt;BR /&gt;- target D2D clock : 25.000MHz&lt;BR /&gt; */&lt;BR /&gt;TYPE_CPMU_CONF const ClockConf = {&lt;BR /&gt; ClockSrc_EXT, &lt;BR /&gt; VCO_RANGE, &lt;BR /&gt; SYNR(CLOCK_VCO, CLOCK_REF),&lt;BR /&gt; REFCLK_FREQ_1_2_MHZ_RANGE, // Ref is IRC = 1.000MHz&lt;BR /&gt; REFDIV(4), // Refdivider div = 4 (4MHz quarz)&lt;BR /&gt;// REFDIV(16), // Refdivider div = 16 (16MHz quarz)&lt;BR /&gt; POSTDIV(CLOCK_VCO, CLOCK_BUS),&lt;BR /&gt; PLL_FREQ_MOD_0_PERCENT,&lt;BR /&gt; PCRPRE(CLOCK_D2D), // PCR prescaler&lt;BR /&gt; D2DDIV(CLOCK_BUS, CLOCK_D2D)&lt;BR /&gt;};&lt;BR /&gt;// --------------------------------------------------------------------&lt;BR /&gt;//! \brief TSENSE list of channels to convert...&lt;BR /&gt;TYPE_TSENSE_LIST const tList[] = {&lt;BR /&gt; // ch , avg, latency&lt;BR /&gt; CH_TSENSE_ITS , 1, 6, //!&amp;lt; measure internal chip temperature&lt;BR /&gt; TSENSE_EXT , 1, 6 //!&amp;lt; measure external temperature sensor (NTC)&lt;BR /&gt;};&lt;BR /&gt;const u8 tListEntries = sizeof(tList)/sizeof(TYPE_TSENSE_LIST); //!&amp;lt; number of entries in the list above&lt;BR /&gt;static u16 tValues[sizeof(tList)/sizeof(TYPE_TSENSE_LIST)]; //!&amp;lt; RAM buffer for the TSENSE module&lt;BR /&gt;// --------------------------------------------------------------------&lt;BR /&gt;//! \brief VSENSE list of channels to convert...&lt;BR /&gt;TYPE_VSENSE_LIST const vList[] = {&lt;BR /&gt;// ch , avg , latency &lt;BR /&gt; CH_VSENSE2 , 1, 12, &lt;BR /&gt; CH_VSENSE1 , 1, 12, &lt;BR /&gt; CH_VSENSE0 , 1, 12, &lt;BR /&gt; CH_VSENSE3 , 1, 12 &lt;BR /&gt;};&lt;BR /&gt;const u8 vListEntries = sizeof(vList)/sizeof(TYPE_VSENSE_LIST); //!&amp;lt; number of entries in the list above &lt;BR /&gt;static u16 vValues[sizeof(vList)/sizeof(TYPE_VSENSE_LIST)]; //!&amp;lt; RAM buffer for the VSENSE module&lt;BR /&gt;// --------------------------------------------------------------------&lt;BR /&gt;//! \brief CSENSE list of channels to convert...&lt;BR /&gt;TYPE_CSENSE_LIST const cList[] = {&lt;BR /&gt;// ch , avg , latency&lt;BR /&gt; CH_CSENSE , 1 , 0&lt;BR /&gt;};&lt;BR /&gt;const u8 cListEntries = sizeof(cList)/sizeof(TYPE_CSENSE_LIST); //!&amp;lt; number of entries in the list above&lt;BR /&gt;static s32 cValues[sizeof(cList)/sizeof(TYPE_CSENSE_LIST)]; //!&amp;lt; RAM buffer for the TSENSE module&lt;BR /&gt;// --------------------------------------------------------------------&lt;BR /&gt;// PTA0 is connected to MC33901 STB pin&lt;BR /&gt;#define STANDBYMODE (1) //!&amp;lt; CAN standby signal&lt;BR /&gt;#define NORMALMODE (0) //!&amp;lt; CAN standby signal&lt;BR /&gt;#define CAN_STDBY(v) {DDRA_DDRA0 = 1; PTA_PTA0 = (v);} //!&amp;lt; CAN standby signal &lt;BR /&gt;// --------------------------------------------------------------------&lt;BR /&gt;// --------------------------------------------------------------------&lt;BR /&gt;// --------------------------------------------------------------------&lt;BR /&gt;void main(void) {&lt;BR /&gt; u16 TSensor[tListEntries];&lt;BR /&gt; u16 VSensor[vListEntries]; &lt;BR /&gt; s32 CSensor[cListEntries];&lt;BR /&gt; &lt;BR /&gt; u16 temp = 0;&lt;/P&gt;&lt;P&gt;TYPE_CAN_IBS_Dummy CAN_IBS_Dummy;&lt;BR /&gt; TYPE_CAN_IBS_Data CAN_IBS_Data;&lt;BR /&gt; TYPE_CAN_IBS_CONTROL CAN_IBS_Control;&lt;BR /&gt; MSCAN_TYPE_ERROR_CODE err_status; // To store the return value of the driver APIs.&lt;BR /&gt; MSCAN_TYPE_STATUS mbStat; &lt;BR /&gt; u8 CAN_status[3]; // CAN_status to store channel status,byte 0 store CANCTL0, byte 1 store CANCTL1, byte 2 store CANRFLG&lt;BR /&gt; Bool WriteSystemCalibrationValues = FALSE; // do not change !!!&lt;/P&gt;&lt;P&gt;// LEDs &lt;BR /&gt;// LEDModeInit();&lt;BR /&gt;// LEDRxInit();&lt;BR /&gt; LED3Init();&lt;BR /&gt; &lt;BR /&gt; SYS_Init();&lt;BR /&gt; CPMUInit(&amp;amp;ClockConf);&lt;BR /&gt; D2DInit((TYPE_D2DCLKDIV) ClockConf.D2dDiv); &lt;BR /&gt; XirqEnable(); // enable XIRQ -&amp;gt; isrD2DErr() "write-once" &lt;BR /&gt; if (B_PCR_CTL_OPM &amp;amp; 2) { // Check if Wake Up from Sleep mode (see page RM3.0 110 Intermediate Mode)&lt;BR /&gt; B_PCR_CTL = OPM_SET_NORMAL; // set normal mode&lt;BR /&gt; while (!(B_PCR_SRH_WLPMF )) DO_NOTHING; // Wait for Clock Domain Change //! \todo where is this described?&lt;BR /&gt; }else{&lt;BR /&gt; if(!B_PCR_SR_HWRF) {&lt;BR /&gt; PCRReset(); // generate a HWR reset to ensure analog die is in defined state! E.g. debugging might cause strange effects in case bits are set from before // &lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; B_WD_CTL = WD_OFF; &lt;BR /&gt; PCRInit(ClockConf.PCRprescaler);&lt;BR /&gt; SYSStartupTrimming();&lt;BR /&gt; //! \brief Set a breakpoint to this line and change the variable WriteSystemCalibrationValues to TRUE in the debugger to write values \ref CalibWrite &lt;BR /&gt; if(WriteSystemCalibrationValues) { // hook to manually write system calibration values to eeprom during sw development&lt;BR /&gt; CalibWriteManual();&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; if(CalibRead()==FALSE) { // reads system calibration data from EEPROM (if avaliable). needs to be before ADCInit()&lt;BR /&gt; CalibDefault(); // otherwise use default values &lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; ADCInit();&lt;BR /&gt; &lt;BR /&gt; VsenseInit(&amp;amp;(vList[0]), &amp;amp;vListEntries, &amp;amp;(vValues[0]));&lt;BR /&gt; CsenseInit(&amp;amp;(cList[0]), &amp;amp;cListEntries, &amp;amp;(cValues[0]));&lt;BR /&gt; //TsenseInit(&amp;amp;(tList[0]), &amp;amp;tListEntries, &amp;amp;(tValues[0])); &lt;BR /&gt; &lt;BR /&gt; //GPIOInit();&lt;BR /&gt; CAN_STDBY(NORMALMODE); //&lt;/P&gt;&lt;P&gt;// IBS data frame&lt;BR /&gt; CAN_IBS_Data.u8Len = 8;&lt;BR /&gt; CAN_IBS_Data.u16Volt = 0x00;//u16Swap(0x1234)&lt;BR /&gt; CAN_IBS_Data.s32Curr = 0x00; //u32Swap(0)&lt;BR /&gt; CAN_IBS_Data.u8CTemp = 0x00;&lt;BR /&gt; &lt;BR /&gt; // IBS dummy frame&lt;BR /&gt; CAN_IBS_Dummy.u8Len = 2;&lt;BR /&gt; CAN_IBS_Dummy.u16Var = u16Swap(0x1234);&lt;/P&gt;&lt;P&gt;// IBS control frame&lt;BR /&gt; CAN_IBS_Control.u8Len = 2;&lt;BR /&gt; &lt;BR /&gt; err_status = Init_CAN(CAN0, FAST); //CMPTX FAST //Initialization msCAN channel 0, FAST means the reset won't wait until current transmit completed &lt;BR /&gt; do{ &lt;BR /&gt; err_status = Check_CAN_Status(CAN0, CAN_status);&lt;BR /&gt; }while ((CAN_status[0] &amp;amp; SYNCH) == 0); //Wait for msCAN channel 0 synchronized to CAN Bus&lt;BR /&gt; err_status = Config_CAN_MB (CAN0, CANBUF1, TXDF, CAN_MO1); //configure the msCAN channel 0, buffer 1 to be TXDF mode (transmit dataframe) -&amp;gt; message object 1,see details in "MSCANID.h"&lt;BR /&gt; err_status = Config_CAN_MB (CAN0, CANBUF2, TXDF, CAN_MO2); //configure the msCAN channel 0, buffer 2 to be TXDF mode (transmit dataframe) -&amp;gt; message object 2 &lt;BR /&gt; err_status = Config_CAN_MB (CAN0, CANBUF3, RXDF, CAN_MO3); //configure the msCAN channel 0, buffer 3 to be RXDF mode (receive dataframe) -&amp;gt; message object 3 &lt;BR /&gt; &lt;BR /&gt;// LEDModeOn();&lt;BR /&gt; RTIInit();&lt;BR /&gt; RTIEnable();&lt;BR /&gt; IrqEnable();&lt;/P&gt;&lt;P&gt;for EVER {&lt;BR /&gt; &lt;BR /&gt; if(RTIEvery100ms()) { //&lt;BR /&gt; CAN_IBS_Data.u16Volt = u16Swap(VSensor[3]); // scale to mV &lt;BR /&gt; CAN_IBS_Data.s32Curr = u32Swap(CSensor[0]); //CSensor[0]&lt;BR /&gt; err_status = Load_CAN_MB(CAN0, CANBUF1, CAN_IBS_Data.byte); &lt;BR /&gt; err_status = Transmit_CAN_MB(CAN0, CANBUF1);&lt;BR /&gt; LED3Tog();&lt;BR /&gt; temp++;&lt;BR /&gt; &lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;// TsenseHandler(); // temperature needs to be done polling (V,I interrupt driven)&lt;/P&gt;&lt;P&gt;//! Measurement results&lt;BR /&gt; (void) CsenseGetValue(CH_CSENSE, &amp;amp;CSensor[0]);&lt;BR /&gt; (void) VsenseGetValue(CH_VSENSE3, &amp;amp;VSensor[3]);&lt;/P&gt;&lt;P&gt;/* if(VsenseGetValue(CH_VSENSE3, &amp;amp;VSensor[3])) { // if 3rd channel is converted then first 3 are done&lt;BR /&gt; (void) TsenseGetValue(CH_TSENSE_ITS, &amp;amp;TSensor[0]); // check for new results ITS &lt;BR /&gt; (void) TsenseGetValue(CH_T_PTB0, &amp;amp;TSensor[1]); // check for new results PTB4 &lt;BR /&gt; (void) VsenseGetValue(CH_VSENSE0, &amp;amp;VSensor[0]); // check for new results&lt;BR /&gt; (void) VsenseGetValue(CH_VSENSE1, &amp;amp;VSensor[1]); // check for new results&lt;BR /&gt; (void) VsenseGetValue(CH_VSENSE2, &amp;amp;VSensor[2]); // check for new results&lt;BR /&gt; }*/&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; // read message object .....读CAN数据&lt;BR /&gt;/* err_status = Check_CAN_MB_Status(CAN0, CANBUF3, &amp;amp;mbStat);&lt;BR /&gt; if(mbStat.Status == NEWDATA) { // Wait for the Receive ISR to finish and change the buffer status, NEWDATA indicates that the buffer has receive a new data&lt;BR /&gt; &lt;BR /&gt; err_status = Read_CAN_MB_Data(CAN0, CANBUF3, CAN_IBS_Control.byte);//Copy the received data in msCAN channel 0 buffer 2 to data_rec; &lt;BR /&gt; CAN_IBS_Control.u16Var = u16Swap(CAN_IBS_Control.u16Var);&lt;BR /&gt; mbStat.Status = NODATA; // Clear buffer_status[0]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; if(CAN_IBS_Control.u16Var&amp;amp;0x8000) { // Goto Sleep Request&lt;BR /&gt; // goto sleep&lt;BR /&gt; err_status = Sleep_CAN(CAN0, CMPTX); // request CAN channel 0 go to sleep with completing transmission scheduled&lt;/P&gt;&lt;P&gt;do {&lt;BR /&gt; err_status = Check_CAN_Status(CAN0,CAN_status); // read the channel 0 status&lt;BR /&gt; }while (!(CAN_status[1]&amp;amp;SLPAK)); // wait till SLPAK bit set&lt;BR /&gt; &lt;BR /&gt; }&lt;BR /&gt; }*/&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;// ---------------------------------------------------------------------&lt;BR /&gt;/*! \brief Initialises GPIO PTBx pins&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Configuration used for the KT9Z1_638_CAN_Demo:&amp;lt;/b&amp;gt;&lt;BR /&gt; &lt;BR /&gt;| Pin | Enabled | Direction | Routing | used for |&lt;BR /&gt;|:----------:|:--------:|:---------:|:-------:|------------------------------------|&lt;BR /&gt;| PTB0 | - | - | | analog input |&lt;BR /&gt;| PTB1 | disabled | n.a. | | not used |&lt;BR /&gt;| PTB2 | disabled | n.a. | | not used |&lt;BR /&gt;| PTB3 | disabled | n.a. | | not used |&lt;BR /&gt;| PTB4 | enabled | input | PTWU | CAN PHY wake up input |&lt;BR /&gt;| PTB5/GNDSW | - | - | - | GND switch for TSENSE_EXT | &lt;BR /&gt; &lt;BR /&gt; */&lt;BR /&gt;void GPIOInit(void) {&lt;/P&gt;&lt;P&gt;B_GPIO_CTL = GPIO_CTL_PTB1_DISABLE;&lt;BR /&gt; B_GPIO_CTL = GPIO_CTL_PTB2_DISABLE;&lt;BR /&gt; B_GPIO_CTL = GPIO_CTL_PTB3_DISABLE;&lt;/P&gt;&lt;P&gt;B_GPIO_CTL = GPIO_CTL_PTB4_ENABLE; // PTB4 is used for CAN Wakeup &lt;BR /&gt; B_GPIO_IN4 = IN4_PTWU|IN4_NWUE; // enable WU in low power mode, negative edge &lt;BR /&gt;}&lt;BR /&gt;// --------------------------------------------------------------------&lt;BR /&gt;interrupt VectorNumber_Vcan0wkup void isrCANWakeup(void) {&lt;/P&gt;&lt;P&gt;CAN_Wakeup(CAN0);&lt;BR /&gt;}&lt;BR /&gt;// --------------------------------------------------------------------&lt;BR /&gt;interrupt VectorNumber_Vcan0err void isrCANErr(void) {&lt;/P&gt;&lt;P&gt;CAN_ERR(CAN0);&lt;BR /&gt;}&lt;BR /&gt;// --------------------------------------------------------------------&lt;BR /&gt;interrupt VectorNumber_Vcan0tx void isrCANTx(void) {&lt;/P&gt;&lt;P&gt;CAN_Transmit(CAN0);&lt;BR /&gt;}&lt;BR /&gt;// --------------------------------------------------------------------&lt;BR /&gt;interrupt VectorNumber_Vcan0rx void isrCANRx(void) {&lt;/P&gt;&lt;P&gt;CAN_Receive(CAN0);&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2020 01:48:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/kit9z1j638evm-problem/m-p/1008321#M8069</guid>
      <dc:creator>964839564</dc:creator>
      <dc:date>2020-05-07T01:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: kit9z1j638evm problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/kit9z1j638evm-problem/m-p/1008322#M8070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Wow, thank you so very much for your amazingly detailed reply!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ffffff; background-color: #ffffff; font-size: 11px;"&gt;&lt;A href="https://ggstreetview.com" style="color: #ffffff;"&gt;google street view&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 May 2020 02:07:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/kit9z1j638evm-problem/m-p/1008322#M8070</guid>
      <dc:creator>plantifulansoul</dc:creator>
      <dc:date>2020-05-23T02:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: kit9z1j638evm problem</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/kit9z1j638evm-problem/m-p/1008323#M8071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm very sorry for the delay. Have you solved your issue?&lt;/P&gt;&lt;P&gt;I'm discussing this with the expert on the&amp;nbsp;MM9Z1_638&lt;/P&gt;&lt;P&gt;The SW seems ok.&lt;/P&gt;&lt;UL style="margin-top: 0in;"&gt;&lt;LI&gt;TsenseHandler should be active, such that the device can perform compensation (needs to know the ITS = chip temperature)&lt;/LI&gt;&lt;LI&gt;Maybe you can enable the TsenseHandler and perform some measurements and send us that data?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2020 09:31:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/kit9z1j638evm-problem/m-p/1008323#M8071</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2020-05-25T09:31:55Z</dc:date>
    </item>
  </channel>
</rss>

