Abort Exception while executing Malloc() in Faraday evb

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Abort Exception while executing Malloc() in Faraday evb

ソリューションへジャンプ
1,237件の閲覧回数
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,050件の閲覧回数
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,051件の閲覧回数
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 件の賞賛
返信