How to store large data in LPC 4367

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

How to store large data in LPC 4367

922 次查看
shreyas123
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

标签 (1)
1 回复

852 次查看
bernhardfink
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.