<?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>8-bit Microcontrollers中的主题 Re: Static data at static addess?</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218661#M19038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again&lt;/P&gt;&lt;P&gt;I did try it&lt;/P&gt;&lt;P&gt;seem that application could help&lt;/P&gt;&lt;P&gt;but when I say execute it tell me wrong input file...&lt;/P&gt;&lt;P&gt;if i upload it would you be able to test it and&amp;nbsp; tell me how?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it say txt but its binay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Aug 2010 23:53:18 GMT</pubDate>
    <dc:creator>Juls</dc:creator>
    <dc:date>2010-08-17T23:53:18Z</dc:date>
    <item>
      <title>Static data at static addess?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218655#M19032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;BR /&gt;using some HCS08 chip&lt;BR /&gt;Putting code on it is easy&lt;BR /&gt;but I would like to know if its possible to have the debugger put 16Kb of a file inside the cpu flash at a static address?&lt;/P&gt;&lt;P&gt;like a script that program that file into memory atm of flashing code for debugging?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this way I could get that 16Kb data from the microcontroller (to send it with SCI).&lt;BR /&gt;&lt;BR /&gt;Maybe it would be easier to include it in codewarrior&lt;BR /&gt;but I dont know how for any of the two method&lt;BR /&gt;someone know a good solution???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 23:20:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218655#M19032</guid>
      <dc:creator>Juls</dc:creator>
      <dc:date>2010-08-16T23:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Static data at static addess?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218656#M19033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juls,&lt;/P&gt;&lt;BLOCKQUOTE&gt;What form is your 16K of data in?&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;If it can be made into a .S19 file, then the linker will include it with the rest of your program if you specify a "HEXFILE" line in your .PRM file. I do this to have DSP firmware included with the code for the S08 to download into a DSP at power-up.&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;As the last two lines of my .PRM file, I have:&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;HEXFILE&amp;nbsp;&amp;nbsp;&amp;nbsp; DSP,v3\Core0.s19&lt;BR /&gt;HEXFILE&amp;nbsp;&amp;nbsp;&amp;nbsp; DSP,v3\Core1.s19&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;Hope that works for you.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 01:31:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218656#M19033</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2010-08-17T01:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Static data at static addess?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218657#M19034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its binary&lt;/P&gt;&lt;P&gt;ill try to rename it and compile it for a cpu&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does CW have a limit size? just not sure if it will count the 16KB file as "code"&lt;/P&gt;&lt;P&gt;and what is the actual addess the linker will put the hexfile? is at DSP in your example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 01:56:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218657#M19034</guid>
      <dc:creator>Juls</dc:creator>
      <dc:date>2010-08-17T01:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Static data at static addess?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218658#M19035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Juls,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know if there is a limit, but each of my DSP code images is 24k, so 16k will be fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The addresses used are specified in the .S19 file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 02:00:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218658#M19035</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2010-08-17T02:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Static data at static addess?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218659#M19036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok&lt;/P&gt;&lt;P&gt;then can you help me convert my 16KB binary to a s19 that place it at a know place in flash?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 02:18:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218659#M19036</guid>
      <dc:creator>Juls</dc:creator>
      <dc:date>2010-08-17T02:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Static data at static addess?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218660#M19037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The burner.exe in prog can convert binary files to srecords. Just start it, it has a UI which helps for one time conversions. it also supports a command line interface, look for batch burner in the manuals, if you want to include the conversion into the build.&lt;/P&gt;&lt;P&gt;srecord content does not count against the C code limitation (just as assembly, for example).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, when I remember right, there is an optional offset for the &amp;nbsp;HEXFILE prm command. Well there probably is a way in the burner to define a offset during the conversion as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 07:36:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218660#M19037</guid>
      <dc:creator>CompilerGuru</dc:creator>
      <dc:date>2010-08-17T07:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Static data at static addess?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218661#M19038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again&lt;/P&gt;&lt;P&gt;I did try it&lt;/P&gt;&lt;P&gt;seem that application could help&lt;/P&gt;&lt;P&gt;but when I say execute it tell me wrong input file...&lt;/P&gt;&lt;P&gt;if i upload it would you be able to test it and&amp;nbsp; tell me how?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it say txt but its binay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 23:53:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218661#M19038</guid>
      <dc:creator>Juls</dc:creator>
      <dc:date>2010-08-17T23:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: Static data at static addess?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218662#M19039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the help files I see "Supports Freescale and ELF/DWARF Object File Format, S-Records and Intel Hex Files as input "&lt;/P&gt;&lt;P&gt;I don't see binary here. BTW there's no command for input file format. You can specify output file format, but input file format seems being autodetected. And when burner doesn't recognise input file format, it just errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Juls,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try googling for bin to hex BIN2HEX or BIN2S19 utility. There also should be some bin&amp;nbsp;to C utility, which could convert binary file to C array initialization values like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;char arr[]={1,2,3,4.. etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 14:11:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218662#M19039</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2010-08-18T14:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Static data at static addess?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218663#M19040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks kef&lt;/P&gt;&lt;P&gt;I tried bin2hex&lt;/P&gt;&lt;P&gt;returned me an error on the lengh limit&lt;/P&gt;&lt;P&gt;but ill try again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i would like to avoid the giant 16kb static declaration in the code &lt;IMG alt=":smileyvery-happy:" class="emoticon emoticon-smileyvery-happy" id="smileyvery-happy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-very-happy.gif" title="Smiley Very Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 18:53:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218663#M19040</guid>
      <dc:creator>Juls</dc:creator>
      <dc:date>2010-08-18T18:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Static data at static addess?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218664#M19041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it work with bin2s19&lt;/P&gt;&lt;P&gt;but the output file is 44K&lt;/P&gt;&lt;P&gt;in the input is 64K&lt;/P&gt;&lt;P&gt;i will have to compare them sound weird that the output is shorter ....&lt;/P&gt;&lt;P&gt;more news tonight&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 20:17:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218664#M19041</guid>
      <dc:creator>Juls</dc:creator>
      <dc:date>2010-08-18T20:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Static data at static addess?</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218665#M19042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;update:&lt;/P&gt;&lt;P&gt;bin2s19 seem to do a good job&lt;/P&gt;&lt;P&gt;sinde with s2bin i get the exact same result of the input file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so compiled a little project for JM60 (I have an eval board of it)&lt;/P&gt;&lt;P&gt;HEXFILE lb.txt OFFSET 0xBFAE it in&lt;/P&gt;&lt;P&gt;and also a rom segments for it&lt;/P&gt;&lt;P&gt;LBROM&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; READ_ONLY&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xBFAE TO 0xFFAD;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and in full chip simulation it have the file at 0xBFAE address&lt;/P&gt;&lt;P&gt;that trick seem to work good&lt;/P&gt;&lt;P&gt;Thanks all for the help&lt;/P&gt;&lt;P&gt;If i get other question dont worry ill be back &lt;IMG alt=":smileyvery-happy:" class="emoticon emoticon-smileyvery-happy" id="smileyvery-happy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-very-happy.gif" title="Smiley Very Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 23:40:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Static-data-at-static-addess/m-p/218665#M19042</guid>
      <dc:creator>Juls</dc:creator>
      <dc:date>2010-08-18T23:40:55Z</dc:date>
    </item>
  </channel>
</rss>

