<?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: Abnormal behavior due to debugger connection in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Abnormal-behavior-due-to-debugger-connection/m-p/2055001#M46403</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229679"&gt;@jwjung&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for sharing the information. Unfortunately, I am still a bit confused and unsure where the issue lies.&lt;/P&gt;
&lt;P&gt;Could you please provide more details about your application? Any additional information regarding the application setup, development environment, or recent changes you have made could help us better analyze the root cause of the issue.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Mar 2025 21:07:57 GMT</pubDate>
    <dc:creator>VaneB</dc:creator>
    <dc:date>2025-03-03T21:07:57Z</dc:date>
    <item>
      <title>Abnormal behavior due to debugger connection</title>
      <link>https://community.nxp.com/t5/S32K/Abnormal-behavior-due-to-debugger-connection/m-p/2052542#M46288</link>
      <description>&lt;P&gt;hello, i'm using s32k312 MCU chip&lt;/P&gt;&lt;P&gt;When field data is checked after a debugger connection, a strange value is output. When the expected value is 299, it is expressed as 691, 384, 214, and this value fluctuates.&lt;/P&gt;&lt;P&gt;However, the expected value is expressed when the board is re-operated after the debugger is released.&lt;/P&gt;&lt;P&gt;Is there a value that should be specified as an option when debugging? Please check.&lt;/P&gt;&lt;P&gt;The debugger in use is a PEmicro Debugger, USB1 MultiLink FX Rev B Port and core: M7, target is s32k312&lt;/P&gt;&lt;P&gt;best regard&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 04:33:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Abnormal-behavior-due-to-debugger-connection/m-p/2052542#M46288</guid>
      <dc:creator>jwjung</dc:creator>
      <dc:date>2025-02-27T04:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Abnormal behavior due to debugger connection</title>
      <link>https://community.nxp.com/t5/S32K/Abnormal-behavior-due-to-debugger-connection/m-p/2053291#M46314</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229679"&gt;@jwjung&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please provide a more detailed explanation of the steps you followed and share additional information about the application? This will help us better understand your approach and offer more targeted guidance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, VaneB&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 21:12:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Abnormal-behavior-due-to-debugger-connection/m-p/2053291#M46314</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2025-02-27T21:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Abnormal behavior due to debugger connection</title>
      <link>https://community.nxp.com/t5/S32K/Abnormal-behavior-due-to-debugger-connection/m-p/2053356#M46317</link>
      <description>&lt;P&gt;Hi, &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks to reply&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What environment did you do debugging in?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Cell simulator - jig board - PCB board connected and debugger connected&lt;/P&gt;&lt;P&gt;Apply debugger power using power branched from the board (does not use the 5V power supply option via USB during debug option)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How did you debug it?&lt;/P&gt;&lt;P&gt;1. Debugger to PCB Board&lt;BR /&gt;2. Debug Configuration - project_name.DEBUG_FLASH&amp;nbsp;&lt;BR /&gt;3. Hold breakpoint to read field data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additional infomation about Application&lt;/P&gt;&lt;P&gt;What is the application using the S32K312 chip for?&lt;/P&gt;&lt;P&gt;BMS Application develop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Software and environment information in use&lt;/P&gt;&lt;P&gt;1) S32DS.3.5_b220726_win32.x86_64.exe&lt;BR /&gt;2) SW32_S32DS_3.5.8_D2311 package&lt;BR /&gt;3) SW32_S32DS_OfflineDevPack_3.5.0_D2207 package&lt;BR /&gt;4) SW32K3_RTD_4.4_3.0.0_P01_D2303_DS_updatesite package&lt;BR /&gt;5) NXP FreeRTOS 10.0.5 package&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Setting up the code or related to the problem&lt;/P&gt;&lt;P&gt;Use the desired field data by specifying breakpoint&lt;BR /&gt;Log Error Not Out, DevAssert() Not Out&lt;/P&gt;&lt;P&gt;configUSE_tickless_IDLE set 0&lt;/P&gt;&lt;P&gt;System Clock : default clock(peripheral - os - freertos - General option)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2025 01:10:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Abnormal-behavior-due-to-debugger-connection/m-p/2053356#M46317</guid>
      <dc:creator>jwjung</dc:creator>
      <dc:date>2025-02-28T01:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Abnormal behavior due to debugger connection</title>
      <link>https://community.nxp.com/t5/S32K/Abnormal-behavior-due-to-debugger-connection/m-p/2055001#M46403</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229679"&gt;@jwjung&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for sharing the information. Unfortunately, I am still a bit confused and unsure where the issue lies.&lt;/P&gt;
