<?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>OSBDM and TBDMLのトピックRe: USBDM Cannot detect or program target</title>
    <link>https://community.nxp.com/t5/OSBDM-and-TBDML/USBDM-Cannot-detect-or-program-target/m-p/1783265#M3839</link>
    <description>&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Sorry but the logs still show&lt;/P&gt;&lt;P&gt;DeviceInterface.deviceName =&amp;gt; 1, '&lt;STRONG&gt;MC9S12A32&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;Could you do it yet again but close using the close button so changes persist &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;When re-opening check which device appears in the device selection to confirm this.&lt;/P&gt;&lt;P&gt;In the mean-time I'll have a closer look at the log provided.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;PS. I don't understand how this discussion board shows threads.&amp;nbsp; Could you make sure you reply &lt;EM&gt;to my reply&lt;/EM&gt; as it's getting confusing!&lt;/P&gt;&lt;P&gt;PPS. Looking at the logs you have provided the BDM is failing a simple write to the target.&amp;nbsp; This should work even with the wrong target selected.&amp;nbsp; I really suspect a physical problem with the connection.&lt;/P&gt;&lt;P&gt;I have confirmed that selecting the wrong chip has no effect on the initial write so I can't really suggest much else other than doing physical tests on the hardware.&amp;nbsp; Do you have a multimeter or better an oscilloscope?&amp;nbsp; If so I can suggest some further physical tests to do to test the interface.&amp;nbsp; ( I note that you have tried different hardware so maybe not!)&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jan 2024 01:32:34 GMT</pubDate>
    <dc:creator>pgo</dc:creator>
    <dc:date>2024-01-05T01:32:34Z</dc:date>
    <item>
      <title>USBDM Cannot detect or program target</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/USBDM-Cannot-detect-or-program-target/m-p/1780972#M3825</link>
      <description>&lt;P&gt;Hello, I have been trying to troubleshoot getting the HCS12 Programmer to detect and program unsuccessfully. With everything I have tried, the result is the same- When I select the target chip and press Detect Chip, I just get a popup that says:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Programming Error

