__flash Array und Pointer: incompatible pointer type

Gast #5012784
Lesenswert?

Kann mir bitte jemand folgenden Fehler erklären:

font.h:
1
const __flash uint8_t fontdata[96][8]= {
2
    {  0,  
3
     ....

code.c:
1
#include "font.h"
2
const __flash uint8_t* fnt = fontdata;

Ergibt
1
avr-gcc.exe (GCC) 5.3.0
2
....
3
main.c:24:30: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
4
 const __flash uint8_t* fnt = fontdata;
5
                              ^

Wieso passt der Pointer nicht zum Array im Flash, was ist richtig?

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren