When compiling the attached test code using the following
/usr/local/bin/sdcc -I. --model-large -c test.c
I receive the following error:
test.c:32: error: FATAL Compiler Internal Error in file 'gen.c'
line number '8381' : genPointerSet: illegal pointer type
Contact Author with source code
This error occurs whenever I attempt to write to code
memory using a (unsigned char code *) pointer, as I do in
line 28 of this file. (Side question -- Is this the same as a
(code unsigned char *) pointer??)
Is it possible to write to flash memory using sdcc? Is this a
bug or an unemplemented feature?
I'm developing on a Cygnal Systems 8051 core
microcontroller, which has 32Kb of rewritable internal flash
memory for its code space.
SDCC Version info:
SDCC : mcs51/gbz80/z80/avr/ds390/pic14/pic16/TININative/
xa51/ds400/hc08 2.3.6 (01/06/04) (UNIX)
Thanks for your help,