<?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中的主题 Cant program flash or debug</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Cant-program-flash-or-debug/m-p/602252#M23413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LPC1837JET256, chip rev.'A', I'm using Keil and ulink2 (SWD)&amp;nbsp;on our hardware. I can not download to flash.&lt;/P&gt;&lt;P&gt;I get errors like: "Could not stop Cortex M device".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have verified signals in the debug connector. Pin10 was not reset, it has been changed. &amp;nbsp;&lt;/P&gt;&lt;P&gt;Got 10K pullup on SWDIO, SW0, TDI, 10k pulldown on SWDCLK. and TRST is floating.&lt;/P&gt;&lt;P&gt;Reset is 10k pullup and 100nF to GND, and a&amp;nbsp;switch to GND.&lt;/P&gt;&lt;P&gt;I checked DBGEN, it is at 3.3V.&lt;/P&gt;&lt;P&gt;ISP (P2_7 - A9 in my case) is at 3,3V during reset and else at 0,3V. See below too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I remove the reset signal, I can program flash and the 6 LED blinks as expected. Something is working....&lt;/P&gt;&lt;P&gt;I have compared the debug interface on my board with the MCB1800 EV-board and it seems to be identical.&lt;/P&gt;&lt;P&gt;If I switch to MCB1800 (LPC1857JET256, chip rev '-')&amp;nbsp;I can program and debug, so the ulink2 seems to work, project settings seems to be ok. There must be some kind of difference between the two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set ISP low (by a DIP switch) and toggels reset,&amp;nbsp;no LEDs are blinking&amp;nbsp;- it is in ISP mode. If I set DIP sw off and toggles reset the LEDs starts blinking - program running. So the ISP seems to be ok. I wonder why it is low after reset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached first 3 pages of my diagram and a more detailed description in word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas would be highly appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Feb 2017 11:36:55 GMT</pubDate>
    <dc:creator>johnnifriis</dc:creator>
    <dc:date>2017-02-06T11:36:55Z</dc:date>
    <item>
      <title>Cant program flash or debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Cant-program-flash-or-debug/m-p/602252#M23413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LPC1837JET256, chip rev.'A', I'm using Keil and ulink2 (SWD)&amp;nbsp;on our hardware. I can not download to flash.&lt;/P&gt;&lt;P&gt;I get errors like: "Could not stop Cortex M device".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have verified signals in the debug connector. Pin10 was not reset, it has been changed. &amp;nbsp;&lt;/P&gt;&lt;P&gt;Got 10K pullup on SWDIO, SW0, TDI, 10k pulldown on SWDCLK. and TRST is floating.&lt;/P&gt;&lt;P&gt;Reset is 10k pullup and 100nF to GND, and a&amp;nbsp;switch to GND.&lt;/P&gt;&lt;P&gt;I checked DBGEN, it is at 3.3V.&lt;/P&gt;&lt;P&gt;ISP (P2_7 - A9 in my case) is at 3,3V during reset and else at 0,3V. See below too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I remove the reset signal, I can program flash and the 6 LED blinks as expected. Something is working....&lt;/P&gt;&lt;P&gt;I have compared the debug interface on my board with the MCB1800 EV-board and it seems to be identical.&lt;/P&gt;&lt;P&gt;If I switch to MCB1800 (LPC1857JET256, chip rev '-')&amp;nbsp;I can program and debug, so the ulink2 seems to work, project settings seems to be ok. There must be some kind of difference between the two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I set ISP low (by a DIP switch) and toggels reset,&amp;nbsp;no LEDs are blinking&amp;nbsp;- it is in ISP mode. If I set DIP sw off and toggles reset the LEDs starts blinking - program running. So the ISP seems to be ok. I wonder why it is low after reset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached first 3 pages of my diagram and a more detailed description in word.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas would be highly appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 11:36:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Cant-program-flash-or-debug/m-p/602252#M23413</guid>
      <dc:creator>johnnifriis</dc:creator>
      <dc:date>2017-02-06T11:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cant program flash or debug</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Cant-program-flash-or-debug/m-p/602253#M23414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried NXP expreso with NXP-link2, worked out the box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It turned out there is an error in KEIL for the 18xx family. The feature can be disabled and it works....&lt;/P&gt;&lt;P&gt;I used uVision 5.21a, an update to 5.22 did not solve the issue. It will be solved in the next update - Keil support told me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To disable the feature, that is not working, go to:&lt;/P&gt;&lt;P&gt;Options for target -&amp;gt; Debug tap -&amp;gt; settings (for ULINK2) -&amp;gt; Pack:&amp;nbsp;Remove the checkmark in 'enable'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Feb 2017 13:27:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Cant-program-flash-or-debug/m-p/602253#M23414</guid>
      <dc:creator>johnnifriis</dc:creator>
      <dc:date>2017-02-07T13:27:39Z</dc:date>
    </item>
  </channel>
</rss>

