<?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>S12 / MagniV MicrocontrollersのトピックRe: MC9S12C32 - Debugging interrupts and some other questions</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12C32-Debugging-interrupts-and-some-other-questions/m-p/144198#M3703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;gt;1. is there anyway with the codewarrior or some other tool to watch how the interrupts work?&lt;/DIV&gt;&lt;DIV&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Or at least run the program for a while on the board and then stop and get the data from it?&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Well you should be able to start execution of the application, stop it after a while and look at any variable, memory area in the debugger. I am not sure I understand the problem or question here.&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&amp;gt;2. When using a timer interrupt I define a function using it to be an interrupt 16.&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; What does this "16" mean and where can I find it in the vector table?&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;interrupt 16 means entry 16 in the vector table.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; Entry 0 is the reset vector (located at 0xFFFE)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; Entry 1 is the clock monitor fail interrupt (located at 0xFFFC)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; and so on.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;interrupt 16 is the interrupt located at address 0xFFDE and it the standard timer overflow interrupt.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Please look at the MC9s12C Family reference manual that you can download from following URL:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MC9S12C32" rel="nofollow" target="_blank"&gt;http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MC9S12C32&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;Section 1.6 there is describing the vector table entries.&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&amp;gt;3. Any tutorial on writing/reading data from the board while it's running??&lt;/DIV&gt;&lt;DIV&gt;You can look at data while the application is running using the periodical refresh mode.&lt;/DIV&gt;&lt;DIV&gt;Be careful, depending on the number of variables you want to look at this may be intrusive (i.e. change the real time behavior of the system).&lt;/DIV&gt;&lt;DIV&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use Data window&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- In your debugger is you are using the default layout, you have a window called Data:1 showing&amp;nbsp;&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;"Global" on the right hand side of the information bar (on top of the window).&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; Click with the right mouse button in the Data:1 window&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; Select "Open Module" in the drop down menu. a Modules dialog is opened.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; Select the source file where the variable is defined.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; You will see the current value of the variable in the Data window.&lt;BR /&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use an expression in a Data Window&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; In your debugger is you are using the default layout, you have a window called Data:1 showing&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;"Global" on the right hand side of the information bar (on top of the window).&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;Drag the variable name from the Source Window to the Data window.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- You should be able to see the variable value in the Expression window.&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use visualization window&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; Select "Component" -&amp;gt; "Open". The "Open Window Component" dialog is opened.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; Double click on "Visualization Tool" component. A new window is opened called "Visualization tool"&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; Click with the right mouse button in the visualization tool component and select "Add new&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; Instruments" -&amp;gt; "Value as Text&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; Place the instrument somewhere in the window (just click inside of the window).&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; Click with the right mouse button on the instrument and select "Properties"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; Set "Kind of Port" to Variable, specify the variable name in "Port to Display" and adjust text you want&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;to see in front of the value in "Field description".&lt;/DIV&gt;&lt;DIV&gt;If you are using V3.1 tools or earlier, option 2 and 3 will not allow you to browse (or navigate) within a structure or pointer.&lt;BR /&gt;If you upgrade to V4.5 or higher, you will be able to browse within data structure or a pointer in option 2 too.&lt;BR /&gt;Also upgrading to V4.5 or higher will allow you to just drag and drop a variable from the data window to the visualization tool window. Visualization tool is not suited to browse or navigate within a data structure or a pointer.&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;To activate periodical refresh on Data window: click right within the data window and select "Mode" -&amp;gt; "Periodical". You can adjust refresh period there.&lt;/DIV&gt;&lt;DIV&gt;To activate periodical refresh on the visualizationtool, Click right within the visualization tool window and set Refresh Mode to Periodical. You can also adjust refresh period in et dialog.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I hope this helps.&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Feb 2007 18:07:24 GMT</pubDate>
    <dc:creator>CrasyCat</dc:creator>
    <dc:date>2007-02-02T18:07:24Z</dc:date>
    <item>
      <title>MC9S12C32 - Debugging interrupts and some other questions</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12C32-Debugging-interrupts-and-some-other-questions/m-p/144197#M3702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I have several questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. is there anyway with the codewarrior or some other tool to watch how the interrupts work? Or at least run the program for a while on the board and then stop and get the data from it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. When using a timer interrupt I define a function using it to be an interrupt 16.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What does this "16" mean and where can I find it in the vector table?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Any tutorial on writing/reading data from the board while it's running??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 01:03:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12C32-Debugging-interrupts-and-some-other-questions/m-p/144197#M3702</guid>
      <dc:creator>LisaJ</dc:creator>
      <dc:date>2007-02-02T01:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12C32 - Debugging interrupts and some other questions</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12C32-Debugging-interrupts-and-some-other-questions/m-p/144198#M3703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;gt;1. is there anyway with the codewarrior or some other tool to watch how the interrupts work?&lt;/DIV&gt;&lt;DIV&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Or at least run the program for a while on the board and then stop and get the data from it?&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;Well you should be able to start execution of the application, stop it after a while and look at any variable, memory area in the debugger. I am not sure I understand the problem or question here.&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&amp;gt;2. When using a timer interrupt I define a function using it to be an interrupt 16.&lt;BR /&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; What does this "16" mean and where can I find it in the vector table?&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;interrupt 16 means entry 16 in the vector table.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; Entry 0 is the reset vector (located at 0xFFFE)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; Entry 1 is the clock monitor fail interrupt (located at 0xFFFC)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; and so on.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;interrupt 16 is the interrupt located at address 0xFFDE and it the standard timer overflow interrupt.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;Please look at the MC9s12C Family reference manual that you can download from following URL:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MC9S12C32" rel="nofollow" target="_blank"&gt;http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MC9S12C32&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;Section 1.6 there is describing the vector table entries.&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;&amp;gt;3. Any tutorial on writing/reading data from the board while it's running??&lt;/DIV&gt;&lt;DIV&gt;You can look at data while the application is running using the periodical refresh mode.&lt;/DIV&gt;&lt;DIV&gt;Be careful, depending on the number of variables you want to look at this may be intrusive (i.e. change the real time behavior of the system).&lt;/DIV&gt;&lt;DIV&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use Data window&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- In your debugger is you are using the default layout, you have a window called Data:1 showing&amp;nbsp;&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;"Global" on the right hand side of the information bar (on top of the window).&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; Click with the right mouse button in the Data:1 window&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; Select "Open Module" in the drop down menu. a Modules dialog is opened.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; Select the source file where the variable is defined.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; You will see the current value of the variable in the Data window.&lt;BR /&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use an expression in a Data Window&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; In your debugger is you are using the default layout, you have a window called Data:1 showing&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;"Global" on the right hand side of the information bar (on top of the window).&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp;Drag the variable name from the Source Window to the Data window.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;- You should be able to see the variable value in the Expression window.&amp;nbsp;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Use visualization window&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; Select "Component" -&amp;gt; "Open". The "Open Window Component" dialog is opened.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; Double click on "Visualization Tool" component. A new window is opened called "Visualization tool"&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; Click with the right mouse button in the visualization tool component and select "Add new&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; Instruments" -&amp;gt; "Value as Text&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; Place the instrument somewhere in the window (just click inside of the window).&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; Click with the right mouse button on the instrument and select "Properties"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;nbsp; Set "Kind of Port" to Variable, specify the variable name in "Port to Display" and adjust text you want&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;to see in front of the value in "Field description".&lt;/DIV&gt;&lt;DIV&gt;If you are using V3.1 tools or earlier, option 2 and 3 will not allow you to browse (or navigate) within a structure or pointer.&lt;BR /&gt;If you upgrade to V4.5 or higher, you will be able to browse within data structure or a pointer in option 2 too.&lt;BR /&gt;Also upgrading to V4.5 or higher will allow you to just drag and drop a variable from the data window to the visualization tool window. Visualization tool is not suited to browse or navigate within a data structure or a pointer.&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;To activate periodical refresh on Data window: click right within the data window and select "Mode" -&amp;gt; "Periodical". You can adjust refresh period there.&lt;/DIV&gt;&lt;DIV&gt;To activate periodical refresh on the visualizationtool, Click right within the visualization tool window and set Refresh Mode to Periodical. You can also adjust refresh period in et dialog.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I hope this helps.&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 18:07:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12C32-Debugging-interrupts-and-some-other-questions/m-p/144198#M3703</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-02-02T18:07:24Z</dc:date>
    </item>
  </channel>
</rss>

