<?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 LPC845MAX board, strange result blinking blue led in MCUXpresso General</title>
    <link>https://community.nxp.com/t5/MCUXpresso-General/LPC845MAX-board-strange-result-blinking-blue-led/m-p/799743#M701</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends,&lt;/P&gt;&lt;P&gt;For info and (welcome) comments about any idea of this strange result when programing the led's blinking.&lt;/P&gt;&lt;P&gt;Evaluating this MCU on LPC845MAX board I exerciced the blinking with red, green and blue led, no problem when I blink red or green led but I obtain a "SYGSTOP hard fault signal" when I tryed activating the blue one.&lt;/P&gt;&lt;P&gt;I using same addresing and register control, the MCU configuration is by default (no config tools, clocks, PIOs or other)... The program does:&lt;/P&gt;&lt;P&gt;1st. Enable SYSCON for PIO0 and PIO1 with,&amp;nbsp; *((unsigned int *)0x40048080U)|= 0x00100040U; // bits 6 and 20 to '1'.&lt;/P&gt;&lt;P&gt;2nd. Activate DIR0 as output (PIO0, red &amp;amp; green) with, *((unsigned int *)0xa0002000U)|= 0x00001001U; //&amp;nbsp; bits 12 and 0 to '1'.&lt;/P&gt;&lt;P&gt;3rd. Activate DIR1 as output (PIO1, blue) with, *((unsigned int *)0xa0002004U)|= 0x00008000U; // bit 15 to '1'.&lt;/P&gt;&lt;P&gt;4th. Write led RO to on / off whit, *((unsigned int *)0xa000000cU)&amp;amp;= 0x0U; *((unsigned int *)0xa000000cU)|= 0x1U;&lt;/P&gt;&lt;P&gt;5th. Write led GRE to on / off whit, *((unsigned int *)0xa0000000U)&amp;amp;= 0x0U; *((unsigned int *)0xa0000000U)|= 0x1U;&lt;/P&gt;&lt;P&gt;6th. Write led BLU to on / off whit, *((unsigned int *)0xa000002FU)&amp;amp;= 0x0U;&amp;nbsp; *((unsigned int *)0xa000002FU)|= 0x1U;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, when program executes the 6th action I received the SEGSTOP fault in the probe, excluding this 6th action all work perfectly, also if I writte directly the 0xa000002F location to '0' or to '1' blue led blinks perfect,...&lt;/P&gt;&lt;P&gt;I suspect some more register should be configured in the MCU register but sincerelly I don't have idea what bit or register should be touch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks your comments and help&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 Aug 2018 08:52:03 GMT</pubDate>
    <dc:creator>luis-martinez</dc:creator>
    <dc:date>2018-08-18T08:52:03Z</dc:date>
    <item>
      <title>LPC845MAX board, strange result blinking blue led</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC845MAX-board-strange-result-blinking-blue-led/m-p/799743#M701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear friends,&lt;/P&gt;&lt;P&gt;For info and (welcome) comments about any idea of this strange result when programing the led's blinking.&lt;/P&gt;&lt;P&gt;Evaluating this MCU on LPC845MAX board I exerciced the blinking with red, green and blue led, no problem when I blink red or green led but I obtain a "SYGSTOP hard fault signal" when I tryed activating the blue one.&lt;/P&gt;&lt;P&gt;I using same addresing and register control, the MCU configuration is by default (no config tools, clocks, PIOs or other)... The program does:&lt;/P&gt;&lt;P&gt;1st. Enable SYSCON for PIO0 and PIO1 with,&amp;nbsp; *((unsigned int *)0x40048080U)|= 0x00100040U; // bits 6 and 20 to '1'.&lt;/P&gt;&lt;P&gt;2nd. Activate DIR0 as output (PIO0, red &amp;amp; green) with, *((unsigned int *)0xa0002000U)|= 0x00001001U; //&amp;nbsp; bits 12 and 0 to '1'.&lt;/P&gt;&lt;P&gt;3rd. Activate DIR1 as output (PIO1, blue) with, *((unsigned int *)0xa0002004U)|= 0x00008000U; // bit 15 to '1'.&lt;/P&gt;&lt;P&gt;4th. Write led RO to on / off whit, *((unsigned int *)0xa000000cU)&amp;amp;= 0x0U; *((unsigned int *)0xa000000cU)|= 0x1U;&lt;/P&gt;&lt;P&gt;5th. Write led GRE to on / off whit, *((unsigned int *)0xa0000000U)&amp;amp;= 0x0U; *((unsigned int *)0xa0000000U)|= 0x1U;&lt;/P&gt;&lt;P&gt;6th. Write led BLU to on / off whit, *((unsigned int *)0xa000002FU)&amp;amp;= 0x0U;&amp;nbsp; *((unsigned int *)0xa000002FU)|= 0x1U;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, when program executes the 6th action I received the SEGSTOP fault in the probe, excluding this 6th action all work perfectly, also if I writte directly the 0xa000002F location to '0' or to '1' blue led blinks perfect,...&lt;/P&gt;&lt;P&gt;I suspect some more register should be configured in the MCU register but sincerelly I don't have idea what bit or register should be touch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks your comments and help&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Luis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Aug 2018 08:52:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC845MAX-board-strange-result-blinking-blue-led/m-p/799743#M701</guid>
      <dc:creator>luis-martinez</dc:creator>
      <dc:date>2018-08-18T08:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: LPC845MAX board, strange result blinking blue led</title>
      <link>https://community.nxp.com/t5/MCUXpresso-General/LPC845MAX-board-strange-result-blinking-blue-led/m-p/799744#M702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Luis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I took the example gpio_led_output of the SDK for the board&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;LPC845MAX. By default the example is working with the green led (P0_0) but I changed two defines to work with the blue led (P1_15) and everything worked fine. Here are the defines that I modified:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#define APP_BOARD_TEST_LED_PORT 1U&lt;/SPAN&gt;
&lt;SPAN class="property macro token"&gt;#define APP_BOARD_TEST_LED_PIN 15U&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Once I make these changes when I click SW2 the blue led starts to blink. I recommend you to check this example to see what you are missing that is causing the hardfault on your side.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://mcuxpresso.nxp.com/en/welcome" rel="nofollow noopener noreferrer" target="_blank"&gt;Link to download the SDK.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2018 19:31:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-General/LPC845MAX-board-strange-result-blinking-blue-led/m-p/799744#M702</guid>
      <dc:creator>victorjimenez</dc:creator>
      <dc:date>2018-08-20T19:31:42Z</dc:date>
    </item>
  </channel>
</rss>

