Abort Exception while executing Malloc() in Faraday evb

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Abort Exception while executing Malloc() in Faraday evb

跳至解决方案
1,227 次查看
sathishkumarsig
Contributor II

Hi All,

I have moved my program to QSPI0 and trying to boot(Execute in place) from there. The software is booting up but while executing the malloc() function, it is throwing Data Abort exception.

It is due to the invalid "_impure_ptr" value which is used in the malloc function.

The map extract of it is ...

.data      0x3f01433c   0xf4 C:/Program Files/CodeSourcery/Sourcery G++ Lite/arm-none-eabi/lib/thumb2\libc.a(lib_a-impure.o)
            0x3f01433c            _impure_ptr

I am getting this issue only if i am booting from QSPI. If it is running in DDR, the "_impure_ptr" having the valid address.

I couldn't able to locate, how this address got loaded?

Can anyone help me out on this?

Thanks for your Time

S.Sathishkumar

标签 (2)
0 项奖励
回复
1 解答
1,040 次查看
sathishkumarsig
Contributor II

Hi...I have resolved the issue. I have missed to copy the data's into QSPI memory and copy it back to RAM in Runtime.

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,041 次查看
sathishkumarsig
Contributor II

Hi...I have resolved the issue. I have missed to copy the data's into QSPI memory and copy it back to RAM in Runtime.

0 项奖励
回复