<?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>Sensors中的主题 Re: Arduino as ISP + Flash Magic don't work on NHS3152</title>
    <link>https://community.nxp.com/t5/Sensors/Arduino-as-ISP-Flash-Magic-don-t-work-on-NHS3152/m-p/808339#M5191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I finally managed to solve the problem, now I can program the NHS3152 chip with LPCXpresso and Flash Magic.&lt;/P&gt;&lt;P&gt;My wiring was correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I was doing wrong is the following two points :&lt;/P&gt;&lt;P&gt;1. I wasn't putting the JP2 pins in short-circuit on the LPC-Link2 board, now I do&lt;/P&gt;&lt;P&gt;2. AND I wasn't powering the chip during the programming, now I do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I was missing one of the two points, the chip wasn't detected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Achraf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Nov 2018 13:28:08 GMT</pubDate>
    <dc:creator>achraf_kabbabi</dc:creator>
    <dc:date>2018-11-19T13:28:08Z</dc:date>
    <item>
      <title>Arduino as ISP + Flash Magic don't work on NHS3152</title>
      <link>https://community.nxp.com/t5/Sensors/Arduino-as-ISP-Flash-Magic-don-t-work-on-NHS3152/m-p/808336#M5188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use a NHS3152 to monitor external resistors in "real-time".&lt;/P&gt;&lt;P&gt;I'm trying to upload a demo code on a NHS3152 chip with an Arduino UNO board (as ISP programmer), but I'm already facing a basic issue : I get a "Failed to autobaud" error.&lt;/P&gt;&lt;P&gt;I guess it means the NHS3152 couldn't be successfully detected, but I can't figure out why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="error.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62921i985056BD02DE10C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="error.png" alt="error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how I wired the NHS3152 to the Arduino :&lt;/P&gt;&lt;P&gt;- The NHS3152's MOSI to Arduino's MOSI (11)&lt;BR /&gt; - The NHS3152's MISO to Arduino's MISO (12)&lt;BR /&gt; - The NHS3152's SCLK to Arduino's SCK (13)&lt;BR /&gt; - The NHS3152's&amp;nbsp;SSEL to Arduino's&amp;nbsp;SS (10)&lt;BR /&gt; - The NHS3152's VSS to Arduino's GND&lt;BR /&gt; - The NHS3152's VDBAT to the Arduino's 3.3V (because the chip doesn't support more than 3.6V)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="wiring_diagram.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62971i43D89BAE32CBA441/image-size/large?v=v2&amp;amp;px=999" role="button" title="wiring_diagram.png" alt="wiring_diagram.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assumed the pins shown in the datasheet correspond to a top view.&lt;/P&gt;&lt;P&gt;Here is the real setup (without the wires) :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20181106_153239-min.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63009i3C88B4FADBE12638/image-size/large?v=v2&amp;amp;px=999" role="button" title="20181106_153239-min.jpg" alt="20181106_153239-min.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked that all Arduino's pins don't deliver more than 3.3V (the digital pins 10,11,12,13 deliver 1.7V).&lt;/P&gt;&lt;P&gt;Does anybody see something wrong in what I proceeded ? Any suggestions ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 14:55:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Arduino-as-ISP-Flash-Magic-don-t-work-on-NHS3152/m-p/808336#M5188</guid>
      <dc:creator>achraf_kabbabi</dc:creator>
      <dc:date>2018-11-06T14:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Arduino as ISP + Flash Magic don't work on NHS3152</title>
      <link>https://community.nxp.com/t5/Sensors/Arduino-as-ISP-Flash-Magic-don-t-work-on-NHS3152/m-p/808337#M5189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you check this post?&amp;nbsp;&lt;A href="https://community.nxp.com/thread/448763"&gt;NHS3100 Flashing using FlashMagic&lt;/A&gt;&amp;nbsp; I believe they had the same issue as you do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By any chance, have you checked&amp;nbsp;the guide&amp;nbsp;AN NHS31xx Firmware Flashing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That guide will help you through the process, for this device, it is most common&amp;nbsp;to use the built-in download feature in the LPCXpresso IDE and it's made for the Lpc-Link2 debug board to communicate with an NHS31xx IC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Estephania&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2018 15:46:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Arduino-as-ISP-Flash-Magic-don-t-work-on-NHS3152/m-p/808337#M5189</guid>
      <dc:creator>stephanie_m</dc:creator>
      <dc:date>2018-11-08T15:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Arduino as ISP + Flash Magic don't work on NHS3152</title>
      <link>https://community.nxp.com/t5/Sensors/Arduino-as-ISP-Flash-Magic-don-t-work-on-NHS3152/m-p/808338#M5190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Estephania,&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have all the necessary documentation, I also checked the link about the NHS3100 Flashing.&lt;/P&gt;&lt;P&gt;I canceled my plan of trying to program the NHS3152 with Arduino as ISP, and I bought the LPC-Link2 instead.&lt;/P&gt;&lt;P&gt;The LPC-Link2 gets successfully detected by LPCXpresso, as well as Flash Magic. However I still can't communicate with the chip !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is how I wired the setup (this time it doesn't follow the ISP/SPI wirings but JTAG/SWD instead) :&lt;/P&gt;&lt;P&gt;- NHS3152's PIO_10/CT32B_M0/SWCLK (15) to the JTAG's SWDCLK/TCK (4)&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;SPAN&gt;NHS3152's PIO_11/CT32B_M1/SWDIO (16) to the JTAG's SWDIO/TMS (2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;SPAN&gt;NHS3152's RESETN (9)&amp;nbsp;to the JTAG's nRESET (10)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;SPAN&gt;NHS3152's&amp;nbsp;VDBAT (7) to the JTAG's VTREF(1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-&amp;nbsp;&lt;SPAN&gt;NHS3152's&amp;nbsp;VSS (8) to the JTAG's&amp;nbsp;GND3 (3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And the JTAG/SWD connector is connected to the J7 block of LPC-Link2.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="jtag.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/74794i10667D7072105E29/image-size/large?v=v2&amp;amp;px=999" role="button" title="jtag.png" alt="jtag.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Did I wire the setup wrong ?&lt;/P&gt;&lt;P&gt;(I didn't connect the JTAG's GND3 and GND5 and GND_DET as suggested by the schemata, by the way I assumed this "Ground" comes from the LPC-Link2, or do I need to connect it to an external ground ?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N.B: One thing that worked for me : Programming the chip through my Android phone (via NFC) using the compiled .bin file, thanks to the NHS31xx Downloader app !&lt;/P&gt;&lt;P&gt;However, the programming process is a "one-shot" : Once I upload a program on the NHS3152, I can't upload a second one (or if the downloading fails, the chip is dead and I can't communicate with it anymore) ... And I guess using the LPC-Link2 and LPCXpresso is supposed to make me reprogram the chip as many times as I want. I can't debug for the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm a newbie to the field so maybe I missed simple things, please let me know if you have an idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Achraf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2018 15:23:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Arduino-as-ISP-Flash-Magic-don-t-work-on-NHS3152/m-p/808338#M5190</guid>
      <dc:creator>achraf_kabbabi</dc:creator>
      <dc:date>2018-11-12T15:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: Arduino as ISP + Flash Magic don't work on NHS3152</title>
      <link>https://community.nxp.com/t5/Sensors/Arduino-as-ISP-Flash-Magic-don-t-work-on-NHS3152/m-p/808339#M5191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I finally managed to solve the problem, now I can program the NHS3152 chip with LPCXpresso and Flash Magic.&lt;/P&gt;&lt;P&gt;My wiring was correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I was doing wrong is the following two points :&lt;/P&gt;&lt;P&gt;1. I wasn't putting the JP2 pins in short-circuit on the LPC-Link2 board, now I do&lt;/P&gt;&lt;P&gt;2. AND I wasn't powering the chip during the programming, now I do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I was missing one of the two points, the chip wasn't detected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Achraf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 13:28:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Arduino-as-ISP-Flash-Magic-don-t-work-on-NHS3152/m-p/808339#M5191</guid>
      <dc:creator>achraf_kabbabi</dc:creator>
      <dc:date>2018-11-19T13:28:08Z</dc:date>
    </item>
  </channel>
</rss>

