AnsweredAssumed Answered

Warning: 'from incompatible pointer type'

Question asked by Armend Gecaj on Sep 15, 2016
Latest reply on Sep 19, 2016 by Jorge Antonio Alcala Vazquez

Hi all,


I am using Kinetis K60F MK60FN1M0 with CodeWarrior for MCU v10.6.


I am trying to show some text on my LCD display but i get the following warning message:

passing argument 5 of 'D4D_DrawTextRectTabAdvXY' from incompatible pointer type [enabled by default]


i call the function like this:


(1)  uint8_t Text[ ] = "Hello";

(2)  D4D_ClearScreen(D4D_COLOR_SYSTEM_BCKG);

(3)  D4D_DrawTextRectXY(50, 50, 150, 150, (char*) Text, D4D_COLOR_RED, D4D_COLOR_BLACK);


In line (3) i become the warning message. According to the DRM116 - PDF from NXP 'Text' have to be a pointer to a text buffer.


Have someone any idea what i am doing wrong?



Best Regards