<?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: How to identify an exception handler: K70 with MQX in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-identify-an-exception-handler-K70-with-MQX/m-p/1153757#M18539</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/122997"&gt;@garylynch&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I just test this feature on my side,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;what you need to do is :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1)&amp;nbsp; user_config.h&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;#define BSPCFG_ENABLE_ITTYE 1 /* Enable UART4 for interrupt-driven I/O */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2）in your application, you need to open and init this driver&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;MQX_FILE_PTR&amp;nbsp; uart4_handle;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;uart4_handle = fopen( "ittye:", NULL );&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3) rebuild bsp, and psp. and your application.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4) then you can access the uart4 registers.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditordanielchen_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="uart-reg.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/125225iE8E7E54DFB280CEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="uart-reg.png" alt="uart-reg.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditordanielchen_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Sep 2020 02:16:30 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2020-09-16T02:16:30Z</dc:date>
    <item>
      <title>How to identify an exception handler: K70 with MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-identify-an-exception-handler-K70-with-MQX/m-p/1151141#M18520</link>
      <description>&lt;P&gt;I am trying to modify what is supposed to be a debugged, functional application that runs on the K70 processor and uses MQX. I am using IAR's Embedded Workbench in debug mode.&lt;/P&gt;&lt;P&gt;After seeing it go off in the weeds consistently I tracked down the instruction that instigates this. It is an attempt to read the UART4 status register 1:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s1Save = UART_S1_REG(channel);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The equivalent in the disassembly window is:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDRB R0, [R4,#0x4]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;when I single-step in disassembly mode, it apparently triggers an exception handler, as the next address in the PC is 0x26DE2. Single-stepping in here pulls up an assembly source file: dispatch.S, containing these instructions:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ASM_LABEL(_int_kernel_isr)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;cpsid.n i&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;push {lr}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;GET_KERNEL_DATA r3 /* get the kernel data address */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;/* increment in interrupt counter */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ldrh r1, [r3, #KD_IN_ISR]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;add r1, r1, #1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;strh r1, [r3, #KD_IN_ISR]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;/* create interrupt content */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ldr r0, =0 /* error code (set 0) */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;push {r0} /* store in stack */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;mrs r2, BASEPRI /* actual priority */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;mrs r1, IPSR /* exception number */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;ldr r0, [r3, #KD_INTERRUPT_CONTEXT_PTR] /* previous interrupt content */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I single-stepped down to the '&lt;FONT face="courier new,courier"&gt;mrs r1, IPSR&lt;/FONT&gt;', just to see what gets loaded into r1, and the value is 3.&lt;/P&gt;&lt;P&gt;I am new to MQX, have mostly debugged Cortex M4 at the C level and am looking for clues what the long-gone prior developer has done to make UART4 unreachable. Have I uncovered anything relevant? What better approach is there to finding this?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 22:52:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-identify-an-exception-handler-K70-with-MQX/m-p/1151141#M18520</guid>
      <dc:creator>garylynch</dc:creator>
      <dc:date>2020-09-09T22:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify an exception handler: K70 with MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-identify-an-exception-handler-K70-with-MQX/m-p/1151197#M18521</link>
      <description>&lt;P&gt;Since my initial posting I have found a table of exception numbers and number 3 corresponds to 'HardFault." I am still working on how that applies to the UART and trying to read a status register.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 01:54:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-identify-an-exception-handler-K70-with-MQX/m-p/1151197#M18521</guid>
      <dc:creator>garylynch</dc:creator>
      <dc:date>2020-09-10T01:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify an exception handler: K70 with MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-identify-an-exception-handler-K70-with-MQX/m-p/1151889#M18524</link>
      <description>&lt;P&gt;Hi Gary:&lt;/P&gt;
