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

Dabthandler Problem

Hi folks,

I am having trouble with data abort handler for last 2 days.
Here is my problem. Working version of my program has

Program size code=106384 RO-data=32 RW-data=944 ZI=4880
No heap
With a USR stack size of 0x00000400

Whenever I have inserted a static variable ;

 static int abc[7000] ;

Program size code=106384 RO-data=32 RW-data=944 ZI=32880

Which is expected.

In simulator everything is fine, firmware works as expected, but when I have download it to target board, it crashes. Then I debug it and noticed that after jumping to main routine from startup.s file, it drops to Dabthandler.

I have checked the forum and found a method that shows which instruction caused data abort exception. According to this method, my code raises data abort exception at "__fplib_config_pureend_doubles" instruction.

Then I decrease the size of my static array variable to

 static int abc[6800] ;

Everything works fine. So I was wondering if anyone could tell me what's wrong here?

Cheers,
Deha

Parents Reply Children
No data