Nextion screen problem with DUE

The devil is on the details. It turns out that I was missing the nexInit() on the Setup. No need to add nexSerial.begin(9600);. It is all made by the nexInit(). Moreover, the Serial for debugging is initialized as 9600bps. No need also for Serial.begin(9600).

Now everything is working apart from the button instances. Even the dual state buttons are triggering the callbacks, but I am missing some detail for the button instances.

If anyone can help, I have done the following:

  1. Created the button instance:
NexButton       b_sistemp       = NexButton(0, 1, "b_sistemp");
  1. Added it to the listen list:
NexTouch *nex_listen_list[] = 
{
    &b_sistemp,
    NULL
};
  1. Registered the callback on the Setup():
b_sistemp.attachPop(b_sistempPopCallback, &b_sistemp);
  1. Created a callback for the button:
void b_sistempPopCallback(void *ptr)
{
    NexButton *btn = (NexButton *)ptr;
    dbSerialPrintln("b_sistempPopCallback");
    dbSerialPrint("ptr=");
    dbSerialPrintln((uint32_t)ptr);

    page_number = 2; //Sistemp Page
    Serial.println(F("Sistemp button was pressed"));
}

Edited: The debug serial gives me the button details, but the callback is not triggered:

[537332668:0,1,b_sistemp]

Regards,

Luciano