<?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のトピックRe: lpc4357-m0 ..each undeclared identifier is reported only once..</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc4357-m0-each-undeclared-identifier-is-reported-only-once/m-p/590251#M22046</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Tue May 26 00:32:36 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you look in cmsis_43xx_m0app.h, you'll not see TIMER1 listed. This is because TIMER1 is not accessible from the M0 cpu, only from the M4. You'll need to use TIMER0 or TIMER3 instead. Check the NVIC chapter of the LPC43xx User Guide for more details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:15:46 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:15:46Z</dc:date>
    <item>
      <title>lpc4357-m0 ..each undeclared identifier is reported only once..</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc4357-m0-each-undeclared-identifier-is-reported-only-once/m-p/590249#M22044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pgeloso on Mon May 25 01:59:17 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using LPC4357 EA board and I have a the following compilation error in the m0 code (using LPCOpen):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;error: 'TIMER1_IRQn' undeclared (first use in this function)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; NVIC_SetPriority(TIMER1_IRQn, 10);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;../src/my_m0_dc_talk_2.c:59:19: note: each undeclared identifier is reported only once for each function it appears in&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm just adding a routine that works well in m4 core:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void my_timer1_setup(void){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// Enable timer 1 clock and reset it&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_TIMER_Init(LPC_TIMER1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_RGU_TriggerReset(RGU_TIMER1_RST);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while (Chip_RGU_InReset(RGU_TIMER1_RST)) {}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//&amp;nbsp; Get timer 1 peripheral clock rate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//timerFreq = Chip_Clock_GetRate(CLK_MX_TIMER1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//timerFreq=timerFreq/TICKRATE_HZ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//timerFreq=204000;//++ interrupt @ 1KHz&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Timer setup for match and interrupt at TICKRATE_HZ&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_TIMER_Reset(LPC_TIMER1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_TIMER_MatchEnableInt(LPC_TIMER1, 1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_TIMER_SetMatch(LPC_TIMER1, 1, 204000); //1KHz&amp;nbsp; N=204*10^6 / (10^3)=204000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_TIMER_ResetOnMatchEnable(LPC_TIMER1, 1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_TIMER_Enable(LPC_TIMER1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Enable timer interrupt&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NVIC_SetPriority(TIMER1_IRQn, 10);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NVIC_EnableIRQ(TIMER1_IRQn);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NVIC_ClearPendingIRQ(TIMER1_IRQn);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;return;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think to have correctly linked the libraries:&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Properties -&amp;gt; Settings -&amp;gt; Tool Settings -&amp;gt; MCU Compiler -&amp;gt; Includes -&amp;gt; lpc_chip_43xx_m0/inc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Properties -&amp;gt; Settings -&amp;gt; Tool Settings -&amp;gt; MCU Linker -&amp;gt; Libraries -&amp;gt; lpc_chip_43xx_m0/Debug &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but the definition "TIMER1_IRQn" present in the file lpc_chip_43xx_m0/inc/cmisi_43xx.h seems so to be unknown to the code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know where's the mistake?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Pietro&lt;/SPAN&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337941"&gt;my_m0_dc_talk_2.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:15:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc4357-m0-each-undeclared-identifier-is-reported-only-once/m-p/590249#M22044</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: lpc4357-m0 ..each undeclared identifier is reported only once..</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc4357-m0-each-undeclared-identifier-is-reported-only-once/m-p/590250#M22045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nerd herd on Mon May 25 19:55:19 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi pgeloso,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Where are you calling this function? Is it in your main()? Also, can you tell me which software example project you are using? I would like to replicate the issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:15:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc4357-m0-each-undeclared-identifier-is-reported-only-once/m-p/590250#M22045</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: lpc4357-m0 ..each undeclared identifier is reported only once..</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/lpc4357-m0-each-undeclared-identifier-is-reported-only-once/m-p/590251#M22046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Tue May 26 00:32:36 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;If you look in cmsis_43xx_m0app.h, you'll not see TIMER1 listed. This is because TIMER1 is not accessible from the M0 cpu, only from the M4. You'll need to use TIMER0 or TIMER3 instead. Check the NVIC chapter of the LPC43xx User Guide for more details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso Support&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:15:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/lpc4357-m0-each-undeclared-identifier-is-reported-only-once/m-p/590251#M22046</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:15:46Z</dc:date>
    </item>
  </channel>
</rss>

