> ...that the current compiler does not support this functions... What is "this functions" more specificaly ? Since it's all done through direct access to the SFR's, I do not see how it can't be supported. The compiler have no idea what the different SFR's does. It's a bit hard to comment on the reply from support when we don't have the question they replied to. Jan-Erik. AdiCH wrote 2012-04-10 20:51: > > Hi Mike > > Thanks you very much for your answer. > > Here is the c function that works now for me: > > unsigned int ReadFlash( unsigned int address ) { > EEADRL =3D address%256; > EEADRH =3D address/256; > EEPGD =3D 1; // program memory > RD =3D 1; // read > asm("nop"); > asm("nop"); > return EEDATH*256 + EEDATL; > } > > It was the point that only a semicolon is not a nop in the compiled code.= So > it worked during debugging but not during the normal release version. > > I used a lot of time to solve this now and I got also a wrong answer from > the microchip support that sad that the current compiler does not support > this functions. > > Many thanks again you helped me a lot. > > Adrian > --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .