<?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: S32K148 JLINK debug error in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K148-JLINK-debug-error/m-p/1509858#M17257</link>
    <description>&lt;P&gt;HI&amp;nbsp;&amp;nbsp;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/198240" target="_self"&gt;&lt;SPAN class=""&gt;JRoberto&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have tried several debuggers,however, I cannot debug flash. All of them show same result.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;“Break at address” 0xdeadbeee “with no debug information available, or outside of program code.”&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I doubt that maybe the program in flash causes&lt;SPAN&gt;&amp;nbsp;immediate Hardfault, which prevents the JLink from communicating properly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Aug 2022 03:28:12 GMT</pubDate>
    <dc:creator>YiWang</dc:creator>
    <dc:date>2022-08-23T03:28:12Z</dc:date>
    <item>
      <title>S32K148 JLINK debug error</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-JLINK-debug-error/m-p/1508519#M17189</link>
      <description>&lt;P&gt;Until yesterday, I was able to debug flash by Jlink using S32DS, but today I can’t flash using a new program.&lt;/P&gt;&lt;P&gt;In the S32DS,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;“Break at address” 0xdeadbeee “with no debug information available, or outside of program code.”&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Is displayed, and when I open Diassembly, I get a lot of error messages.&lt;/P&gt;&lt;P&gt;How can I use S32DS to debug flash in S32K148 via JLINK again?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The console imformation is shown as follows:&lt;/P&gt;&lt;P&gt;Command line: -if swd -device S32K148 -endian little -speed 1000 -port 2331 -swoport 2332 -telnetport 2333 -vd -ir -localhostonly 1 -singlerun -strict -timeout 0 -nogui&lt;BR /&gt;-----GDB Server start settings-----&lt;BR /&gt;GDBInit file: none&lt;BR /&gt;GDB Server Listening port: 2331&lt;BR /&gt;SWO raw output listening port: 2332&lt;BR /&gt;Terminal I/O port: 2333&lt;BR /&gt;Accept remote connection: localhost only&lt;BR /&gt;Generate logfile: off&lt;BR /&gt;Verify download: on&lt;BR /&gt;Init regs on start: on&lt;BR /&gt;Silent mode: off&lt;BR /&gt;Single run mode: on&lt;BR /&gt;Target connection timeout: 0 ms&lt;BR /&gt;------J-Link related settings------&lt;BR /&gt;J-Link Host interface: USB&lt;BR /&gt;J-Link script: none&lt;BR /&gt;J-Link settings file: none&lt;BR /&gt;------Target related settings------&lt;BR /&gt;Target device: S32K148&lt;BR /&gt;Target interface: SWD&lt;BR /&gt;Target interface speed: 1000kHz&lt;BR /&gt;Target endian: little&lt;/P&gt;&lt;P&gt;Connecting to J-Link...&lt;BR /&gt;J-Link is connected.&lt;BR /&gt;Firmware: J-Link V9 compiled May 7 2021 16:26:12&lt;BR /&gt;Hardware: V9.60&lt;BR /&gt;S/N: 69668228&lt;BR /&gt;Feature(s): RDI, GDB, FlashDL, FlashBP, JFlash&lt;BR /&gt;Checking target voltage...&lt;BR /&gt;Target voltage: 3.01 V&lt;BR /&gt;Listening on TCP/IP port 2331&lt;BR /&gt;Connecting to target...Connected to target&lt;BR /&gt;Waiting for GDB connection...Connected to 127.0.0.1&lt;BR /&gt;Reading all registers&lt;BR /&gt;Read 4 bytes @ address 0x00000000 (Data = 0xFFFFFFFF)&lt;BR /&gt;Read 2 bytes @ address 0x00000000 (Data = 0xFFFF)&lt;BR /&gt;Received monitor command: speed 1000&lt;BR /&gt;Target interface speed set to 1000 kHz&lt;BR /&gt;Received monitor command: clrbp&lt;BR /&gt;Received monitor command: reset&lt;BR /&gt;Resetting target&lt;BR /&gt;Received monitor command: halt&lt;BR /&gt;Halting target CPU...&lt;BR /&gt;...Target halted (PC = 0xFFFFFFFE)&lt;BR /&gt;Received monitor command: regs&lt;BR /&gt;R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000&lt;BR /&gt;R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000&lt;BR /&gt;R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000&lt;BR /&gt;R12= 00000000, R13= FFFFFFFC, MSP= FFFFFFFC, PSP= 00000000&lt;BR /&gt;R14(LR) = FFFFFFFF, R15(PC) = FFFFFFFE&lt;BR /&gt;XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000&lt;BR /&gt;CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00&lt;BR /&gt;Reading all registers&lt;BR /&gt;WARNING: Failed to read memory @ address 0xFFFFFFFE&lt;BR /&gt;Received monitor command: speed auto&lt;BR /&gt;Select auto target interface speed (2000 kHz)&lt;BR /&gt;Received monitor command: flash breakpoints 1&lt;BR /&gt;Flash breakpoints enabled&lt;BR /&gt;Received monitor command: semihosting enable&lt;BR /&gt;Semi-hosting enabled (Handle on BKPT)&lt;BR /&gt;Received monitor command: semihosting IOClient 1&lt;BR /&gt;Semihosting I/O set to TELNET Client&lt;BR /&gt;Received monitor command: SWO DisableTarget 0xFFFFFFFF&lt;BR /&gt;SWO disabled successfully.&lt;BR /&gt;Received monitor command: SWO EnableTarget 0 0 0x1 0&lt;BR /&gt;Failed to enable SWO. Could not measure target CPU frequency.&lt;BR /&gt;Read 4 bytes @ address 0xFFFFFFFE (Data = 0x00000000)&lt;BR /&gt;Read 2 bytes @ address 0xFFFFFFFE (Data = 0x0000)&lt;BR /&gt;Downloading 1024 bytes @ address 0x00000000 - Verified OK&lt;BR /&gt;Downloading 16 bytes @ address 0x00000400 - Verified OK&lt;BR /&gt;Downloading 10548 bytes @ address 0x00000410 - Verified OK&lt;BR /&gt;Downloading 680 bytes @ address 0x00002D44 - Verified OK&lt;BR /&gt;WARNING: CPU could not be halted&lt;BR /&gt;ERROR: Failed to download RAMCode.&lt;BR /&gt;Failed to prepare for programming.&lt;BR /&gt;Failed to download RAMCode!&lt;BR /&gt;Can not read register 16 (XPSR) while CPU is running&lt;BR /&gt;Can not read register 20 (CFBP) while CPU is running&lt;BR /&gt;Can not read register 0 (R0) while CPU is running&lt;BR /&gt;Can not read register 1 (R1) while CPU is running&lt;BR /&gt;Can not read register 2 (R2) while CPU is running&lt;BR /&gt;Can not read register 3 (R3) while CPU is running&lt;BR /&gt;Can not read register 4 (R4) while CPU is running&lt;BR /&gt;Can not read register 5 (R5) while CPU is running&lt;BR /&gt;Can not read register 6 (R6) while CPU is running&lt;BR /&gt;Can not read register 7 (R7) while CPU is running&lt;BR /&gt;Can not read register 8 (R8) while CPU is running&lt;BR /&gt;Can not read register 9 (R9) while CPU is running&lt;BR /&gt;Can not read register 10 (R10) while CPU is running&lt;BR /&gt;Can not read register 11 (R11) while CPU is running&lt;BR /&gt;Can not read register 12 (R12) while CPU is running&lt;BR /&gt;Can not read register 14 (R14) while CPU is running&lt;BR /&gt;Can not read register 15 (R15) while CPU is running&lt;BR /&gt;Can not read register 17 (MSP) while CPU is running&lt;BR /&gt;Can not read r&lt;BR /&gt;Writing register (PC = 0x 410)&lt;BR /&gt;Read 4 bytes @ address 0x00000410 (Data = 0x00000000)&lt;BR /&gt;Read 2 bytes @ address 0x00000410 (Data = 0x0000)&lt;BR /&gt;Read 2 bytes @ address 0x00002A6C (Data = 0x0000)&lt;BR /&gt;Received monitor command: clrbp&lt;BR /&gt;Received monitor command: reset&lt;BR /&gt;Resetting target&lt;BR /&gt;Received monitor command: halt&lt;BR /&gt;Halting target CPU...&lt;BR /&gt;...Target halted (PC = 0xFFFFFFFE)&lt;BR /&gt;Read 4 bytes @ address 0x0000CC00 (Data = 0xFFFFFFFF)&lt;BR /&gt;Writing register (SP = 0xffffffff)&lt;BR /&gt;Reading all registers&lt;BR /&gt;WARNING: Failed to read memory @ address 0xFFFFFFFE&lt;BR /&gt;WARNING: Failed to read memory @ address 0xFFFFFFFE&lt;BR /&gt;Read 4 bytes @ address 0x0000CC04 (Data = 0xFFFFFFFF)&lt;BR /&gt;Writing register (PC = 0xffffffff)&lt;BR /&gt;Reading all registers&lt;BR /&gt;WARNING: Failed to read memory @ address 0xFFFFFFFE&lt;BR /&gt;Downloading 4 bytes @ address 0xE000ED08 - Verified OK&lt;BR /&gt;Reading all registers&lt;BR /&gt;WARNING: Failed to read memory @ address 0xFFFFFFFE&lt;BR /&gt;Read 2 bytes @ address 0x00002A6C (Data = 0x0000)&lt;BR /&gt;Received monitor command: regs&lt;BR /&gt;R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000&lt;BR /&gt;R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000&lt;BR /&gt;R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000&lt;BR /&gt;R12= 00000000, R13= FFFFFFFF, MSP= FFFFFFFF, PSP= 00000000&lt;BR /&gt;R14(LR) = FFFFFFFF, R15(PC) = FFFFFFFE&lt;BR /&gt;XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000&lt;BR /&gt;CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00&lt;BR /&gt;Reading all registers&lt;BR /&gt;WARNING: Failed to read memory @ address 0xFFFFFFFE&lt;BR /&gt;Setting breakpoint @ address 0x00002A6C, Size = 2, BPHandle = 0x0001&lt;BR /&gt;Starting target CPU...&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 05:41:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-JLINK-debug-error/m-p/1508519#M17189</guid>
      <dc:creator>YiWang</dc:creator>
      <dc:date>2022-08-19T05:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 JLINK debug error</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-JLINK-debug-error/m-p/1509582#M17246</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/205255"&gt;@YiWang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have another compatible debugger you can use to try to flash again? I want to discard a broken connection.&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 14:20:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-JLINK-debug-error/m-p/1509582#M17246</guid>
      <dc:creator>JRoberto</dc:creator>
      <dc:date>2022-08-22T14:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 JLINK debug error</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-JLINK-debug-error/m-p/1509858#M17257</link>
      <description>&lt;P&gt;HI&amp;nbsp;&amp;nbsp;&lt;A href="https://community.nxp.com/t5/user/viewprofilepage/user-id/198240" target="_self"&gt;&lt;SPAN class=""&gt;JRoberto&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have tried several debuggers,however, I cannot debug flash. All of them show same result.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;“Break at address” 0xdeadbeee “with no debug information available, or outside of program code.”&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I doubt that maybe the program in flash causes&lt;SPAN&gt;&amp;nbsp;immediate Hardfault, which prevents the JLink from communicating properly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 03:28:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-JLINK-debug-error/m-p/1509858#M17257</guid>
      <dc:creator>YiWang</dc:creator>
      <dc:date>2022-08-23T03:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 JLINK debug error</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-JLINK-debug-error/m-p/1510229#M17270</link>
      <description>&lt;P&gt;we can check the signal behavior from the pin "RESET_b".&lt;/P&gt;
&lt;P&gt;Do you have a way to capture it?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 13:46:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-JLINK-debug-error/m-p/1510229#M17270</guid>
      <dc:creator>JRoberto</dc:creator>
      <dc:date>2022-08-23T13:46:21Z</dc:date>
    </item>
  </channel>
</rss>

