<?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: Global variables are not working in MCUXpresso. in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-variables-are-not-working-in-MCUXpresso/m-p/2266982#M68108</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Thanks, I found out that J-Link does not accept "non-stop mode", only LinkServer-compatible debuggers like MCU-Link.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Dec 2025 14:12:27 GMT</pubDate>
    <dc:creator>Iotelctronic</dc:creator>
    <dc:date>2025-12-19T14:12:27Z</dc:date>
    <item>
      <title>Global variables are not working in MCUXpresso.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-variables-are-not-working-in-MCUXpresso/m-p/2252431#M68065</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I'm debugging a program with the MKE06Z128VQH4 and I wanted to use the global variables to check the incoming values, especially in the UART buffer that I use for Bluetooth. But when I press play, the variable shows up as unavailable, even though it is global. I also added a variable called &lt;EM&gt;conta&lt;/EM&gt; in the main function to see it increment and test it, but it still appears as unavailable. I already went into the settings and disabled “Enable Live Variable Services”. I'm using a Chinese J-Link programmer.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Iotelctronic_0-1764607762489.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/368037iFF89464BA6F48B32/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Iotelctronic_0-1764607762489.png" alt="Iotelctronic_0-1764607762489.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Iotelctronic_1-1764607894650.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/368038i2FF618E7CF13D4E0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Iotelctronic_1-1764607894650.png" alt="Iotelctronic_1-1764607894650.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Iotelctronic_2-1764607934868.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/368039i57F544BFC8818DD8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Iotelctronic_2-1764607934868.png" alt="Iotelctronic_2-1764607934868.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 16:52:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-variables-are-not-working-in-MCUXpresso/m-p/2252431#M68065</guid>
      <dc:creator>Iotelctronic</dc:creator>
      <dc:date>2025-12-01T16:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Global variables are not working in MCUXpresso.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-variables-are-not-working-in-MCUXpresso/m-p/2257451#M68079</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Could you help us confirm what MCUXpresso IDE version are you working with? And could you describe the process for creating the project for MKE06Z128VQH4?&lt;/P&gt;
&lt;P&gt;Could you share the declaration for "conta"?&lt;/P&gt;
&lt;P&gt;Could you help us giving details about the Chinese J-Link Programmer?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Luis&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 22:07:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-variables-are-not-working-in-MCUXpresso/m-p/2257451#M68079</guid>
      <dc:creator>luis_maravilla</dc:creator>
      <dc:date>2025-12-08T22:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Global variables are not working in MCUXpresso.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-variables-are-not-working-in-MCUXpresso/m-p/2261256#M68087</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, thanks for responding. I'm using MCUXpresso IDE v24.12, and I make my configurations using the config tool. For now, I'm only testing a global variable that increments in the main loop. I don't have any clock issues because UART was already running and works fine. I wanted to see the variable update in real-time in the live expressions initially to continue with other project needs and monitor variable values while running the program. When I talk about a Chinese programmer, I'm referring to a J-Link Segger v9-G programmer I bought on AliExpress. When I say Chinese programmer, I mean it's not original, but I don't think that's the problem. My initial test code is this:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#include "pin_mux.h"
#include "board.h"
#include "fsl_uart.h"
#include "fsl_debug_console.h"
#include &amp;lt;string.h&amp;gt;

/*******************************************************************************
 * Definitions
 ******************************************************************************/
#define DATA_UART            UART0
#define DATA_UART_CLK_FREQ   CLOCK_GetFreq(kCLOCK_BusClk)
#define DATA_UART_IRQn       UART0_IRQn
#define DATA_UART_IRQHandler UART0_IRQHandler



/*******************************************************************************
 * Variables Globales
 ******************************************************************************/


uint32_t conta = 0;
unsigned char rx_aux;


/******************************************************************************\
 *
 * ************************* otra recepcion uart de prueba ******************
 */
void UART0_IRQHandler(void) {


	if (UART0-&amp;gt;S1 &amp;amp; UART_S1_RDRF_MASK) {
		rx_aux = UART0-&amp;gt;D;                      //lê o caracter recebido
	}
}


/*******************************************************************************
 * Main Application
 ******************************************************************************/
int main(void) {
    uart_config_t uart_config;

    /*** 1. INICIALIZACIÓN ***/
    BOARD_InitBootPins();
    BOARD_InitBootClocks();
    BOARD_InitDebugConsole();

    /*** 2. CONFIGURACIÓN UART0 ***/
    UART_GetDefaultConfig(&amp;amp;uart_config);
    uart_config.baudRate_Bps = 115200;
    uart_config.enableTx = true;
    uart_config.enableRx = true;

    UART_Init(DATA_UART, &amp;amp;uart_config, DATA_UART_CLK_FREQ);

    /*** 3. CONFIGURACIÓN INTERRUPCIONES ***/
    DATA_UART-&amp;gt;C2 |= UART_C2_RIE_MASK;  // Habilita interrupción RX
    NVIC_SetPriority(DATA_UART_IRQn, 0);
    NVIC_EnableIRQ(DATA_UART_IRQn);




    while (1) {
        conta++;


        /********************************************************/
        // Delay mínimo
        for(volatile int i = 0; i &amp;lt; 50; i++);
    }
}

&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Dec 2025 12:57:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-variables-are-not-working-in-MCUXpresso/m-p/2261256#M68087</guid>
      <dc:creator>Iotelctronic</dc:creator>
      <dc:date>2025-12-12T12:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Global variables are not working in MCUXpresso.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-variables-are-not-working-in-MCUXpresso/m-p/2264182#M68092</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;For monitoring and visualizing Global variables update while running the program&lt;/P&gt;
&lt;P&gt;Please refer to chapter 14.10 in &lt;A href="https://www.nxp.com/webapp/Download?colCode=MCUXPRESSO-UG&amp;amp;appType=license" target="_blank"&gt;MCUXPRESSO-UG&lt;/A&gt; [MCUXpresso IDE User Guide]&lt;/P&gt;
&lt;P&gt;Also, this post could guide you with a brief explanation&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2019/07/22/visualizing-global-variables-while-target-is-running-with-eclipse-and-mcuxpresso-ide/#more-24772" target="_blank"&gt;Visualizing Global Variables while Target is Running with Eclipse and MCUXpresso IDE | MCU on Eclipse&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards, Luis&lt;/P&gt;</description>
      <pubDate>Tue, 16 Dec 2025 18:57:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-variables-are-not-working-in-MCUXpresso/m-p/2264182#M68092</guid>
      <dc:creator>luis_maravilla</dc:creator>
      <dc:date>2025-12-16T18:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Global variables are not working in MCUXpresso.</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-variables-are-not-working-in-MCUXpresso/m-p/2266982#M68108</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks, I found out that J-Link does not accept "non-stop mode", only LinkServer-compatible debuggers like MCU-Link.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Dec 2025 14:12:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-variables-are-not-working-in-MCUXpresso/m-p/2266982#M68108</guid>
      <dc:creator>Iotelctronic</dc:creator>
      <dc:date>2025-12-19T14:12:27Z</dc:date>
    </item>
  </channel>
</rss>

