How to store large data in LPC 4367

cancel
Showing results for 
Search instead for 
Did you mean: 

How to store large data in LPC 4367

88 Views
Contributor III

Hello.

I want to perform matrix operations with 3 matrices having dimensions 2000*320 each.

I am using the LPC Xpresso 4367 board and I am getting Hardfaults everytime.

I am using the CMSIS-DSP functions for the matrix inversions and multiplications,etc.

For smaller dimensions of the matrix (like 15*15) the program works but for larger dimensions it just keeps on giving me hardfaults, busfaults.

Can someone tell me how to solve this?

Thanks

Labels (1)
1 Reply

18 Views
NXP Employee
NXP Employee

Seems to be a problem with available RAM. In addition to the buffer variables you also need heap space, an overrun on the heap could explain the hardfaults. But I can't say if for this type of operation there is enough RAM at all, this is something you need to find out by yourself. Check the linker map file for the RAM used by the variables and then play with the heap size.

Regards,

Bernhard.