<?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>S32KのトピックRe: S32k342 Program Counter does not start at main</title>
    <link>https://community.nxp.com/t5/S32K/S32k342-Program-Counter-does-not-start-at-main/m-p/2035818#M45532</link>
    <description>&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I do not know what HSE is so probably not, what is it? How would I go about checking the possible causes for it to go jtag recovery such as the ones you listed?&lt;/P&gt;&lt;P&gt;I will also note that sometimes during programming flash it will completely freeze the S32DS and I have to turn off the board/debugger for it to fix. But only sometimes so I am a little concerned. The debugger still flashes other programs I have just fine so I assume something is wrong with the startup files being given to it?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pb632146_1-1738178921602.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/321854iB62F45897FD21F67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pb632146_1-1738178921602.png" alt="pb632146_1-1738178921602.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jan 2025 19:32:54 GMT</pubDate>
    <dc:creator>pb632146</dc:creator>
    <dc:date>2025-01-29T19:32:54Z</dc:date>
    <item>
      <title>S32k342 Program Counter does not start at main</title>
      <link>https://community.nxp.com/t5/S32K/S32k342-Program-Counter-does-not-start-at-main/m-p/2035624#M45514</link>
      <description>&lt;P&gt;When I try to debug my program it flashes properly, but then it puts itself into sram and never leaves.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Reading common registers: Read register 'r0' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r1' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r2' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r3' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r4' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r5' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r6' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r7' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r8' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r9' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r10' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r11' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r12' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'sp' (4 bytes) from hardware: 0x00024020&lt;BR /&gt;Read register 'lr' (4 bytes) from hardware: 0xFFFFFFFF&lt;BR /&gt;Read register 'pc' (4 bytes) from hardware: 0x2C014020&lt;BR /&gt;Read register 'xpsr' (4 bytes) from hardware: 0x00000001&lt;BR /&gt;Setting breakpoint @ address 0x004033BA, Kind = 2, Type = THUMB, BPHandle = 0x0001&lt;BR /&gt;Starting target CPU...&lt;BR /&gt;Debugger requested to halt target...&lt;BR /&gt;...Target halted (PC = 0x2040012E)&lt;BR /&gt;Reading common registers: Read register 'r0' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r1' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r2' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r3' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r4' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r5' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r6' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r7' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r8' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r9' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r10' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r11' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'r12' (4 bytes) from hardware: 0x00000000&lt;BR /&gt;Read register 'sp' (4 bytes) from hardware: 0x00024020&lt;BR /&gt;Read register 'lr' (4 bytes) from hardware: 0xFFFFFFFF&lt;BR /&gt;Read register 'pc' (4 bytes) from hardware: 0x2E014020&lt;BR /&gt;Read register 'xpsr' (4 bytes) from hardware: 0x00000001&lt;BR /&gt;Removing breakpoint @ address 0x004033BA, Size = 2&lt;BR /&gt;Read 4 bytes @ address 0x2040012E (Data = 0xFFFFE7FD)&lt;BR /&gt;Read 2 bytes @ address 0x2040012E (Data = 0xE7FD)&lt;BR /&gt;Reading 64 bytes @ address 0x00000000&lt;BR /&gt;WARNING: Failed to read memory @ address 0x00000000&lt;BR /&gt;WARNING: Failed to read memory @ address 0x00000000&lt;BR /&gt;Read 4 bytes @ address 0x2040012E (Data = 0xFFFFE7FD)&lt;/P&gt;&lt;P&gt;I can see that it has the breakpoint for the start of main, but instead the pc points to a random location in sram where the global variables are.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Removing breakpoint @ address 0x004033BA, Size = 2"&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pb632146_2-1738154241394.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/321819iC04AB82A3DDFCE4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pb632146_2-1738154241394.png" alt="pb632146_2-1738154241394.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but the line immediately after itin the console is&amp;nbsp;&lt;/P&gt;&lt;P&gt;Read 4 bytes @ address 0x2040012E (Data = 0xFFFFE7FD) which is just sram data&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pb632146_0-1738153778909.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/321818i37DCC0ECE2EADDA7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pb632146_0-1738153778909.png" alt="pb632146_0-1738153778909.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does anyone know what might cause this?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 12:38:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k342-Program-Counter-does-not-start-at-main/m-p/2035624#M45514</guid>
      <dc:creator>pb632146</dc:creator>
      <dc:date>2025-01-29T12:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: S32k342 Program Counter does not start at main</title>
      <link>https://community.nxp.com/t5/S32K/S32k342-Program-Counter-does-not-start-at-main/m-p/2035784#M45530</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/230291"&gt;@pb632146&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="test-idfield-value"&gt;JTAG recovery start address is 0x20400100, so it may be that some instructions were executed and then it crashed at that address.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="test-idfield-value"&gt;Do you have HSE downloaded into the MCU? There are some reasons JTAG recovery address is reached such as no IVT, 8 consecutive resets, or boot auth failed.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="test-idfield-value"&gt;Please check if any of these reasons apply. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="test-idfield-value"&gt;If not, it may be caused by a wrong clock configuration. Please check clock configuration table from S32K3xx's Reference Manual as well.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="test-idfield-value"&gt;Best regards,&lt;BR /&gt;Julián&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 17:46:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k342-Program-Counter-does-not-start-at-main/m-p/2035784#M45530</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2025-01-29T17:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: S32k342 Program Counter does not start at main</title>
      <link>https://community.nxp.com/t5/S32K/S32k342-Program-Counter-does-not-start-at-main/m-p/2035818#M45532</link>
      <description>&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I do not know what HSE is so probably not, what is it? How would I go about checking the possible causes for it to go jtag recovery such as the ones you listed?&lt;/P&gt;&lt;P&gt;I will also note that sometimes during programming flash it will completely freeze the S32DS and I have to turn off the board/debugger for it to fix. But only sometimes so I am a little concerned. The debugger still flashes other programs I have just fine so I assume something is wrong with the startup files being given to it?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pb632146_1-1738178921602.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/321854iB62F45897FD21F67/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pb632146_1-1738178921602.png" alt="pb632146_1-1738178921602.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 19:32:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k342-Program-Counter-does-not-start-at-main/m-p/2035818#M45532</guid>
      <dc:creator>pb632146</dc:creator>
      <dc:date>2025-01-29T19:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: S32k342 Program Counter does not start at main</title>
      <link>https://community.nxp.com/t5/S32K/S32k342-Program-Counter-does-not-start-at-main/m-p/2035829#M45533</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/230291"&gt;@pb632146&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;So, this issue is only present in that specific project? What exactly are you configuring in it? Are you able to share it?&lt;/P&gt;
&lt;P&gt;Also, are you able to test another debugger or board with this same project?&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 20:10:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32k342-Program-Counter-does-not-start-at-main/m-p/2035829#M45533</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2025-01-29T20:10:55Z</dc:date>
    </item>
  </channel>
</rss>

