<?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>LPC MicrocontrollersのトピックIncorrect use of preprocessor definitions in debug_frmwrk.h causes debug_frmwrk.c not to build (CMSIS distribution)</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Incorrect-use-of-preprocessor-definitions-in-debug-frmwrk-h/m-p/594981#M22733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rgledhill on Mon Apr 08 06:54:29 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;Hello, I have noticed the following code in debug_frmwrk.h (lpcware distribution of CMSIS drivers for LPC43xx): #define PLATFORM HITEX_BOARD #if (PLATFORM == HITEX_BOARD) #define USED_UART_DEBUG_PORT 0 #endif #if (PLATFORM == KEIL_BOARD) #define USED_UART_DEBUG_PORT 3 #endif This is giving a compiler error that USED_UART_DEBUG_PORT is redefined, i.e. it is processing both of the #if clauses as positive. I can fix the code by doing this: #define HITEX_BOARD 1 #define KEIL_BOARD 2 #define PLATFORM HITEX_BOARD #if (PLATFORM == HITEX_BOARD) #define USED_UART_DEBUG_PORT 0 #endif #if (PLATFORM == KEIL_BOARD) #define USED_UART_DEBUG_PORT 3 #endif This is because the C compiler (Keil in my case) is defining KEIL_BOARD and HITEX_BOARD as the same constant (0), which means the #if clauses are both "true". &lt;BR /&gt;Can you change the LPCWare distribution to include this fix please?&lt;BR /&gt;&lt;BR /&gt;Thanks, Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:21:10 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:21:10Z</dc:date>
    <item>
      <title>Incorrect use of preprocessor definitions in debug_frmwrk.h causes debug_frmwrk.c not to build (CMSIS distribution)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Incorrect-use-of-preprocessor-definitions-in-debug-frmwrk-h/m-p/594981#M22733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rgledhill on Mon Apr 08 06:54:29 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;Hello, I have noticed the following code in debug_frmwrk.h (lpcware distribution of CMSIS drivers for LPC43xx): #define PLATFORM HITEX_BOARD #if (PLATFORM == HITEX_BOARD) #define USED_UART_DEBUG_PORT 0 #endif #if (PLATFORM == KEIL_BOARD) #define USED_UART_DEBUG_PORT 3 #endif This is giving a compiler error that USED_UART_DEBUG_PORT is redefined, i.e. it is processing both of the #if clauses as positive. I can fix the code by doing this: #define HITEX_BOARD 1 #define KEIL_BOARD 2 #define PLATFORM HITEX_BOARD #if (PLATFORM == HITEX_BOARD) #define USED_UART_DEBUG_PORT 0 #endif #if (PLATFORM == KEIL_BOARD) #define USED_UART_DEBUG_PORT 3 #endif This is because the C compiler (Keil in my case) is defining KEIL_BOARD and HITEX_BOARD as the same constant (0), which means the #if clauses are both "true". &lt;BR /&gt;Can you change the LPCWare distribution to include this fix please?&lt;BR /&gt;&lt;BR /&gt;Thanks, Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:21:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Incorrect-use-of-preprocessor-definitions-in-debug-frmwrk-h/m-p/594981#M22733</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Incorrect use of preprocessor definitions in debug_frmwrk.h causes debug_frmwrk.c not to build (CMSIS distribution)</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Incorrect-use-of-preprocessor-definitions-in-debug-frmwrk-h/m-p/594982#M22734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by rgledhill on Mon Apr 08 09:52:17 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;P&gt;I have now reported this in the Bug Tracker part of the site - I hadn't noticed it existed till now, sorry!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:21:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Incorrect-use-of-preprocessor-definitions-in-debug-frmwrk-h/m-p/594982#M22734</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:21:11Z</dc:date>
    </item>
  </channel>
</rss>

