Abort Exception while executing Malloc() in Faraday evb

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Abort Exception while executing Malloc() in Faraday evb

Jump to solution
622 Views
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

Labels (2)
0 Kudos
1 Solution
435 Views
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.

View solution in original post

0 Kudos
1 Reply
436 Views
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 Kudos