This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Address violation error

Segment problem for development kit:
in our development kit we define ranges of RAM and ROM in Target section as follows:


start size
ROM : 0x0 0x80000
RAM1 : 0x080000 0x80000
RAM2 : 0X100000 0X80000
RAM3 : 0X200000 0X80000

Other settings are:
Memory Model : HLarge:'huge'data,'far' funcs
operating System : None
Data Threshold : near 6
Near Memory : 32kB RAM 16 KB ROM
user stack : 512 Bytes
system stack: 512 Bytes

Problem:
1. if we debug the program which is as follows:
having one pointer *ptr
pointing to a memory location :0x088000
if we have to write a value to this location it gives address violation error for 0x088000

2. if we use two pointers pointing to the address 88000 and 100000
for both it gives address violation error while writing or reading the data.
but if we take the address 0x100000 only then it works properly(removing the 0x80000 address RAM from target section and also 0x200000 addr RAM).

0