<?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: Problem with S12ZVC startup code in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Problem-with-S12ZVC-startup-code/m-p/415939#M2759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Pascal, This thing worked out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Dhand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Sep 2015 09:28:33 GMT</pubDate>
    <dc:creator>amit_dhand</dc:creator>
    <dc:date>2015-09-01T09:28:33Z</dc:date>
    <item>
      <title>Problem with S12ZVC startup code</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Problem-with-S12ZVC-startup-code/m-p/415937#M2757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hello,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have a created a short code to initialise MCU clock before going to _Startup code.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is the code.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#include &amp;lt;hidef.h&amp;gt; /* for EnableInterrupts macro */&lt;/P&gt;&lt;P&gt;#include "derivative.h" /* include peripheral declarations */&lt;/P&gt;&lt;P&gt;#include &amp;lt;starts12z.h&amp;gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void PLL_init();&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void interrupt VectorNumber_Vreset Vreset_ISR();&lt;/P&gt;&lt;P&gt;void interrupt VectorNumber_Vreset Vreset_ISR()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PLL_init();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void main(void) &lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; EnableInterrupts;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* include your code here */&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(;;) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __RESET_WATCHDOG();&amp;nbsp;&amp;nbsp;&amp;nbsp; /* feeds the dog */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; } /* loop forever */&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* please make sure that you never leave main */&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void PLL_init() &lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CPMUCLKS_PLLSEL = 1;&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; //FBUS = FPLL/2.&amp;nbsp;&amp;nbsp; FBUS = 32MHz, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CPMUREFDIV_REFFRQ = 1;&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; //Reference clock between 2MHZ and 6MHZ.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CPMUREFDIV_REFDIV = 0x1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //FREF=8/(1+1) = 4MHZ&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CPMUSYNR_VCOFRQ = 0x1;&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; //FVCO is between 48MHZ and 80MHZ&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CPMUSYNR_SYNDIV = 0x7;&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; //FVCO = 2xFREFx(SYNDIV+1)&amp;nbsp;&amp;nbsp; =&amp;nbsp;&amp;nbsp; FVCO = 2x4x(7+1) = 64MHZ&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CPMUPOSTDIV_POSTDIV = 0x0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //FPLL = FVCO/(POSTDIV+1).&amp;nbsp; FPLL = 64MHZ/(0+1)&amp;nbsp;&amp;nbsp;&amp;nbsp; FPLL = 64MHz&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CPMUOSC_OSCE = 1;&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; //External oscillator enable. 8MHZ.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FREF=FOSC/(REFDIV+1)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(!CPMUIFLG_LOCK){}&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; // Wait for LOCK.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CPMUIFLG = 0xFF;&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; // clear CMPMU int flags - not needed but good practice&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __asm(jmp _Startup);&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; /* Jump to C startup code */&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I commented this part of code from LCF file&lt;/P&gt;&lt;P&gt;VECTOR 0 _Startup /* reset vector: this is the default entry point for a C/C++ application. */&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But the issue is now every time I debug the code with the setting as program entry point, it always jump into the startup code. It never comes to this function PLL_init.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I would like to know how S12ZVC microcontroller is configured for the program startup.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thank you,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Amit Dhand&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 07:31:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Problem-with-S12ZVC-startup-code/m-p/415937#M2757</guid>
      <dc:creator>amit_dhand</dc:creator>
      <dc:date>2015-09-01T07:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with S12ZVC startup code</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Problem-with-S12ZVC-startup-code/m-p/415938#M2758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a short example based on S12ZVML128.&lt;/P&gt;&lt;P&gt;For the debug option I've selected Stop at entry function.&lt;/P&gt;&lt;P&gt;When I launch the debug session the application is loaded and point to void _Startup(void) function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I added your code and commented the VECTOR 0 _Startup in prm file.&lt;/P&gt;&lt;P&gt;When I launch the Debugger, the application is loaded and point to the void _Startup(void) function too.&lt;/P&gt;&lt;P&gt;However if I click on reset, the application jump to the void interrupt VectorNumber_Vreset Vreset_ISR() function.&lt;/P&gt;&lt;P&gt;It should be the case on your side too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the entry point is defined at _Startup function.&lt;/P&gt;&lt;P&gt;To change it you must define a new one and need to add in prm file (see add the end):&lt;/P&gt;&lt;P&gt;INIT Vreset_ISR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I launch the debugger the application is loaded and point to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; void interrupt VectorNumber_Vreset Vreset_ISR()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Pascal&lt;BR /&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 09:00:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Problem-with-S12ZVC-startup-code/m-p/415938#M2758</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2015-09-01T09:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with S12ZVC startup code</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Problem-with-S12ZVC-startup-code/m-p/415939#M2759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Pascal, This thing worked out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Dhand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 09:28:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Problem-with-S12ZVC-startup-code/m-p/415939#M2759</guid>
      <dc:creator>amit_dhand</dc:creator>
      <dc:date>2015-09-01T09:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with S12ZVC startup code</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Problem-with-S12ZVC-startup-code/m-p/415940#M2760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pascal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using keyword INIT in LCF file to start from the reset vector is fine. But I observed a weird thing that when the PLL_init function executes the first line of code it jumps to the undefined state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then to observe it more clearly I created a ProcessorExpert project for S12ZVC and generated the code.&lt;/P&gt;&lt;P&gt;I got the definition of ISR(Cpu_Interrupt) and I created a similar one for Vreset_ISR which called the _EntryPoint function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ISR(Cpu_Interrupt)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*lint -save -e950 Disable MISRA rule (1.1) checking. */&lt;/P&gt;&lt;P&gt;&amp;nbsp; asm(BGND);&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*lint -restore Enable MISRA rule (1.1) checking. */&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ISR(Vreset_Interrupt)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _EntryPoint();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In LCF file&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;INIT Vreset_Interrupt&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; &lt;/TD&gt;&lt;TD&gt;/* The entry point of the application. This function is generated into the CPU module. */&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In vector.c vector table.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;_VECTOR(Vreset_Interrupt)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;/* 0x00FFFFFC&amp;nbsp; ivVreset&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;used by PE */&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I debug and execute first instruction of the _EntryPoint function, it jumps into this Cpu_Interrupt function and stays there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me out on this situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Dhand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 10:36:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Problem-with-S12ZVC-startup-code/m-p/415940#M2760</guid>
      <dc:creator>amit_dhand</dc:creator>
      <dc:date>2015-09-01T10:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with S12ZVC startup code</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Problem-with-S12ZVC-startup-code/m-p/415941#M2761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's true than the example code created it's not working.&lt;/P&gt;&lt;P&gt;I didn't checked it as it was not the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you're right with PEx code too.&lt;/P&gt;&lt;P&gt;The problem is the same in both cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Stack pointer is not initialized and I don't know exactly how is it defined by default.&lt;/P&gt;&lt;P&gt;Have a look to the cpu.c file.&lt;/P&gt;&lt;P&gt;Extract of void _EntryPoint(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*lint -save&amp;nbsp; -e950 Disable MISRA rule (1.1) checking. */&lt;/P&gt;&lt;P&gt;&amp;nbsp; __asm(jmp _Startup);&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; /* Jump to C startup code */&lt;/P&gt;&lt;P&gt;&amp;nbsp; /*lint -restore Enable MISRA rule (1.1) checking. */&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see the PEx code is not using c code to call the _Startup but the jmp assembly instruction.&lt;/P&gt;&lt;P&gt;The jmp is not saving the address function on stack.&lt;/P&gt;&lt;P&gt;It's important as the stack is not initialized in _EntryPoint but in _Startup only.&lt;/P&gt;&lt;P&gt;In the PEx example, if you change the code:&lt;/P&gt;&lt;P&gt;++++++++++++++&lt;/P&gt;&lt;P&gt;ISR(Vreset_Interrupt)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _EntryPoint();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;++++++++++++++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by:&lt;/P&gt;&lt;P&gt;++++++++++++++&lt;/P&gt;&lt;P&gt;ISR(Vreset_Interrupt)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __asm(jmp _EntryPoint);&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; /* Jump to _EntryPoint code */&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;++++++++++++++&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BACK to your Example code.&lt;/P&gt;&lt;P&gt;Just change the code:&lt;/P&gt;&lt;P&gt;void interrupt VectorNumber_Vreset Vreset_ISR();&lt;/P&gt;&lt;P&gt;void interrupt VectorNumber_Vreset Vreset_ISR()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; __asm(jmp PLL_init);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it's working.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pascal&lt;BR /&gt;Freescale Technical Support&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Sep 2015 13:43:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Problem-with-S12ZVC-startup-code/m-p/415941#M2761</guid>
      <dc:creator>trytohelp</dc:creator>
      <dc:date>2015-09-01T13:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with S12ZVC startup code</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Problem-with-S12ZVC-startup-code/m-p/415942#M2762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Pascal, I also thought the stack initialisation could be an issue with you. But thanks for confirming it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Dhand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Sep 2015 08:14:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Problem-with-S12ZVC-startup-code/m-p/415942#M2762</guid>
      <dc:creator>amit_dhand</dc:creator>
      <dc:date>2015-09-02T08:14:19Z</dc:date>
    </item>
  </channel>
</rss>

