<?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>Kinetis Software Development Kit中的主题 I2C Slave plus Hardware timer in FRDM-K64F</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403244#M1576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a FRDM-K64F kit and I'm using Kinetis Design Studio 2.0 with Kinetis SDK 1.1.0&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to attach examples i2c_comm + hwtimer_demo, but there is a problem with hardware timer initialization. When I call the function &lt;EM&gt;HWTIMER_SYS_Init()&lt;/EM&gt;, the firmware gets stuck.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;int main(void) { &amp;nbsp;&amp;nbsp;&amp;nbsp; i2c_slave_state_t slave;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; i2cData_t i2cData = &amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .subAddress = Invalid_Subaddress_Index, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .data = 0, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .state = CMD_MODE &amp;nbsp;&amp;nbsp;&amp;nbsp; };&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; i2c_slave_user_config_t userConfig = &amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .address = 0x3A, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .slaveListening = true, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .slaveCallback&amp;nbsp; = i2c_slave_event_callback_passive, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .callbackParam&amp;nbsp; = &amp;amp;i2cData, #if FSL_FEATURE_I2C_HAS_START_STOP_DETECT &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .startStopDetect&amp;nbsp; = false, #endif #if FSL_FEATURE_I2C_HAS_STOP_DETECT &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .stopDetect&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = false, #endif &amp;nbsp;&amp;nbsp;&amp;nbsp; };&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Low Power Configuration &amp;nbsp;&amp;nbsp;&amp;nbsp; smc_power_mode_config_t smcConfig; &amp;nbsp;&amp;nbsp;&amp;nbsp; smc_power_mode_protection_config_t smcProtConfig;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Init struct &amp;nbsp;&amp;nbsp;&amp;nbsp; memset(&amp;amp;smcConfig, 0, sizeof(smcConfig)); &amp;nbsp;&amp;nbsp;&amp;nbsp; memset(&amp;amp;smcProtConfig, 0, sizeof(smcProtConfig));&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; hardware_init(); &amp;nbsp;&amp;nbsp;&amp;nbsp; dbg_uart_init(); &amp;nbsp;&amp;nbsp;&amp;nbsp; configure_i2c_pins(BOARD_I2C_COMM_INSTANCE); &amp;nbsp;&amp;nbsp;&amp;nbsp; OSA_Init(); &amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO_DRV_Init(0, ledPins);&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Initiate I2C instance module &amp;nbsp;&amp;nbsp;&amp;nbsp; I2C_DRV_SlaveInit(BOARD_I2C_COMM_INSTANCE, &amp;amp;userConfig, &amp;amp;slave);&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; printf("\r\n====== I2C Slave ======\r\n\r\n");&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // turn LED_slave on to indicate I2C slave status is waiting for date receiving &amp;nbsp;&amp;nbsp;&amp;nbsp; LED_turnon_slave(); &amp;nbsp;&amp;nbsp;&amp;nbsp; LED_turnoff_master(); &amp;nbsp;&amp;nbsp;&amp;nbsp; //OSA_TimeDelay(50);&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; printf("\r\n I2C slave enters low power mode...\r\n");&amp;nbsp; &amp;nbsp; // Hwtimer initialization &amp;nbsp; if (kHwtimerSuccess != HWTIMER_SYS_Init(&amp;amp;hwtimer, &amp;amp;HWTIMER_LL_DEVIF, HWTIMER_LL_ID, 5, NULL)) &amp;nbsp; { &amp;nbsp; printf("\r\nError: hwtimer initialization.\r\n"); &amp;nbsp; } &amp;nbsp; if (kHwtimerSuccess != HWTIMER_SYS_SetPeriod(&amp;amp;hwtimer, HWTIMER_LL_SRCCLK, HWTIMER_PERIOD)) &amp;nbsp; { &amp;nbsp; printf("\r\nError: hwtimer set period.\r\n"); &amp;nbsp; } &amp;nbsp; if (kHwtimerSuccess != HWTIMER_SYS_RegisterCallback(&amp;amp;hwtimer, hwtimer_callback, NULL)) &amp;nbsp; { &amp;nbsp; printf("\r\nError: hwtimer callback registration.\r\n"); &amp;nbsp; } &amp;nbsp; if (kHwtimerSuccess != HWTIMER_SYS_Start(&amp;amp;hwtimer)) &amp;nbsp; { &amp;nbsp; printf("\r\nError: hwtimer start.\r\n"); &amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // LED_slave is still on during low power mode until I2C master send data to slave. &amp;nbsp;&amp;nbsp;&amp;nbsp; // Turn off LED_slave to indicate MCU wake up by I2C address matching interrupt &amp;nbsp;&amp;nbsp;&amp;nbsp; LED_turnoff_slave(); &amp;nbsp;&amp;nbsp;&amp;nbsp; //printf("\r\n I2C slave wakes up from low power mode by I2C address matching.\r\n"); &amp;nbsp;&amp;nbsp;&amp;nbsp; printf("Initialization OK\n");&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; while(1) &amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp; } }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 May 2015 22:38:17 GMT</pubDate>
    <dc:creator>viniciusmaciel</dc:creator>
    <dc:date>2015-05-05T22:38:17Z</dc:date>
    <item>
      <title>I2C Slave plus Hardware timer in FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403244#M1576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a FRDM-K64F kit and I'm using Kinetis Design Studio 2.0 with Kinetis SDK 1.1.0&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to attach examples i2c_comm + hwtimer_demo, but there is a problem with hardware timer initialization. When I call the function &lt;EM&gt;HWTIMER_SYS_Init()&lt;/EM&gt;, the firmware gets stuck.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;int main(void) { &amp;nbsp;&amp;nbsp;&amp;nbsp; i2c_slave_state_t slave;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; i2cData_t i2cData = &amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .subAddress = Invalid_Subaddress_Index, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .data = 0, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .state = CMD_MODE &amp;nbsp;&amp;nbsp;&amp;nbsp; };&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; i2c_slave_user_config_t userConfig = &amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .address = 0x3A, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .slaveListening = true, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .slaveCallback&amp;nbsp; = i2c_slave_event_callback_passive, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .callbackParam&amp;nbsp; = &amp;amp;i2cData, #if FSL_FEATURE_I2C_HAS_START_STOP_DETECT &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .startStopDetect&amp;nbsp; = false, #endif #if FSL_FEATURE_I2C_HAS_STOP_DETECT &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .stopDetect&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = false, #endif &amp;nbsp;&amp;nbsp;&amp;nbsp; };&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Low Power Configuration &amp;nbsp;&amp;nbsp;&amp;nbsp; smc_power_mode_config_t smcConfig; &amp;nbsp;&amp;nbsp;&amp;nbsp; smc_power_mode_protection_config_t smcProtConfig;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Init struct &amp;nbsp;&amp;nbsp;&amp;nbsp; memset(&amp;amp;smcConfig, 0, sizeof(smcConfig)); &amp;nbsp;&amp;nbsp;&amp;nbsp; memset(&amp;amp;smcProtConfig, 0, sizeof(smcProtConfig));&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; hardware_init(); &amp;nbsp;&amp;nbsp;&amp;nbsp; dbg_uart_init(); &amp;nbsp;&amp;nbsp;&amp;nbsp; configure_i2c_pins(BOARD_I2C_COMM_INSTANCE); &amp;nbsp;&amp;nbsp;&amp;nbsp; OSA_Init(); &amp;nbsp;&amp;nbsp;&amp;nbsp; GPIO_DRV_Init(0, ledPins);&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Initiate I2C instance module &amp;nbsp;&amp;nbsp;&amp;nbsp; I2C_DRV_SlaveInit(BOARD_I2C_COMM_INSTANCE, &amp;amp;userConfig, &amp;amp;slave);&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; printf("\r\n====== I2C Slave ======\r\n\r\n");&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // turn LED_slave on to indicate I2C slave status is waiting for date receiving &amp;nbsp;&amp;nbsp;&amp;nbsp; LED_turnon_slave(); &amp;nbsp;&amp;nbsp;&amp;nbsp; LED_turnoff_master(); &amp;nbsp;&amp;nbsp;&amp;nbsp; //OSA_TimeDelay(50);&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; printf("\r\n I2C slave enters low power mode...\r\n");&amp;nbsp; &amp;nbsp; // Hwtimer initialization &amp;nbsp; if (kHwtimerSuccess != HWTIMER_SYS_Init(&amp;amp;hwtimer, &amp;amp;HWTIMER_LL_DEVIF, HWTIMER_LL_ID, 5, NULL)) &amp;nbsp; { &amp;nbsp; printf("\r\nError: hwtimer initialization.\r\n"); &amp;nbsp; } &amp;nbsp; if (kHwtimerSuccess != HWTIMER_SYS_SetPeriod(&amp;amp;hwtimer, HWTIMER_LL_SRCCLK, HWTIMER_PERIOD)) &amp;nbsp; { &amp;nbsp; printf("\r\nError: hwtimer set period.\r\n"); &amp;nbsp; } &amp;nbsp; if (kHwtimerSuccess != HWTIMER_SYS_RegisterCallback(&amp;amp;hwtimer, hwtimer_callback, NULL)) &amp;nbsp; { &amp;nbsp; printf("\r\nError: hwtimer callback registration.\r\n"); &amp;nbsp; } &amp;nbsp; if (kHwtimerSuccess != HWTIMER_SYS_Start(&amp;amp;hwtimer)) &amp;nbsp; { &amp;nbsp; printf("\r\nError: hwtimer start.\r\n"); &amp;nbsp; } &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // LED_slave is still on during low power mode until I2C master send data to slave. &amp;nbsp;&amp;nbsp;&amp;nbsp; // Turn off LED_slave to indicate MCU wake up by I2C address matching interrupt &amp;nbsp;&amp;nbsp;&amp;nbsp; LED_turnoff_slave(); &amp;nbsp;&amp;nbsp;&amp;nbsp; //printf("\r\n I2C slave wakes up from low power mode by I2C address matching.\r\n"); &amp;nbsp;&amp;nbsp;&amp;nbsp; printf("Initialization OK\n");&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; while(1) &amp;nbsp;&amp;nbsp;&amp;nbsp; { &amp;nbsp;&amp;nbsp;&amp;nbsp; } }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 May 2015 22:38:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403244#M1576</guid>
      <dc:creator>viniciusmaciel</dc:creator>
      <dc:date>2015-05-05T22:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Slave plus Hardware timer in FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403245#M1577</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;More information that may help. Here is debugger trace function:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="debug_i2c.jpg"&gt;&lt;IMG alt="debug_i2c.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/49103i7C6BED441E4887DE/image-size/large?v=v2&amp;amp;px=999" title="debug_i2c.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The firmware gets stuck here:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14308704313617130" jivemacro_uid="_14308704313617130"&gt;