Failed to connect to target
Reason: General Fail (for compatibility)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The target chip is an MC9S12P and I am using a JS16.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started by trying to use the latest USBDM software on sourceforge (4.12.295) and drivers (tried 4.12.1 as well as 4.12.3). I am able to see the JS16 in the device manager window under Debugging Interface. I got this far on both a windows 7 machine and a windows 11 machine (both 64 bit windows), but they both show the same popup. I also tried switching to a different JS16 as well as a different circuit board with the target chip and always got the same. I have used the USBDM firmware updater and made sure the JS16 were up to date as well.&lt;/P&gt;&lt;P&gt;Further troubleshooting:&lt;/P&gt;&lt;P&gt;After doing the above, I tried each of the different versions of USBDM on sourceforge (4.10.5, 4.10.6, 4.11.1) and got more of the same. I first uninstalled the current USBDM version and driver, then tried installing a new one each time. Though with those older versions, the driver install didn't seem to work- the install wizard said it failed due to an error (didn't say what it was) and that it was incomplete/no changes were made.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some info:&lt;/P&gt;&lt;P&gt;I am doing this work to help someone out. Previously, he did have a working USBDM setup with these exact JS16s/circuit boards with this same target chip to program and then the windows 7 machine crashed and needed to be factory reset. After a reset/reinstall, now things are not working. We do not remember/know what USBDM version was running before.&lt;/P&gt;&lt;P&gt;Any help or insight would be greatly appreciated. I have seen a number of posts on similar subjects with either no resolution or a resolution with a link (and the link always appears to be dead or invalid).&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2023 20:48:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/USBDM-Cannot-detect-or-program-target/m-p/1780972#M3825</guid>
      <dc:creator>Brittney412</dc:creator>
      <dc:date>2023-12-28T20:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: USBDM Cannot detect or program target</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/USBDM-Cannot-detect-or-program-target/m-p/1781309#M3826</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I no longer have a MC9S12P chip to test with so it's a bit of a problem checking for chip-specific problems.&lt;/P&gt;&lt;P&gt;The error message is generic and just means it can't connect to the target.&lt;/P&gt;&lt;P&gt;It will be produced if there is no power or connection to the target.&lt;/P&gt;&lt;P&gt;There us usually a second dialogue with another message but it may vary I guess.&lt;/P&gt;&lt;P&gt;===========================================&lt;/P&gt;&lt;P&gt;Please do the following to aid in testing:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Install the latest version from sourceforge (&lt;A title="Click to download USBDM_4_12_1_320_Win.msi" href="https://sourceforge.net/projects/usbdm/files/Version%204.12.1/Software/USBDM_4_12_1_320_Win.msi/download" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;USBDM_4_12_1_320_Win.msi&lt;/SPAN&gt;&lt;/A&gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="https://sourceforge.net/projects/usbdm/files/Version%204.12.1/Software/" target="_blank" rel="noopener"&gt;https://sourceforge.net/projects/usbdm/files/Version%204.12.1/Software&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is just so that it is consistent with the one I have installed in a VM for testing.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Run the debug version of the programmer usually located in&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;C:\Program Files\pgo\USBDM 4.12.1.320\&lt;/P&gt;&lt;P&gt;You will need to use the command (from the command line in above directory)&lt;/P&gt;&lt;P&gt;.\UsbdmFlashProgrammer-debug.exe -target=hcs12&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Try the failing operation&lt;/LI&gt;&lt;LI&gt;Upload the log files located in %APPDATA%\usbdm&lt;UL&gt;&lt;LI&gt;Flashprogrammer.log&lt;/LI&gt;&lt;LI&gt;usbdm.log&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This may provide some information on what is going wrong.&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Dec 2023 12:06:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/USBDM-Cannot-detect-or-program-target/m-p/1781309#M3826</guid>
      <dc:creator>pgo</dc:creator>
      <dc:date>2023-12-31T12:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: USBDM Cannot detect or program target</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/USBDM-Cannot-detect-or-program-target/m-p/1782599#M3835</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thanks for the reply. I've attached the logs.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 02:36:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/USBDM-Cannot-detect-or-program-target/m-p/1782599#M3835</guid>
      <dc:creator>Brittney412</dc:creator>
      <dc:date>2024-01-04T02:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: USBDM Cannot detect or program target</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/USBDM-Cannot-detect-or-program-target/m-p/1782736#M3836</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have only had a quick look at the logs.&lt;/P&gt;&lt;P&gt;It is failing pretty much straight away in a TCL script where it is trying to disable the watchdog on the chip.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have looked at the script on GUTHUB and there were some relatively recent changes made but I can't see how they could affect the operation (they were print messages for debug).&amp;nbsp; If you want to try a version before these changes you can try &lt;STRONG&gt;USBDM V4_12_1_275 (May 2022)&lt;/STRONG&gt; depending on your level of patience.&lt;/P&gt;&lt;P&gt;The chip appears to be secured (I think) which means that the BDM cannot fully connect to the target.&amp;nbsp; This is not fatal as it is still possible to mass erase the chip without a full connection.&lt;/P&gt;&lt;P&gt;I should have been more specific in my request - could you do the following sequence with the debug version of the programmer please (current version)?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Start the debug version of the programmer.&lt;/LI&gt;&lt;LI&gt;Manually set the target device correctly.&lt;/LI&gt;&lt;LI&gt;Exit the programmer (this just means the log will be shorter as the device doesn't need to be set.&lt;/LI&gt;&lt;LI&gt;Start the debug version of the programmer.&lt;/LI&gt;&lt;LI&gt;Do an immediate mass erase&lt;/LI&gt;&lt;LI&gt;Exit the programmer&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This is a minimal sequence that should always work!&lt;/P&gt;&lt;P&gt;As a I indicated, I cannot find a 9S12P device for testing.&amp;nbsp; I am using a 9S12HY64 which is very similar (same style flash, COP and BDM interface) and it works OK.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only way I was able to get a similar error message was by disconnecting the target entirely.&amp;nbsp; I would advise checking the BDM cable as I have had the ribbon-cable with crimped connectors fail without any visible sign.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 06:40:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/USBDM-Cannot-detect-or-program-target/m-p/1782736#M3836</guid>
      <dc:creator>pgo</dc:creator>
      <dc:date>2024-01-04T06:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: USBDM Cannot detect or program target</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/USBDM-Cannot-detect-or-program-target/m-p/1783230#M3838</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I did the two operations you described. I renamed the files to reflect what was done, attaching here for you. The mass erase failed, showing a similar failure message (general fail). I have tried this with two different ribbon cables; both could be bad, but that feels a little unlikely?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will be out of town for the next 10 days, but will try that earlier version when I return.&lt;/P&gt;&lt;P&gt;Thanks for the continued assistance.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 22:16:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/USBDM-Cannot-detect-or-program-target/m-p/1783230#M3838</guid>
      <dc:creator>Brittney412</dc:creator>
      <dc:date>2024-01-04T22:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: USBDM Cannot detect or program target</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/USBDM-Cannot-detect-or-program-target/m-p/1783265#M3839</link>
      <description>&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Sorry but the logs still show&lt;/P&gt;&lt;P&gt;DeviceInterface.deviceName =&amp;gt; 1, '&lt;STRONG&gt;MC9S12A32&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;Could you do it yet again but close using the close button so changes persist &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;When re-opening check which device appears in the device selection to confirm this.&lt;/P&gt;&lt;P&gt;In the mean-time I'll have a closer look at the log provided.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;PS. I don't understand how this discussion board shows threads.&amp;nbsp; Could you make sure you reply &lt;EM&gt;to my reply&lt;/EM&gt; as it's getting confusing!&lt;/P&gt;&lt;P&gt;PPS. Looking at the logs you have provided the BDM is failing a simple write to the target.&amp;nbsp; This should work even with the wrong target selected.&amp;nbsp; I really suspect a physical problem with the connection.&lt;/P&gt;&lt;P&gt;I have confirmed that selecting the wrong chip has no effect on the initial write so I can't really suggest much else other than doing physical tests on the hardware.&amp;nbsp; Do you have a multimeter or better an oscilloscope?&amp;nbsp; If so I can suggest some further physical tests to do to test the interface.&amp;nbsp; ( I note that you have tried different hardware so maybe not!)&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 01:32:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/USBDM-Cannot-detect-or-program-target/m-p/1783265#M3839</guid>
      <dc:creator>pgo</dc:creator>
      <dc:date>2024-01-05T01:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: USBDM Cannot detect or program target</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/USBDM-Cannot-detect-or-program-target/m-p/1789806#M3862</link>
      <description>&lt;P&gt;Hello, I retried the steps from earlier. Logs attached here. I do have access to a multimeter/oscilloscope for further testing.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2024 00:26:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/USBDM-Cannot-detect-or-program-target/m-p/1789806#M3862</guid>
      <dc:creator>Brittney412</dc:creator>
      <dc:date>2024-01-17T00:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: USBDM Cannot detect or program target</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/USBDM-Cannot-detect-or-program-target/m-p/1791511#M3863</link>
      <description>&lt;P&gt;Hi Again,&lt;/P&gt;&lt;P&gt;Thanks for the logs, unfortunately I can't see anything really useful there.&lt;/P&gt;&lt;P&gt;It appears to be failing on the first write to the target after making a connection.&amp;nbsp; I can't think of a reason for that.&lt;/P&gt;&lt;P&gt;If you want to check waveforms I have attached a set of taken with a secured S12P128MQK which is effectively the same as the chip you are using.&amp;nbsp; It has the same reference manual and only differs in the amount of Flash memory.&lt;/P&gt;&lt;P&gt;To obtain these waveforms it is necessary to use &lt;STRONG&gt;&lt;EM&gt;UsbdmScript&lt;/EM&gt;&lt;/STRONG&gt; which is a TCL utility provided with the software.&amp;nbsp; The following commands are used (in order)&lt;/P&gt;&lt;PRE&gt;; Basic connection&lt;BR /&gt;settarget hcs12&lt;BR /&gt;; It will report BDMs found&lt;BR /&gt;openbdm&lt;BR /&gt;; To do the reset waveform&lt;BR /&gt;reset sh&lt;BR /&gt;; To do the remaining connect sequences - repeat as necessary&lt;BR /&gt;connect&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;bye&lt;/P&gt;&lt;P&gt;PS. Significance of waveforms&lt;/P&gt;&lt;P&gt;1 - RESET/BGND sequence - This should put the chip in Background mode (which disables watchdog by default).&lt;/P&gt;&lt;P&gt;2 -&amp;nbsp; Overview of connect (sync followed by communication)&lt;/P&gt;&lt;P&gt;3 - SYNC part of connect sequence - this allows the target clock frequency to be determined.&lt;/P&gt;&lt;P&gt;4 - 1st byte of communication - just to confirm the BDM ACK pulse (9th pulse after 8 data pulses)&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2024 03:26:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/USBDM-Cannot-detect-or-program-target/m-p/1791511#M3863</guid>
      <dc:creator>pgo</dc:creator>
      <dc:date>2024-01-19T03:26:22Z</dc:date>
    </item>
  </channel>
</rss>

