<?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: Frequency change constantly - MC9S08QE8 in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Frequency-change-constantly-MC9S08QE8/m-p/210353#M18032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This just happened to me with a QG8&lt;/P&gt;&lt;P&gt;turns out it was my PRM file settings, which I'd been messing around with in order to write to flash&amp;nbsp;- if you don't set your program to start execution at the right point (VECTOR 0 _Startup), ie the spot where you've told the linker to stick the program data into flash, then it will never get to the code you have which sets up your ICS registers. And it doesn't know what to do and flies all over the place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a copy of my PRM file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/* This is a linker parameter file for the mc9s08qg8 */NAMES END /* CodeWarrior will pass all the needed files to the linker by command line.              But here you may add your own files too. */SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */    Z_RAM                    =  READ_WRITE   0x0060 TO 0x00FF;    RAM                      =  READ_WRITE   0x0100 TO 0x01FF;    MY_RAM                   =  READ_WRITE   0x0200 TO 0x025F;     F_ROM                    =  READ_ONLY    0xE000 TO 0xE05F RELOCATE_TO 0x0200;     ROM                      =  READ_ONLY    0xE060 TO 0xFFCF; /* INTVECTS                 =  READ_ONLY    0xFFD0 TO 0xFFFF; Reserved for Interrupt Vectors */ENDPLACEMENT /* Here all predefined and user segments are placed into the SEGMENTS defined above. */        DEFAULT_RAM                         INTO  RAM;    //non zero-page variables    FlashRAM                            INTO  F_ROM;  //Flash Write routine                                           _PRESTART,                          /* startup code */    STARTUP,                            /* startup data structures */    ROM_VAR,                            /* constant variables */    STRINGS,                            /* string literals */    VIRTUAL_TABLE_SEGMENT,              /* C++ virtual table segment */    DEFAULT_ROM,    COPY                                INTO  ROM;/* copy down information: how to initialize variables */                                                                                     _DATA_ZEROPAGE,                     /* zero page variables */    MY_ZEROPAGE                         INTO  Z_RAM;ENDSTACKSIZE 0x50VECTOR 0 _Startup /* Reset vector: this is the default entry point for an application. */&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps somebody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jun 2010 00:46:15 GMT</pubDate>
    <dc:creator>z537z</dc:creator>
    <dc:date>2010-06-16T00:46:15Z</dc:date>
    <item>
      <title>Frequency change constantly - MC9S08QE8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Frequency-change-constantly-MC9S08QE8/m-p/210352#M18031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Now, i can communicate with MCU 9S08QE8 (16Pins) via cyclone PRO. when i erase and flash my program every thing is OK. See the following traces come from True time Simulator&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Frequency change to ~47011162hz.&lt;BR /&gt;Frequency change to ~51944392hz.&lt;BR /&gt;Frequency change to ~4841685hz.&lt;BR /&gt;Warning a RESET has occured.&lt;BR /&gt;Device is 9S08QE8.&lt;BR /&gt;Mode is In-Circuit Debug.&lt;BR /&gt;IO registers loaded for MC9S08QE8 from C:\Program Files\Freescale\CodeWarrior for Microcontrollers V6.2\prog\REG\MCU1041.REG&lt;BR /&gt;executing .\cmd\BDM_P&amp;amp;E_Multilink_CyclonePro_startup.cmd&lt;/DIV&gt;&lt;DIV&gt;!// At startup the commands written below will be executed&lt;BR /&gt;Target Ready&lt;BR /&gt;done .\cmd\BDM_P&amp;amp;E_Multilink_CyclonePro_startup.cmd&lt;/DIV&gt;&lt;DIV&gt;Startup command file correctly executed.&lt;BR /&gt;executing .\cmd\BDM_P&amp;amp;E_Multilink_CyclonePro_preload.cmd&lt;/DIV&gt;&lt;DIV&gt;!// Before load the commands written below will be executed&lt;BR /&gt;done .\cmd\BDM_P&amp;amp;E_Multilink_CyclonePro_preload.cmd&lt;/DIV&gt;&lt;DIV&gt;Preload command file correctly executed.&lt;BR /&gt;CYCLONE PRO detected - Flash Version 8.09&lt;BR /&gt;Frequency change to ~4001332hz.&lt;BR /&gt;Frequency change to ~4751542hz.&lt;BR /&gt;Frequency change to ~3997507hz.&lt;BR /&gt;executing C:\Documents and Settings\dle\Mes documents\Developpement\Projet\PWSE\Datasheet\Freescale-Moto\Dev\MC9S08QE8\PWSE\bin\Project.xpr&lt;/DIV&gt;&lt;DIV&gt;!Data:1 &amp;lt; ADDXPR ONLY_ADD_IF_NEW "CalFlash"&lt;BR /&gt;MCU Device Selection has been changed.&lt;BR /&gt;!Data:1 &amp;lt; ADDXPR ONLY_ADD_IF_NEW "_SCIC2"&lt;BR /&gt;!Data:1 &amp;lt; ADDXPR ONLY_ADD_IF_NEW "RX_car"&lt;BR /&gt;!Data:1 &amp;lt; ADDXPR ONLY_ADD_IF_NEW "Buf_car"&lt;BR /&gt;!Data:1 &amp;lt; ADDXPR ONLY_ADD_IF_NEW "PTBDD_PTBDD3"&lt;BR /&gt;!Data:1 &amp;lt; ADDXPR ONLY_ADD_IF_NEW "_PTBDD"&lt;BR /&gt;!Data:1 &amp;lt; ADDXPR ONLY_ADD_IF_NEW "_ICSC1"&lt;BR /&gt;!Data:2 &amp;lt; ADDXPR ONLY_ADD_IF_NEW "CDac"&lt;BR /&gt;!Data:2 &amp;lt; ADDXPR ONLY_ADD_IF_NEW "Val_T"&lt;BR /&gt;!Data:2 &amp;lt; ADDXPR ONLY_ADD_IF_NEW "MBus.MB"&lt;BR /&gt;!Data:2 &amp;lt; ADDXPR ONLY_ADD_IF_NEW "MBus.MBE"&lt;BR /&gt;!Data:2 &amp;lt; ADDXPR ONLY_ADD_IF_NEW "Buf_car"&lt;BR /&gt;!Data:2 &amp;lt; ADDXPR ONLY_ADD_IF_NEW "_PTBD"&lt;BR /&gt;done C:\Documents and Settings\dle\Mes documents\Developpement\Projet\PWSE\Datasheet\Freescale-Moto\Dev\MC9S08QE8\PWSE\bin\Project.xpr&lt;/DIV&gt;&lt;DIV&gt;executing .\cmd\BDM_P&amp;amp;E_Multilink_CyclonePro_postload.cmd&lt;/DIV&gt;&lt;DIV&gt;!// After load the commands written below will be executed&lt;BR /&gt;done .\cmd\BDM_P&amp;amp;E_Multilink_CyclonePro_postload.cmd&lt;/DIV&gt;&lt;DIV&gt;Postload command file correctly executed.&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;After loading program, a MCU reset is doing. the SW start @ FA00 (Normal du to .prm file) but after the Clock bus is changed constanly without obtain #4MHz.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;main 0xFA00 T&lt;BR /&gt;Frequency change to ~0hz.&lt;BR /&gt;Frequency change to ~0hz.&lt;BR /&gt;STARTED&lt;BR /&gt;Frequency change to ~9958515hz.&lt;BR /&gt;RUNNING&lt;BR /&gt;Frequency change to ~24181012hz.&lt;BR /&gt;Frequency change to ~26799352hz.&lt;BR /&gt;Frequency change to ~0hz.&lt;BR /&gt;Frequency change to ~0hz.&lt;BR /&gt;Frequency change to ~0hz.&lt;BR /&gt;Frequency change to ~0hz.&lt;BR /&gt;Frequency change to ~0hz.&lt;BR /&gt;Frequency change to ~0hz.&lt;BR /&gt;Frequency change to ~9958515hz.&lt;BR /&gt;Frequency change to ~0hz.&lt;BR /&gt;Frequency change to ~0hz.&lt;BR /&gt;Frequency change to ~0hz.&lt;BR /&gt;Frequency change to ~31166610hz.&lt;BR /&gt;Frequency change to ~0hz.&lt;BR /&gt;Frequency change to ~0hz.&lt;BR /&gt;Frequency change to ~0hz.&lt;BR /&gt;Frequency change to ~0hz.&lt;BR /&gt;Frequency change to ~0hz.&lt;BR /&gt;Frequency change to ~0hz.&lt;BR /&gt;Frequency change to ~0hz.&lt;BR /&gt;Frequency change to ~26214892hz.&lt;BR /&gt;Frequency change to ~0hz.&lt;BR /&gt;Frequency change to ~15847357hz.&lt;BR /&gt;Frequency change to ~0hz.&lt;BR /&gt;Frequency change to ~0hz.&lt;BR /&gt;STOPPING&lt;BR /&gt;HALTED &lt;DIV&gt;in&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Following my ICS register.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ICSC1_CLKS0 = 1;&lt;BR /&gt;ICSC1_CLKS1 = 0;&lt;BR /&gt;ICSC2_BDIV0 = 1;&lt;BR /&gt;ICSC2_BDIV1 = 0;&lt;BR /&gt;ICSTRM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0xC3;&lt;/DIV&gt;&lt;DIV&gt;I would like a bus frequency @ 4MHz&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks David&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Added p/n to subject.&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by NLFSJ on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2008-12-16&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;09:44 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 22:30:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Frequency-change-constantly-MC9S08QE8/m-p/210352#M18031</guid>
      <dc:creator>DavidoBG</dc:creator>
      <dc:date>2008-12-16T22:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Frequency change constantly - MC9S08QE8</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Frequency-change-constantly-MC9S08QE8/m-p/210353#M18032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This just happened to me with a QG8&lt;/P&gt;&lt;P&gt;turns out it was my PRM file settings, which I'd been messing around with in order to write to flash&amp;nbsp;- if you don't set your program to start execution at the right point (VECTOR 0 _Startup), ie the spot where you've told the linker to stick the program data into flash, then it will never get to the code you have which sets up your ICS registers. And it doesn't know what to do and flies all over the place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a copy of my PRM file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/* This is a linker parameter file for the mc9s08qg8 */NAMES END /* CodeWarrior will pass all the needed files to the linker by command line.              But here you may add your own files too. */SEGMENTS /* Here all RAM/ROM areas of the device are listed. Used in PLACEMENT below. */    Z_RAM                    =  READ_WRITE   0x0060 TO 0x00FF;    RAM                      =  READ_WRITE   0x0100 TO 0x01FF;    MY_RAM                   =  READ_WRITE   0x0200 TO 0x025F;     F_ROM                    =  READ_ONLY    0xE000 TO 0xE05F RELOCATE_TO 0x0200;     ROM                      =  READ_ONLY    0xE060 TO 0xFFCF; /* INTVECTS                 =  READ_ONLY    0xFFD0 TO 0xFFFF; Reserved for Interrupt Vectors */ENDPLACEMENT /* Here all predefined and user segments are placed into the SEGMENTS defined above. */        DEFAULT_RAM                         INTO  RAM;    //non zero-page variables    FlashRAM                            INTO  F_ROM;  //Flash Write routine                                           _PRESTART,                          /* startup code */    STARTUP,                            /* startup data structures */    ROM_VAR,                            /* constant variables */    STRINGS,                            /* string literals */    VIRTUAL_TABLE_SEGMENT,              /* C++ virtual table segment */    DEFAULT_ROM,    COPY                                INTO  ROM;/* copy down information: how to initialize variables */                                                                                     _DATA_ZEROPAGE,                     /* zero page variables */    MY_ZEROPAGE                         INTO  Z_RAM;ENDSTACKSIZE 0x50VECTOR 0 _Startup /* Reset vector: this is the default entry point for an application. */&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps somebody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jun 2010 00:46:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Frequency-change-constantly-MC9S08QE8/m-p/210353#M18032</guid>
      <dc:creator>z537z</dc:creator>
      <dc:date>2010-06-16T00:46:15Z</dc:date>
    </item>
  </channel>
</rss>

