<?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: Make blinky example work for the cortex M4 and the cortex M0</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581378#M20436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by iaun.hma67 on Tue Oct 06 01:52:45 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hello &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am a beginner in lpc4337 and trying to make a project by this processor...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to blink the LEDs connected to P6.9 &amp;amp; P6.10 with core M0 and blink the other tow LEDs connected to P6.11 &amp;amp; P6.12 with coreM4.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working by &lt;/SPAN&gt;&lt;STRONG&gt;keil 5&lt;/STRONG&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;STRONG&gt;registers without using of CMSIS standard function&lt;/STRONG&gt;&lt;SPAN&gt;. my programmer is&lt;/SPAN&gt;&lt;STRONG&gt; j_link &lt;/STRONG&gt;&lt;SPAN&gt;and I have work on OPEN18xx/43xxB1 training board(fabricated by Wave Share).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;by using your post and others I don't understand how to configure my program :(( &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I write this code for core M0 :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#include &amp;lt;LPC43xx.h&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void delay_ms(int Del)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;long int i;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for(i=0;i&amp;lt;Del*8000;i++);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;int main(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//LED4 P6.9&amp;nbsp;&amp;nbsp; GPIO3[5]&amp;nbsp; FUNC0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCU-&amp;gt;SFSP6_9=0x00000028;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;DIR[3] |= (1 &amp;lt;&amp;lt;5); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; //LED3 P6.10&amp;nbsp; GPIO3[6]&amp;nbsp; FUNC0&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCU-&amp;gt;SFSP6_10=0x00000028;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;DIR[3] |= (1 &amp;lt;&amp;lt;6); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while (1)&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;&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;LPC_GPIO_PORT-&amp;gt;SET[3]=1&amp;lt;&amp;lt;5;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // GPIO3[5] :&amp;nbsp;&amp;nbsp; (LED D4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delay_ms(500);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;SET[3]=1&amp;lt;&amp;lt;6;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // GPIO3[6] :&amp;nbsp;&amp;nbsp; (LED D3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delay_ms(500);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;CLR[3]=1&amp;lt;&amp;lt;5;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // GPIO3[5] :&amp;nbsp;&amp;nbsp; (LED D4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delay_ms(500);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;CLR[3]=1&amp;lt;&amp;lt;6;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // GPIO3[6] :&amp;nbsp;&amp;nbsp; (LED D3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delay_ms(500);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and setting for M0 core like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://www.freeuploadsite.com/do.php?img=79814"&gt;image1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://www.freeuploadsite.com/do.php?img=79815"&gt;image2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://www.freeuploadsite.com/do.php?img=79816"&gt;image3&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://www.freeuploadsite.com/do.php?img=79817"&gt;image4&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and this code for core M4 in the other project:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#include &amp;lt;LPC43xx.h&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void delay_ms(int Del)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;long int i;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for(i=0;i&amp;lt;Del*8000;i++);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Boot the M0 core */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void lpc43xx_m0_boot(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Make sure the M0 core is being held in reset via the RGU */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_RGU-&amp;gt;RESET_CTRL1 = (1 &amp;lt;&amp;lt; 24);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;int main(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//LED2 P6.11&amp;nbsp; GPIO3[7]&amp;nbsp; FUNC0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCU-&amp;gt;SFSP6_11=0x00000028;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;DIR[3] |= (1 &amp;lt;&amp;lt;7);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//LED1 P6.12&amp;nbsp; GPIO2[8]&amp;nbsp; FUNC0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCU-&amp;gt;SFSP6_12=0x00000028;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;DIR[2] |= (1 &amp;lt;&amp;lt;8); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;while (1)&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;&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;LPC_GPIO_PORT-&amp;gt;SET[3]=1&amp;lt;&amp;lt;7;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // GPIO3[7] :&amp;nbsp;&amp;nbsp; (LED D2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delay_ms(1000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;SET[2]=1&amp;lt;&amp;lt;8;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // GPIO2[8] :&amp;nbsp;&amp;nbsp; (LED D1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delay_ms(1000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;CLR[3]=1&amp;lt;&amp;lt;7;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // GPIO3[7] :&amp;nbsp;&amp;nbsp; (LED D2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delay_ms(1000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;CLR[2]=1&amp;lt;&amp;lt;8;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // GPIO2[8] :&amp;nbsp;&amp;nbsp; (LED D1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delay_ms(1000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and setting for M0 core like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://www.freeuploadsite.com/do.php?img=79818"&gt;image5&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://www.freeuploadsite.com/do.php?img=79819"&gt;image6&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://www.freeuploadsite.com/do.php?img=79820"&gt;image7&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://www.freeuploadsite.com/do.php?img=79821"&gt;image8&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i should say that i use wizard project in keil 5 to make these tow project&amp;nbsp; &amp;amp; i want to run all of these project by using any new heeder file or lib :~ &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i want to do all the necessary work like releasing M0 core from reset just by basic registers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i read all of corresponsive post in this site and in internet, but i just confused !!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for attention&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:06:10 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:06:10Z</dc:date>
    <item>
      <title>Make blinky example work for the cortex M4 and the cortex M0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581365#M20423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by floreste on Fri Jun 27 06:21:11 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have some troubles programing a MCU and would appreciate some enlighten.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to program the LPC 4337 (The Xplorer board) with the LPC Link-2 debug probe in order to run a simple blinky program on cortex M4 and M0 in sleep, and then to run the same program with the cortex M0 and M4 in sleep. As IDE for programming I am using the NXPXpresso IDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have already managed to run my program in the M4 but I’m experiencing troubles for the M0 part: I can’t make any project work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I have understood and tried, please tell me what I did wrong or what I have missed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I first tried to run the examples from the LPCopen package. Since I have a LPC4337 board, I have changed the settings for the examples and put LPC4337 for the M4 examples and LPC4337-M0 for the M0 examples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I wanted to try the blinky projects, and here is the first thing I have noticed: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Periph_blinky and freertos_blinky examples seems to work, (connected with JTAG for cortex M4 and without any link to M0APP in the settings (Settings-&amp;gt;tool Settings-&amp;gt;MCU Linker-&amp;gt;Multicore) ) when they are programmed independently from the M0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But first problem, with the same settings as the other working examples, the dc_sa_blinky example ends in the HardFault_Handler, according to what I’ve seen, after checking if the M0 image was correctly loaded, which could not since I hadn’t already linked the M4 project to the M0 one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, I tried to make the _m0 examples work by themselves changing the settings to LPC4337-M0 and using the JTAG dedicated for the M0 but then, I am each time “stalled on bus operation” (this message is displayed on the bottom of the NXPXpresso IDE).&amp;nbsp; I guess that I can’t run a program only dedicated for the M0 since the M4 has to boot the M0 core?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I tried to link the 2 projects to run a multi core program, and here is where I would like some help to guide me in the rights steps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- I built the dc_sa_blinky_m0 project&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- I change the settings of the dc_sa_blinky (for M4) project (Settings-&amp;gt;tool Settings-&amp;gt;MCU Linker-&amp;gt;Multicore) where I check off the M0APP slave, I do not change Master memory (I tried both MFlashA512 and RAM2 nevertheless) and I define the slave application with the image built for the dc_sa_blinky_m0 program.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So this should link the slave M0 to the master M4? Do I forget another step, another configuration?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I launch the debug but I end in the HardFault_Handler another time, just after checking if the image was correctly loaded (after line 217 of the m0_img_loader from the dc_sa_blinky example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So could someone help me there and tell me what I’m doing wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(I get the same errors for the dc_freertos_blinky project) &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:06:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581365#M20423</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Make blinky example work for the cortex M4 and the cortex M0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581366#M20424</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 Fri Jun 27 06:30:35 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you read the FAQ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Flpc43xx-multicore-apps" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/lpc43xx-multicore-apps&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, you might try the examples in the product for the MCB4357. There is a simple dual-core blinky app. Without modification, it won't blink any LEDs (as it uses different GPIO's), but it does show a working M4 and working M0 application. Using LPCXpresso and LPC-Link2, you will also be able to debug both cores at the same time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:06:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581366#M20424</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Make blinky example work for the cortex M4 and the cortex M0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581367#M20425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by sundarapandian on Fri Jun 27 09:15:26 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, If you are using LPCOpen examples I would suggest you to read &lt;/SPAN&gt;&lt;A href="http://http://www.lpcware.com/content/faq/how-run-multicore-examples-provided-lpcopen-lpc43xx-packages"&gt;this FAQ&lt;/A&gt;&lt;SPAN&gt; to understand how to program and run the code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:06:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581367#M20425</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Make blinky example work for the cortex M4 and the cortex M0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581368#M20426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by floreste on Fri Jul 04 02:27:27 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Though I still haven't run the provided examples, I have managed to create a new project with the help of this &lt;/SPAN&gt;&lt;A href="http://http://www.lpcware.com/content/faq/lpcxpresso/lpc43xx-multicore-apps"&gt;video&lt;/A&gt;&lt;SPAN&gt; from from minute 35 to minute 38.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So for now, I focuse on the new project.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your answers, I'll let you know if I make any progress on the example matter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:06:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581368#M20426</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Make blinky example work for the cortex M4 and the cortex M0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581369#M20427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mrabbasi61 on Sun Jul 06 01:20:18 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: lpcxpresso-support&lt;/STRONG&gt;&lt;BR /&gt;Did you read the FAQ?&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Flpcxpresso%2Flpc43xx-multicore-apps" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/lpcxpresso/lpc43xx-multicore-apps&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Also, you might try the examples in the product for the MCB4357. There is a simple dual-core blinky app. Without modification, it won't blink any LEDs (as it uses different GPIO's), but it does show a working M4 and working M0 application. Using LPCXpresso and LPC-Link2, you will also be able to debug both cores at the same time.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying example dc_sa_blinky. but I got this on UART debug :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;I&gt;ERROR: Unable to find signature1 of M0 Image at 0x1b000010&lt;BR /&gt;ERROR: Boot failure!!&lt;/I&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what is the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, in Setting&amp;gt;Micro Controller Setting , Do I need to choose 4357-M4 ? or 4357-M0 ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:06:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581369#M20427</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Make blinky example work for the cortex M4 and the cortex M0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581370#M20428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Sun Jul 06 01:34:53 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Which board? Which tools? Which debug probe?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:06:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581370#M20428</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Make blinky example work for the cortex M4 and the cortex M0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581371#M20429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mrabbasi61 on Mon Jul 07 00:21:08 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;it was a Dev. Board for LPC4357 from Waveshare, name of the board is Open43xxE2, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use LPCXpresso toolchain, and LPCOpen platform, and LPCLink2 debug probe. I also use JLink in order to loaD the program on processor. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I connect a cable to UART0, and on PC I open one Hyper Terminal. when I restart the board, I see the following output on PC hyper terminal application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR: Unable to find signature1 of M0 Image at 0x1b000010&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ERROR: Boot failure!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:06:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581371#M20429</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Make blinky example work for the cortex M4 and the cortex M0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581372#M20430</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 Mon Jul 07 01:22:00 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;So that error would suggest that you have not programmed the M0 image into the flash?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are using the LPCOpen examples, then you need to make sure that you follow the instructions in the FAQ previously provided to you &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Ffaq%2Fhow-run-multicore-examples-provided-lpcopen-lpc43xx-packages" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/faq/how-run-multicore-examples-provided-lpcopen-lpc43xx-packages&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in particular the need with the current versions to manually download the M0 image with these projects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use your LPC-Link2 in 'redlink' mode rather than using the J-Link firmware, then if you follow the provided instructions, this should all "just work".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[With J-Link it should also work, but I haven't personally tried using this.]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To switch back to using 'redlink' on your LPC-Link2, disconnect the probe from USB,&amp;nbsp; remove JP1, then connect to USB again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Flpclink2" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/lpclink2&lt;/A&gt;&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:06:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581372#M20430</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Make blinky example work for the cortex M4 and the cortex M0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581373#M20431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mrabbasi61 on Tue Jul 08 03:54:27 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you very much Support, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;yes, actually I had not load the firmware into the correct place for M0, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and now I have my first dual core Blinky application running. Thnks a lot for your help, support and concern.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to know that is it possible to return a value or an acknowledge after successfully running a function from one core to another?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;maybe it is already done, but I couldn't find it in the code. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:06:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581373#M20431</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Make blinky example work for the cortex M4 and the cortex M0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581374#M20432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by TheFallGuy on Tue Jul 08 04:15:39 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You need IPC (inter processor communication). Described in Chapter 2 of the User Manual.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, see the Forums post:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fproblem-ipc-4357" rel="nofollow" target="_blank"&gt;http://www.lpcware.com/content/forum/problem-ipc-4357&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:06:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581374#M20432</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Make blinky example work for the cortex M4 and the cortex M0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581375#M20433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by starblue on Tue Jul 08 07:32:57 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The IPC described in the manual is just one way to communicate via shared memory.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my project I don't use it. Instead I have a struct at a fixed address, which contains the variables shared between the cores. For example, to send an acknowledge a simple boolean flag would suffice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, you need to be aware of concurrency issues and declare your variables volatile or use memory barriers as appropriate.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:06:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581375#M20433</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Make blinky example work for the cortex M4 and the cortex M0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581376#M20434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mrabbasi61 on Wed Jul 09 02:09:11 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you all for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;starblue, doesn't it affect the performance?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think when one core is accessing the shared memory, it may avoid the other core from accessing, is it true?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in my case, I want to update the screen of an RGB Graphic LCD by M0 core. what is your recommendation for this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:06:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581376#M20434</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Make blinky example work for the cortex M4 and the cortex M0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581377#M20435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by starblue on Wed Jul 09 03:02:48 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: mrabbasi61&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;starblue, doesn't it affect the performance?&lt;BR /&gt;I think when one core is accessing the shared memory, it may avoid the other core from accessing, is it true?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, but that cannot be avoided for shared data. In my case it is not a problem, because there is not that much data (some values for A/D and D/A converters).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use separate memories for the local data of the M4, local data of the M0, and for the shared data. In that way the conflicts are minimized.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jürgen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:06:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581377#M20435</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Make blinky example work for the cortex M4 and the cortex M0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581378#M20436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by iaun.hma67 on Tue Oct 06 01:52:45 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hello &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am a beginner in lpc4337 and trying to make a project by this processor...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to blink the LEDs connected to P6.9 &amp;amp; P6.10 with core M0 and blink the other tow LEDs connected to P6.11 &amp;amp; P6.12 with coreM4.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working by &lt;/SPAN&gt;&lt;STRONG&gt;keil 5&lt;/STRONG&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;STRONG&gt;registers without using of CMSIS standard function&lt;/STRONG&gt;&lt;SPAN&gt;. my programmer is&lt;/SPAN&gt;&lt;STRONG&gt; j_link &lt;/STRONG&gt;&lt;SPAN&gt;and I have work on OPEN18xx/43xxB1 training board(fabricated by Wave Share).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;by using your post and others I don't understand how to configure my program :(( &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I write this code for core M0 :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#include &amp;lt;LPC43xx.h&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void delay_ms(int Del)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;long int i;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for(i=0;i&amp;lt;Del*8000;i++);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;int main(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//LED4 P6.9&amp;nbsp;&amp;nbsp; GPIO3[5]&amp;nbsp; FUNC0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCU-&amp;gt;SFSP6_9=0x00000028;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;DIR[3] |= (1 &amp;lt;&amp;lt;5); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; //LED3 P6.10&amp;nbsp; GPIO3[6]&amp;nbsp; FUNC0&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCU-&amp;gt;SFSP6_10=0x00000028;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;DIR[3] |= (1 &amp;lt;&amp;lt;6); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while (1)&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;&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;LPC_GPIO_PORT-&amp;gt;SET[3]=1&amp;lt;&amp;lt;5;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // GPIO3[5] :&amp;nbsp;&amp;nbsp; (LED D4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delay_ms(500);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;SET[3]=1&amp;lt;&amp;lt;6;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // GPIO3[6] :&amp;nbsp;&amp;nbsp; (LED D3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delay_ms(500);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;CLR[3]=1&amp;lt;&amp;lt;5;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // GPIO3[5] :&amp;nbsp;&amp;nbsp; (LED D4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delay_ms(500);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;CLR[3]=1&amp;lt;&amp;lt;6;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // GPIO3[6] :&amp;nbsp;&amp;nbsp; (LED D3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delay_ms(500);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and setting for M0 core like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://www.freeuploadsite.com/do.php?img=79814"&gt;image1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://www.freeuploadsite.com/do.php?img=79815"&gt;image2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://www.freeuploadsite.com/do.php?img=79816"&gt;image3&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://www.freeuploadsite.com/do.php?img=79817"&gt;image4&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and this code for core M4 in the other project:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#include &amp;lt;LPC43xx.h&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;void delay_ms(int Del)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;long int i;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for(i=0;i&amp;lt;Del*8000;i++);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Boot the M0 core */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void lpc43xx_m0_boot(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* Make sure the M0 core is being held in reset via the RGU */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_RGU-&amp;gt;RESET_CTRL1 = (1 &amp;lt;&amp;lt; 24);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;int main(void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//LED2 P6.11&amp;nbsp; GPIO3[7]&amp;nbsp; FUNC0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCU-&amp;gt;SFSP6_11=0x00000028;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;DIR[3] |= (1 &amp;lt;&amp;lt;7);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//LED1 P6.12&amp;nbsp; GPIO2[8]&amp;nbsp; FUNC0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SCU-&amp;gt;SFSP6_12=0x00000028;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;DIR[2] |= (1 &amp;lt;&amp;lt;8); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;while (1)&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;&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;LPC_GPIO_PORT-&amp;gt;SET[3]=1&amp;lt;&amp;lt;7;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // GPIO3[7] :&amp;nbsp;&amp;nbsp; (LED D2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delay_ms(1000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;SET[2]=1&amp;lt;&amp;lt;8;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // GPIO2[8] :&amp;nbsp;&amp;nbsp; (LED D1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delay_ms(1000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;CLR[3]=1&amp;lt;&amp;lt;7;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // GPIO3[7] :&amp;nbsp;&amp;nbsp; (LED D2)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delay_ms(1000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_GPIO_PORT-&amp;gt;CLR[2]=1&amp;lt;&amp;lt;8;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // GPIO2[8] :&amp;nbsp;&amp;nbsp; (LED D1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delay_ms(1000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and setting for M0 core like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://www.freeuploadsite.com/do.php?img=79818"&gt;image5&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://www.freeuploadsite.com/do.php?img=79819"&gt;image6&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://www.freeuploadsite.com/do.php?img=79820"&gt;image7&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://http://www.freeuploadsite.com/do.php?img=79821"&gt;image8&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i should say that i use wizard project in keil 5 to make these tow project&amp;nbsp; &amp;amp; i want to run all of these project by using any new heeder file or lib :~ &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i want to do all the necessary work like releasing M0 core from reset just by basic registers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i read all of corresponsive post in this site and in internet, but i just confused !!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for attention&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:06:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Make-blinky-example-work-for-the-cortex-M4-and-the-cortex-M0/m-p/581378#M20436</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:06:10Z</dc:date>
    </item>
  </channel>
</rss>