&lt;P&gt;DefaultISR:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; b DefaultISR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .size DefaultISR, . - DefaultISR&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:17:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403245#M1577</guid>
      <dc:creator>viniciusmaciel</dc:creator>
      <dc:date>2020-11-02T13:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Slave plus Hardware timer in FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403246#M1578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;I have test the "i2c_comm_slave_frdmk64" demo on my side ,it can work well .How about on your side .&lt;/P&gt;&lt;P&gt;On you project , where be mainly changed ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have suggestion:&lt;/P&gt;&lt;P&gt;(1) delete the ".matadate"&amp;nbsp; under workspace, then build , then test .&lt;/P&gt;&lt;P&gt;(2) Please trace into the function"&lt;EM&gt;HWTIMER_SYS_Init()&lt;/EM&gt;", check where made the code enter the unhandled interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If still can not work well , you can send your project to me , i will test it on my side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 08:31:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403246#M1578</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-05-06T08:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Slave plus Hardware timer in FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403247#M1579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that the CPU called an interrupt, but the corresponding ISR is not set.&lt;/P&gt;&lt;P&gt;Verify that you have a function for every interrupt you have enabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Giacomo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 14:31:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403247#M1579</guid>
      <dc:creator>giacomopetrini</dc:creator>
      <dc:date>2015-05-06T14:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Slave plus Hardware timer in FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403248#M1580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; line-height: 1.5;"&gt;The example &lt;/SPAN&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;EM&gt;i2c_comm_slave_frdmk64&lt;/EM&gt; works, but if I add the code &lt;EM&gt;hwtimer_demo_frdmk64f&lt;/EM&gt; inside it, it stops working. The reverse is also true,&amp;nbsp; &lt;EM&gt;hwtimer_demo_frdmk64f&lt;/EM&gt; works without i2c_slave code. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&lt;EM style=": ; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; line-height: 1.5;"&gt;(1) delete the ".matadate"&amp;nbsp; under workspace, then build , then test&lt;/EM&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; line-height: 1.5;"&gt; - Doing this still does not work.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; line-height: 1.5;"&gt;(2) The last line executed: INT_SYS_InstallHandler() at fsl_interrupt_manager.c:80 0x3b82&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1430960623560837 jive_text_macro" data-renderedposition="159.1999969482422_8_1233_32" jivemacro_uid="_1430960623560837"&gt;&lt;P&gt;/* Set handler into vector table */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __VECTOR_RAM[irqNumber + 16] = (uint32_t)handler;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;As said giacomopetrini, it's an interrupt problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My project: &lt;A href="https://drive.google.com/file/d/0B2MutwpMRshqTGdsZnY3T0ZTWUk/view?usp=sharing" rel="nofollow noopener noreferrer" title="https://drive.google.com/file/d/0B2MutwpMRshqTGdsZnY3T0ZTWUk/view?usp=sharing" target="_blank"&gt;i2c_comm.zip - Google Drive&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 01:14:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403248#M1580</guid>
      <dc:creator>viniciusmaciel</dc:creator>
      <dc:date>2015-05-07T01:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Slave plus Hardware timer in FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403249#M1581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vinicius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know why i can't get your project , please attach it on 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/6649iC24B428E50900624/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;&lt;SPAN&gt;Or send it to email "&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:b51432@freescale.com"&gt;b51432@freescale.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 07:58:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403249#M1581</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2015-05-07T07:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Slave plus Hardware timer in FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403250#M1582</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;Ok, I managed to attach the file. :smileygrin:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 11:26:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403250#M1582</guid>
      <dc:creator>viniciusmaciel</dc:creator>
      <dc:date>2015-05-07T11:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Slave plus Hardware timer in FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403251#M1583</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 have found that others have the same problem with &lt;EM&gt;​&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;WDOG_EWM_IRQHandler ()&lt;/SPAN&gt;&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/344647"&gt;https://community.freescale.com/thread/344647&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/353329"&gt;https://community.freescale.com/thread/353329&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems be "&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Buggy startup code perhaps&lt;/SPAN&gt;", &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;startup_MK64F12.S.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 19:26:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403251#M1583</guid>
      <dc:creator>viniciusmaciel</dc:creator>
      <dc:date>2015-05-07T19:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Slave plus Hardware timer in FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403252#M1584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinicius,&lt;/P&gt;&lt;P&gt;I think the root cause of the exception is that the code wants Vector Table in RAM but it is in Flash.&lt;/P&gt;&lt;P&gt;As I stepped through your code it dies at following line in fsl_interrupt_manager.c INT_SYS_InstallHandler() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;__VECTOR_RAM[irqNumber + 16] = (uint32_t)handler;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;//DES this code assumes vector table in RAM so if it is in flash an exception occurs when it tries to write to flash space.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will look into this further but wanted to give you update.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 21:22:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403252#M1584</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2015-05-07T21:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Slave plus Hardware timer in FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403253#M1585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was a solution ever found for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 15:12:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403253#M1585</guid>
      <dc:creator>jasonscott</dc:creator>
      <dc:date>2016-08-05T15:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Slave plus Hardware timer in FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403254#M1586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason,&lt;/P&gt;&lt;P&gt;Short answer: no.&lt;/P&gt;&lt;P&gt;Longer answer: never heard back from others if my suggestion resolved issue or if they found another solution.&amp;nbsp; Without feedback I didn't anything else on this topic.&lt;/P&gt;&lt;P&gt;The KDS and KSDK referenced are very old have had several major updates.&amp;nbsp; KDS_3.2...KSDK_v2.&lt;/P&gt;&lt;P&gt;They most likely have resolved whatever the issue.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 15:38:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403254#M1586</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-08-05T15:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: I2C Slave plus Hardware timer in FRDM-K64F</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403255#M1587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response David!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 16:39:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/I2C-Slave-plus-Hardware-timer-in-FRDM-K64F/m-p/403255#M1587</guid>
      <dc:creator>jasonscott</dc:creator>
      <dc:date>2016-08-05T16:39:34Z</dc:date>
    </item>
  </channel>
</rss>

