Hi All, I would like to know, How to handle DPP register for variables in different segments. For Example Assume that, I have defined class section as
NCODE(0xC00000 - 0xC0FFFF), NCONST(0xC0000 - 0xC007FF), NDATA(0xCOOO - 0xFDFF), IDATA(0XE00000 - 0xE007FF), SDATA(0XE00000 - 0xE007FF)
I don't think that you can place IDATA and SDATA to 0xE00000. 0xE00000 - 0xE007FF is occupied by the PSRAM. This memory (Program / Data SRAM) must clearly be distinguished from the internal RAM - access to it is also slightly slower than to the internal RAM. You could define
NCODE(0xC00000 - 0xC0FFFF), NCONST(0xC0000 - 0xC007FF), NDATA(0xCOOO - 0xFDFF), IDATA(0xCOOO - 0xFDFF), SDATA(0xCOOO - 0xFDFF), FDATA(0XE00000 - 0xE007FF), HDATA(0XE00000 - 0xE007FF)
char idata a; char b; char huge c; a = b; // should now work b = c; // should also work