&lt;P&gt;Most of the time , hardware fault is resulted from illegal memory accesses. There is one document describes the Coretex-M fault exceptions.&lt;/P&gt;
&lt;P&gt;Please refer to below document:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.keil.com/appnotes/files/apnt209.pdf" target="_blank"&gt;https://www.keil.com/appnotes/files/apnt209.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 03:02:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-identify-an-exception-handler-K70-with-MQX/m-p/1151889#M18524</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2020-09-11T03:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify an exception handler: K70 with MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-identify-an-exception-handler-K70-with-MQX/m-p/1151892#M18525</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please also check whether UART4 is enabled in user_config.h ?&lt;/P&gt;
&lt;P&gt;If the uart clock is not enabled, the access for UART4 register will result in an hardfault.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 03:12:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-identify-an-exception-handler-K70-with-MQX/m-p/1151892#M18525</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2020-09-11T03:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify an exception handler: K70 with MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-identify-an-exception-handler-K70-with-MQX/m-p/1152229#M18526</link>
      <description>&lt;P&gt;Daniel,&lt;/P&gt;&lt;P&gt;Thank you for the input. I am still searching for the point where UART initialization was removed. I suspected this and searched for it in the:&lt;/P&gt;&lt;UL class="lia-list-style-type-circle"&gt;&lt;LI&gt;&lt;EM&gt;K70 Sub-Family Reference Manual with Addendum&lt;/EM&gt;, and&lt;/LI&gt;&lt;LI&gt;&lt;BR /&gt;&lt;EM&gt;Cortex-M4, Revision r0p0, Technical Reference Manual&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;before I wrote this post. Is this info in one of those manuals and I simply couldn't find it, or can the answer only be obtained on forums like this one?&lt;/P&gt;&lt;P&gt;I scanned my user_config.h file but could see nothing relevant to UARTs or clocks. I also checked:&lt;/P&gt;&lt;UL class="lia-list-style-type-circle"&gt;&lt;LI&gt;&lt;EM&gt;Freescale MQX™ RTOS User's Guide&lt;/EM&gt;,&lt;/LI&gt;&lt;LI&gt;&lt;BR /&gt;&lt;EM&gt;Getting Started with Freescale MQX™ RTOS&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;but came up empty. I will post the whole file here and ask what is missing:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;/*HEADER**********************************************************************&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;* Copyright 2008 Freescale Semiconductor, Inc.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;* This software is owned or controlled by Freescale Semiconductor.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;* Use of this software is governed by the Freescale MQX RTOS License&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;* distributed with this Material.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;* See the MQX_RTOS_LICENSE file distributed for more details.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;* Brief License Summary:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;* This software is provided in source form for you to use free of charge,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;* but it is not open source software. You are allowed to use this software&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;* but you cannot redistribute it or derivative works of it in source form.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;* The software may be used only in connection with a product containing&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;* a Freescale microprocessor, microcontroller, or digital signal processor.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;* See license agreement file for full license terms including other&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;* restrictions.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;*****************************************************************************&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;* Comments:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;* User configuration for MQX components&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;*END**************************************************************************/&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#ifndef __user_config_h__&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define __user_config_h__&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;/* mandatory CPU identification */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define MQX_CPU PSP_CPU_MK70F120M&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;/* Silicon version number */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define MK70_REV_1_0 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;/* MGCT: &amp;lt;generated_code&amp;gt; */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;//#define BSPCFG_ENABLE_TTYX 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_TTYA 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_ITTYA 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_TTYB 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_ITTYB 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_TTYC 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_ITTYC 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_TTYD 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_ITTYD 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_TTYE 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_ITTYE 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_TTYF 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_ITTYF 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_I2C0 1 // I2C0 should be enabled for communication to HUB&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_II2C0 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_I2C1 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_II2C1 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_SPI0 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_SPI1 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_SPI2 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_RTCDEV 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_PCFLASH 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_ADC0 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_ADC1 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_ADC2 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_ADC3 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_FLASHX 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_ESDHC 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_IODEBUG 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_NANDFLASH 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_SAI 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_HAS_SRAM_POOL 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENET_SRAM_BUF 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define MQX_ROM_VECTORS 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define MQX_USE_IDLE_TASK 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define MQX_TASK_DESTRUCTION 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define MQX_HAS_TIME_SLICE 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define MQX_USE_TIMER 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define MQX_KERNEL_LOGGING 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define MQX_USE_LOGS 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define MQX_USE_LWLOGS 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define MQX_ENABLE_LOW_POWER 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define MQX_IS_MULTI_PROCESSOR 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define MQX_USE_IPC 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define MQX_USE_UNCACHED_MEM 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define MQX_USE_LWMEM_ALLOCATOR 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define MQXCFG_ENABLE_FP 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define MQX_INCLUDE_FLOATING_POINT_IO 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define MQX_SAVE_FP_ALWAYS 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define MFSCFG_READ_ONLY 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define MFSCFG_MINIMUM_FOOTPRINT 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define RTCSCFG_ENABLE_ICMP 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define RTCSCFG_ENABLE_UDP 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define RTCSCFG_ENABLE_TCP 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define RTCSCFG_ENABLE_STATS 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define RTCSCFG_ENABLE_GATEWAYS 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define FTPDCFG_USES_MFS 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define RTCSCFG_ENABLE_SNMP 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define TELNETDCFG_NOWAIT FALSE&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define HTTPDCFG_POLL_MODE 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define HTTPDCFG_STATIC_TASKS 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define HTTPDCFG_DYNAMIC_TASKS 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;/* MGCT: &amp;lt;/generated_code&amp;gt; */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define ENETCFG_SUPPORT_PTP 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;/*&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;** include common settings&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;*/&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define MQX_USE_IO_OLD 1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;/* use the rest of defaults from small-RAM-device profile */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#include "small_ram_config.h"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;/* and enable verification checks in kernel */&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#include "verif_enabled_config.h"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#endif /* __user_config_h__ */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Anything stand out? (Thanks again).&lt;/P&gt;</description>
      <pubDate>Fri, 11 Sep 2020 15:54:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-identify-an-exception-handler-K70-with-MQX/m-p/1152229#M18526</guid>
      <dc:creator>garylynch</dc:creator>
      <dc:date>2020-09-11T15:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify an exception handler: K70 with MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-identify-an-exception-handler-K70-with-MQX/m-p/1152467#M18529</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Uart 4 is not enabled in your user_config.h file,&amp;nbsp; &amp;nbsp;uart4&amp;nbsp; is&amp;nbsp;&amp;nbsp;&lt;FONT face="courier new,courier" color="#993366"&gt;BSPCFG_ENABLE_TTYE&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_TTYE 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_ITTYE 0&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;If you use interrupt mode uart , please enable it like:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;#define BSPCFG_ENABLE_ITTYE 1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" color="#993366"&gt;Please try it again.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Sep 2020 14:13:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-identify-an-exception-handler-K70-with-MQX/m-p/1152467#M18529</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2020-09-13T14:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify an exception handler: K70 with MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-identify-an-exception-handler-K70-with-MQX/m-p/1152539#M18532</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please enable&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;#define BSPCFG_ENABLE_ITTYE 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;in user_config.h&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 02:29:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-identify-an-exception-handler-K70-with-MQX/m-p/1152539#M18532</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2020-09-14T02:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify an exception handler: K70 with MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-identify-an-exception-handler-K70-with-MQX/m-p/1153603#M18537</link>
      <description>&lt;P&gt;Daniel,&lt;/P&gt;&lt;P&gt;Thank you for your follow-up.&amp;nbsp; I changed that line in user_config.h to:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;#define BSPCFG_ENABLE_TTYE 0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;#define BSPCFG_ENABLE_ITTYE 1 /* Enable UART4 for interrupt-driven I/O */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;but it made no difference. My app still winds up in the exception handler.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Is there a list I can consult that shows which registers must be initialized before I can access the UART? I would rather not assume that MQX will do everything for me, as I can't talk to the original programmer.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Thanks again for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 17:04:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-identify-an-exception-handler-K70-with-MQX/m-p/1153603#M18537</guid>
      <dc:creator>garylynch</dc:creator>
      <dc:date>2020-09-15T17:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify an exception handler: K70 with MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-identify-an-exception-handler-K70-with-MQX/m-p/1153713#M18538</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After you modified the user_config.h&lt;/P&gt;
&lt;P&gt;you should make clean bsp and psp, and rebuild bsp and psp again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 00:51:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-identify-an-exception-handler-K70-with-MQX/m-p/1153713#M18538</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2020-09-16T00:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify an exception handler: K70 with MQX</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-identify-an-exception-handler-K70-with-MQX/m-p/1153757#M18539</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/122997"&gt;@garylynch&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I just test this feature on my side,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;what you need to do is :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1)&amp;nbsp; user_config.h&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;#define BSPCFG_ENABLE_ITTYE 1 /* Enable UART4 for interrupt-driven I/O */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2）in your application, you need to open and init this driver&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;MQX_FILE_PTR&amp;nbsp; uart4_handle;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;uart4_handle = fopen( "ittye:", NULL );&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3) rebuild bsp, and psp. and your application.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;4) then you can access the uart4 registers.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditordanielchen_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="uart-reg.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/125225iE8E7E54DFB280CEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="uart-reg.png" alt="uart-reg.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditordanielchen_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 02:16:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/How-to-identify-an-exception-handler-K70-with-MQX/m-p/1153757#M18539</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2020-09-16T02:16:30Z</dc:date>
    </item>
  </channel>
</rss>

