<?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 Re: Three Questions about TBDML in OSBDM and TBDML</title>
    <link>https://community.nxp.com/t5/OSBDM-and-TBDML/Three-Questions-about-TBDML/m-p/127056#M38</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;ad 1) Use new CodeWarrior. 3.1 is too old and does not support some of the feature required for flash programming.&lt;BR /&gt;&lt;BR /&gt;ad 2) Probably the same as 1). Try this with version 4.5. If it persists, I will have a look into it.&lt;BR /&gt;&lt;BR /&gt;ad 3) These are my original numbers. The divide by 2 was added by whoever did the JB16 port as JB16 runs twice as fast. The numbers come from the BDM requirements. Some of these come from the S12 documentation, some of them are my own as the manual is not detailed enough.&lt;BR /&gt;&lt;BR /&gt;A) Transmission&lt;BR /&gt;&lt;BR /&gt;Every bit starts with a low pulse, this low pulse must be:&lt;BR /&gt;&lt;BR /&gt;A1) At least 2 BDM clock cycles long when transmitting a '1'&lt;BR /&gt;A2) Max. 8 BDM clock cycles long when transmitting a '1'&lt;BR /&gt;A3) At least 11 BDM clock cycles long when transmitting a '0'&lt;BR /&gt;A4) Max. 14 BDM clock cycles long when transmitting a '0'&lt;BR /&gt;&lt;BR /&gt;Also&lt;BR /&gt;&lt;BR /&gt;A5) The next bit cannot start before 16 BDM clock cycles from the beginning of the current bit&lt;BR /&gt;&lt;BR /&gt;B) Reception&lt;BR /&gt;&lt;BR /&gt;B1) Every bit starts with a low pulse, this low pulse must be at least 2 BDM clock cycles long&lt;BR /&gt;B2) The input signal must not be sampled earlier than 9 BDM clock cycles from the beginning of the bit&lt;BR /&gt;B3) The input signal must not be sampled later than 12.33 BDM clock cycles from the beginning of the bit.&lt;BR /&gt;&lt;BR /&gt;Also&lt;BR /&gt;&lt;BR /&gt;B4) The next bit cannot start before 16 BDM clock cycles from the beginning of the current bit&lt;BR /&gt;&lt;BR /&gt;These constraints dictate the BDM frequency limits for each routine. The capabilities of the different routines overlap (e.g. at 6.5MHz BDM clock you can use either bdm_tx1 or bdm_tx2 and both will work). The mid point in the overlap is selected as the treshold for switching from one of the routines to the other to give the cable maximum immunity against target frequency variations and noise.&lt;BR /&gt;&lt;BR /&gt;The situation is further complicated by the fact that when the cable measures BDM frequency of the device by using the SYNC BDM command, the measurement is inaccurate, so more overlap is needed to account for this inaccuracy.&lt;BR /&gt;&lt;BR /&gt;You want to give the overlap as large as possible to guarantee functionality, but on the other hand you want to limit the number of routines which need to be created as this wastes Flash space in the JB8. It took me a while to come up with minimum number of routines which cover the whole band with the required overlaps (at least I believe this is the minimum set for my constraints).&lt;BR /&gt;&lt;BR /&gt;The Tx constraints are harder to satisfy and therefore you have more Tx routines than there are Rx routines.&lt;BR /&gt;&lt;BR /&gt;I hope this answers your question.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Aug 2006 17:13:46 GMT</pubDate>
    <dc:creator>DanielM</dc:creator>
    <dc:date>2006-08-21T17:13:46Z</dc:date>
    <item>
      <title>Three Questions about TBDML</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/Three-Questions-about-TBDML/m-p/127055#M37</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi!&lt;/DIV&gt;&lt;DIV&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; I have made the &lt;FONT color="#ff0000"&gt;TBDML&lt;/FONT&gt; with JB16,and I use CodeWarrior3.1 to devolop my project.If I make the project,and press the "debug" button,it can load my .s19 file to the flash successfully,and then I can use the command such as go,halt,step...,but I can't the "&lt;FONT color="#ff0000"&gt;load&lt;/FONT&gt;" and "&lt;FONT color="#ff0000"&gt;Flash&lt;/FONT&gt;" command.&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When I press the "&lt;FONT color="#ff0000"&gt;load&lt;/FONT&gt;" button,the message "&lt;FONT color="#ff0000"&gt;load failed&lt;/FONT&gt;" appear. But if I close the &lt;FONT color="#ff0000"&gt;True Time debbuger&lt;/FONT&gt; and press the "&lt;FONT color="#ff0000"&gt;debug&lt;/FONT&gt;" button again,it can load the .s19 file successfully.Why?&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT color="#ff0000"&gt;&lt;/FONT&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When I press the "&lt;FONT color="#ff0000"&gt;Flash"&lt;/FONT&gt; command,I can erase the select flash block,but when I want to load&lt;BR /&gt;the .s19 file. Nothing happened and no message box appear,the Flash is still blank.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When I read the JB16 firmware.I am confused by the Rx and Tx speed table.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;const unsigned int &lt;FONT color="#ff0000"&gt;bdm_tx_sel_tresholds&lt;/FONT&gt;[]=&lt;BR /&gt;&amp;nbsp; {914/2,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1129/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1335/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1541/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1747/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1952/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2157/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2465/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2877/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 3288/2,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 3800/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 4418/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 5136/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 6059/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 7189/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 8524/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 10066/2,&amp;nbsp;&amp;nbsp; 11814/2,&amp;nbsp;&amp;nbsp; 13867/2,&amp;nbsp;&amp;nbsp; 16988/2};&amp;nbsp;&lt;BR /&gt;void (* const bdm_tx_sel_ptrs[])(unsigned char)=&lt;BR /&gt;&amp;nbsp; {bdm_tx1, bdm_tx2, bdm_tx3, bdm_tx4, bdm_tx5, bdm_tx6, bdm_tx7, bdm_tx8, bdm_tx9, bdm_tx10,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; bdm_tx11,bdm_tx12,bdm_tx13,bdm_tx14,bdm_tx15,bdm_tx16,bdm_tx17,bdm_tx18,bdm_tx19,bdm_empty_rx_tx};&lt;/DIV&gt;&lt;DIV&gt;//new values for tics as the JB16 CPU is 2 times faster&lt;BR /&gt;const unsigned int &lt;FONT color="#ff0000"&gt;bdm_rx_sel_tresholds&lt;/FONT&gt;[]=&lt;BR /&gt;&amp;nbsp; {853/2,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1101/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1347/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1592/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 1837/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2202/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 2694/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 3303/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 4042/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 4897/2,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 5998/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 7346/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 9055/2,&amp;nbsp;&amp;nbsp;&amp;nbsp; 11257/2,&amp;nbsp;&amp;nbsp; 13952/2,&amp;nbsp;&amp;nbsp; 17919/2};&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;Where&lt;/FONT&gt; the figures in the &lt;FONT color="#ff0000"&gt;bdm_tx_sel_tresholds&lt;/FONT&gt;&amp;nbsp; and&amp;nbsp; &lt;FONT color="#ff0000"&gt;bdm_rx_sel_tresholds&lt;/FONT&gt; tabel come from ?.Are they&amp;nbsp;measured by someone? How to &amp;nbsp;measure it?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2006 15:07:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/Three-Questions-about-TBDML/m-p/127055#M37</guid>
      <dc:creator>efan</dc:creator>
      <dc:date>2006-08-18T15:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Three Questions about TBDML</title>
      <link>https://community.nxp.com/t5/OSBDM-and-TBDML/Three-Questions-about-TBDML/m-p/127056#M38</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;ad 1) Use new CodeWarrior. 3.1 is too old and does not support some of the feature required for flash programming.&lt;BR /&gt;&lt;BR /&gt;ad 2) Probably the same as 1). Try this with version 4.5. If it persists, I will have a look into it.&lt;BR /&gt;&lt;BR /&gt;ad 3) These are my original numbers. The divide by 2 was added by whoever did the JB16 port as JB16 runs twice as fast. The numbers come from the BDM requirements. Some of these come from the S12 documentation, some of them are my own as the manual is not detailed enough.&lt;BR /&gt;&lt;BR /&gt;A) Transmission&lt;BR /&gt;&lt;BR /&gt;Every bit starts with a low pulse, this low pulse must be:&lt;BR /&gt;&lt;BR /&gt;A1) At least 2 BDM clock cycles long when transmitting a '1'&lt;BR /&gt;A2) Max. 8 BDM clock cycles long when transmitting a '1'&lt;BR /&gt;A3) At least 11 BDM clock cycles long when transmitting a '0'&lt;BR /&gt;A4) Max. 14 BDM clock cycles long when transmitting a '0'&lt;BR /&gt;&lt;BR /&gt;Also&lt;BR /&gt;&lt;BR /&gt;A5) The next bit cannot start before 16 BDM clock cycles from the beginning of the current bit&lt;BR /&gt;&lt;BR /&gt;B) Reception&lt;BR /&gt;&lt;BR /&gt;B1) Every bit starts with a low pulse, this low pulse must be at least 2 BDM clock cycles long&lt;BR /&gt;B2) The input signal must not be sampled earlier than 9 BDM clock cycles from the beginning of the bit&lt;BR /&gt;B3) The input signal must not be sampled later than 12.33 BDM clock cycles from the beginning of the bit.&lt;BR /&gt;&lt;BR /&gt;Also&lt;BR /&gt;&lt;BR /&gt;B4) The next bit cannot start before 16 BDM clock cycles from the beginning of the current bit&lt;BR /&gt;&lt;BR /&gt;These constraints dictate the BDM frequency limits for each routine. The capabilities of the different routines overlap (e.g. at 6.5MHz BDM clock you can use either bdm_tx1 or bdm_tx2 and both will work). The mid point in the overlap is selected as the treshold for switching from one of the routines to the other to give the cable maximum immunity against target frequency variations and noise.&lt;BR /&gt;&lt;BR /&gt;The situation is further complicated by the fact that when the cable measures BDM frequency of the device by using the SYNC BDM command, the measurement is inaccurate, so more overlap is needed to account for this inaccuracy.&lt;BR /&gt;&lt;BR /&gt;You want to give the overlap as large as possible to guarantee functionality, but on the other hand you want to limit the number of routines which need to be created as this wastes Flash space in the JB8. It took me a while to come up with minimum number of routines which cover the whole band with the required overlaps (at least I believe this is the minimum set for my constraints).&lt;BR /&gt;&lt;BR /&gt;The Tx constraints are harder to satisfy and therefore you have more Tx routines than there are Rx routines.&lt;BR /&gt;&lt;BR /&gt;I hope this answers your question.&lt;BR /&gt;&lt;BR /&gt;Daniel&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 17:13:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/OSBDM-and-TBDML/Three-Questions-about-TBDML/m-p/127056#M38</guid>
      <dc:creator>DanielM</dc:creator>
      <dc:date>2006-08-21T17:13:46Z</dc:date>
    </item>
  </channel>
</rss>

