2005-10-04 03:41 AM
2005-10-03 12:58 PM
Our FPGA memory is previously mapped into SRAM area and now I want to move it out to a separate location. FPGA is controlled by BUSCON2. I changed start address for Addsel2 from 080h to 0c0h, changed FPGA class range to the new location, also changed FPGA reference. I got a linker error. Besides these changes, what else do I need to change ? DPP ? I use Tasking V7.5R2.
Thanks for help2005-10-03 01:26 PM
The error is E268 ''Absolute linear element 'section IODRV_1_NB class FPGA' cannot be located within 4 pages'', any idea what else needs to be chagned ?
Thanks2005-10-04 03:41 AM
Hello,
If you want to keep this FPGA class in default ''near'' memory,you must be sure a DPP pointer is referring to this new area indeed. For example, if the FPGA is located at address 0xC00000, one DPP must be set to 48 (30h). See 'Project Settings | Application | Memory Model'. You can address 16Kbyte of memory with one DPP pointer. You can also decide to qualify the FPGA class as ''far'' by using the _far keyword at the data object. But this will produce less efficient code for accessing the object. Regards, Najoua. [ This message was edited by: Najoua on 04-10-2005 16:12 ]