&lt;P&gt;Could you please provide more details about your application? Any additional information regarding the application setup, development environment, or recent changes you have made could help us better analyze the root cause of the issue.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2025 21:07:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Abnormal-behavior-due-to-debugger-connection/m-p/2055001#M46403</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2025-03-03T21:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Abnormal behavior due to debugger connection</title>
      <link>https://community.nxp.com/t5/S32K/Abnormal-behavior-due-to-debugger-connection/m-p/2055857#M46457</link>
      <description>&lt;P&gt;hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/201913"&gt;@VaneB&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First of all, I will share the firmware source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sensing data was read from ADI chip GPIO Register Memory and expressed.(SPI IA port was used for communication with the ADI chip.)&lt;/P&gt;&lt;P&gt;The field data was checked by holding the breakpoint at line number 452.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data process :&amp;nbsp; MCU - SPI IA, MOSI - ADI - SPI IA, MISO - MCU&lt;/P&gt;&lt;P&gt;Flow : Initialize(GPIO, PORT, etc..), CS High - ADI Initialize(CS low, Send Command via SPI IA port) - (CS low and then)Send command to read ADI Register Memory - Calculate NTC voltage - read field Data using debugger.&amp;nbsp;&lt;/P&gt;&lt;P&gt;(loop : Read Command - Calculate NTC Voltage - read field Data)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 02:16:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Abnormal-behavior-due-to-debugger-connection/m-p/2055857#M46457</guid>
      <dc:creator>jwjung</dc:creator>
      <dc:date>2025-03-05T02:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Abnormal behavior due to debugger connection</title>
      <link>https://community.nxp.com/t5/S32K/Abnormal-behavior-due-to-debugger-connection/m-p/2056568#M46489</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229679"&gt;@jwjung&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have reviewed your code and noticed that the value sent via CAN is derived from a series of operations based on the value received from the IOR_CalcTemp() function. Could you please verify if the value obtained seems to fluctuate since its calculation?&lt;/P&gt;
&lt;P&gt;Additionally, fluctuations in values during a debug session can often be caused by several factors related to the debugging process itself. Some common causes include:&lt;/P&gt;
&lt;P&gt;1. Debugger Interference: During debugging, the debugger interacts with the system in real-time, which may alter the normal execution of code, especially if breakpoints, stepping, or real-time monitoring is being used.&lt;/P&gt;
&lt;P&gt;2. Debugger-induced Delays: The debugging process introduces delays as the code is paused and controlled by the debugger. These delays can affect the timing of variable updates, leading to fluctuations in their values.&lt;/P&gt;
&lt;P&gt;3. Un-synchronized Memory Access: The debugger might access memory or variables while the code is running, which can lead to unpredictable changes in their values during the session.&lt;/P&gt;
&lt;P&gt;4. Compiler Optimizations: The compiler may apply optimizations in debugging mode that alter the normal behavior of the system. This can result in discrepancies in the way variables are calculated or updated.&lt;/P&gt;
&lt;P&gt;5. Clock or Timing Issues: The clock behavior or timing in the system could be impacted by the debugger, which can affect the consistency of values, especially if the system depends on precise timing or real-time operations.&lt;/P&gt;
&lt;P&gt;6. Modification of Control Registers: Debuggers can modify microcontroller registers, potentially altering the normal flow of operations and causing fluctuations in values.&lt;/P&gt;
&lt;P&gt;To identify the exact cause, I recommend checking whether the value from IOR_CalcTemp() itself fluctuates when running without the debugger. This will help determine if the issue is related to the debugging environment or the calculation process itself.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 22:15:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Abnormal-behavior-due-to-debugger-connection/m-p/2056568#M46489</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2025-03-05T22:15:47Z</dc:date>
    </item>
  </channel>
</rss>

